I am trying to add volumetric data to my existing strategy but am getting an error. I want to loop through each price of the previous candle and find the highest delta level and the price it occurred at.
I've added the following code to the State.Configure:
// Add the the volumetic bar data - BarsInProgress 6
AddVolumetric("ES 03-23", BarsPeriodType.Minute, 1, VolumetricDeltaType.BidAsk, 1);
To test, I've added the following to the OnBarUpdate:
if (BarsInProgress == 6
&& IsFirstTickOfBar == true)
{
GetDeltaForPrice(Close[1]);
}
I get the error "The name 'GetDeltaForPrice' does not exist in the current context".
I've tried to find examples of using volumetric bars but the only examples I can find do not use BarsAgo , so I am not sure if I am using it correctly.

Comment