I add the volumetric data series here:
else if (State == State.Configure)
{
AddVolumetric("ES 12-19", BarsPeriodType.Second, 15, VolumetricDeltaType.BidAsk, 1);
AddVolumetric("ES 12-19", BarsPeriodType.Range, 8, VolumetricDeltaType.BidAsk, 1);
}
create a variable here:
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe barsType = Bars.BarsSeries.BarsType as
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe;
but how do you access the bar values? for example, if I wanted to access the delta for the bar, I would normally reference: Print("Delta for bar: " + barsType.Volumes[CurrentBar].BarDelta); for example. Do I index Volumes, or current bar? not sure how to access the delta for both the second and range volumetric series.
Comment