Login Page - Create Account

Support Board


Date/Time: Mon, 08 Sep 2025 21:18:06 +0000



Post From: Seeing this error all of a sudden after updating to 2781 53800 revision...

[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