I'm getting the current POC of the day by doing:
barsType = BarsArray[4].BarsType as BarsTypes.VolumetricBarsType; double priceOfCurrentDaysPOC; double currentDaysPOC = barsType.Volumes[CurrentBars[4]].GetMaximumVolume(null, out priceOfCurrentDaysPOC);
But what I see is the end of session result every time? I'm running it on a 20 Range TickReplay chart and the [4] represents an added data series of :
AddVolumetric(null, Data.BarsPeriodType.Day, 1, Data.VolumetricDeltaType.BidAsk, 1); // BarsInProgress = 4
But from start of session all the way to end of session my code will return 4000 even if theres only been 1 tick on the day (so the poc price should be the open)
basically it somehow knows what the end of session max volume is.
Hope that makes sense.
Thank you,
Tarik
Comment