Support Board
Date/Time: Mon, 08 Sep 2025 21:02:18 +0000
[Programming Help] - Seeing this error all of a sudden after updating to 2781 53800 revision...
View Count: 128
[2025-08-06 15:20:42] |
User895355 - Posts: 57 |
E:\Program Files (x86)\Sierra\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 cl : Command line warning D9002 : ignoring unknown option '/std:c++17' MyRangeBarPredictor.cpp e:\program files (x86)\sierra\acs_source\scdatetime.h(1411): error C2143: syntax error: missing ',' before ')' e:\program files (x86)\sierra\acs_source\scdatetime.h(1411): error C2059: syntax error: ')' -- End of Build -- 11:17:22 My code is very basic. I don't call any datetime. Any ideas? This is my code: #include "sierrachart.h"
SCDLLName("MyRangeBarPredictor") SCSFExport scsf_MyRangeBarPredictor(SCStudyInterfaceRef sc) { // Section 1 - Set the configuration variables SCSubgraphRef Subgraph_High = sc.Subgraph[0]; SCSubgraphRef Subgraph_Low = sc.Subgraph[1]; SCSubgraphRef Subgraph_Mid = sc.Subgraph[2]; if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "My Range Bar Predictor"; sc.StudyDescription = "My Range Bar Predictor."; sc.GraphRegion = 0; sc.AutoLoop = 0; // manual looping Subgraph_High.Name = "Predicted High"; Subgraph_High.DrawStyle = DRAWSTYLE_DASH; Subgraph_High.PrimaryColor = RGB(0, 255, 0); Subgraph_High.LineWidth = 2; Subgraph_High.DrawZeros = false; Subgraph_Low.Name = "Predicted Low"; Subgraph_Low.DrawStyle = DRAWSTYLE_DASH; Subgraph_Low.PrimaryColor = RGB(255, 0, 0); Subgraph_Low.LineWidth = 2; Subgraph_Low.DrawZeros = false; Subgraph_Mid.Name = "Predicted Mid"; Subgraph_Mid.DrawStyle = DRAWSTYLE_DASH; Subgraph_Mid.PrimaryColor = RGB(0, 0, 255); Subgraph_Mid.LineWidth = 2; Subgraph_Mid.DrawZeros = false; return; } // Section 2 - Do data processing here for (int BarIndex = sc.UpdateStartIndex; BarIndex < sc.ArraySize; BarIndex++) { if (BarIndex == sc.ArraySize - 1) { n_ACSIL::s_BarPeriod BarPeriodParameters; sc.GetBarPeriodParameters(BarPeriodParameters); if (!(BarPeriodParameters.IntradayChartBarPeriodType == IBPT_RANGE_IN_TICKS_FILL_GAPS || BarPeriodParameters.IntradayChartBarPeriodType == IBPT_RANGE_IN_TICKS_NEW_BAR_ON_RANGE_MET_OPEN_EQUALS_PRIOR_CLOSE || BarPeriodParameters.IntradayChartBarPeriodType == IBPT_RANGE_IN_TICKS_NEWBAR_ON_RANGEMET || BarPeriodParameters.IntradayChartBarPeriodType == IBPT_RANGE_IN_TICKS_OPEN_EQUAL_CLOSE || BarPeriodParameters.IntradayChartBarPeriodType == IBPT_RANGE_IN_TICKS_STANDARD || BarPeriodParameters.IntradayChartBarPeriodType == IBPT_RANGE_IN_TICKS_TRUE)) { return; } float RangePerBar = BarPeriodParameters.IntradayChartBarPeriodParameter1 * sc.TickSize; Subgraph_High[BarIndex] = sc.Low[BarIndex] + RangePerBar; Subgraph_Low[BarIndex] = sc.High[BarIndex] - RangePerBar; Subgraph_Mid[BarIndex] = (Subgraph_High[BarIndex] + Subgraph_Low[BarIndex]) / 2.0f; } else { Subgraph_High[BarIndex] = 0; Subgraph_Low[BarIndex] = 0; Subgraph_Mid[BarIndex] = 0; } } } Date Time Of Last Edit: 2025-08-06 16:34:02
|
[2025-08-06 17:00:43] |
User431178 - Posts: 772 |
Seems you need to install a newer compiler on your machine, one that supports c++ 17, as visual studio 14 does not. Either that or use the remote compiler. My code is very basic. I don't call any datetime. Any ideas?
scdatetime.h and many other headers are included when you include sierrachart.h.
|
To post a message in this thread, you need to log in with your Sierra Chart account: