I am trying to work on a strategy using Values found in the OrderFlow Volume Profile Indicator.
So far all got are null pointer exceptions...
I tried to follow code examples from the documentation,:
[...]
else if (State == State.Configure)
{
AddVolumetric("mySelectedSeries", BarsPeriodType.Minute, 5, VolumetricDeltaType.BidAsk, 5);
}
}
protected override void OnBarUpdate()
{
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsType barsType = Bars.BarsSeries.BarsType as
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsType;
Print("Bar index : " + CurrentBar.ToString());
Print(barsType.Volumes[CurrentBar].GetMaximumVolume(null, out price) + "POC at: " + price);
[...]
Also I would like to be able to read out the highest and lowest Values of a Value Area of a specific bar. In my theory since it can be drawn on a chart, there must be a way to reach the numbers via code... am I missing something?

Comment