I have added the data series in State.Configure.
I added the BarsArray when calling(not sure if that is the correct term) the indicator in State.DataLoaded.
I am getting the error messages below when compiling. I haven't been able to figure out what additional arguments I am missing.
else if (State == State.Configure)
{
AddDataSeries(BarsPeriodType.Minute, 1);
}
else if (State == State.DataLoaded)
{
OrderFlowCumulativeDelta1 = OrderFlowCumulativeDelta(BarsArray[1],Close, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Type.BidAsk, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Period.Session, 0);
SMA1 = SMA(BarsArray[1],OrderFlowCumulativeDelta1.DeltaClose, 7);
SMA2 = SMA(BarsArray[1],OrderFlowCumulativeDelta1.DeltaClose, 20);
}
DeltaCrossLe.cs | No overload for method 'OrderFlowCumulativeDelta' takes 5 arguments | CS1501 | 65 | 36 |
DeltaCrossLe.cs | No overload for method 'SMA' takes 3 arguments | CS1501 | 66 | 15 |
Comment