first of all Happy New Year to everyone!
I want to ask when one needs volumetric 1min in a script strategy and the strategy is enabled in a chart with volumetric dataseries 1 Minute as primary dataseries with having bidask from the 1 min volumetric plotted in the cahrt then one does not need to have Addvolumetric in State.Configure and its OK having in Onbarupdate
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe barsType = Bars.BarsSeries.BarsType as
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe;
if (barsType == null)
return;
Only if another dataseries eg volumetric 400 Ticks would be needed in the code then this has to be added with Addvolumetric(..Tick, 400..) and
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe barsType1 = BarsArray[1].BarsSeries.BarsType as
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe;
if (barsType1 == null)
return;
Is my understanding correct?
Thank you!
Tony
Comment