My indicator uses Volumetric data. I set Range as period type.
I added the Indicator in the strategy. How do i set/configure to take the data series as Volumetric and Range values to an Indicator added in the Startegy when I call it ?
Below code snippet is from my indicator and I am getting Bartype is null error when i run the strategy with AddChartIndicator method. Can you please help me how to set the data series to an Indicator which called from a Strategy?
barsType = BarsArray[0].BarsType as NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe;
if (barsType == null){
Print("barsType is null: " + CurrentBars[0]);
return;
}
Comment