I am used to work with VOLD and would like to use it inside a strategy. Ninjatrader offers only UVOL and DVOL.
Since VOLD is only the substraction of DVOL from UVOL I can calculate the current value - but I'd like to have a data series so I can have an EMA on the data.
So within State.Configure I have
AddDataSeries("^UVOL", BarsPeriodType.Minute, 1);
AddDataSeries("^DVOL", BarsPeriodType.Minute, 1);
and inside my strategy I can calculate the current VOLD value via:
double VOLD = Closes[1][0] - Closes[2][0];
As I do want to use some EMA's with VOLD I need more than the latest candle. Something like BarsArray.
Could you point me into the right direction for that?
Thanks
Florian

Comment