I am trying to code an intraday strategy which works on minute bars. However, part of the logic requires the value of a 5 day MA to be accessed.
In initiate, I have this code where MovAvg has already been declared under variables.
Add(PeriodType.Day, 1); MovAvg = SMA(BarsArray[1], 5); Add(MovAvg);
Thanks!

Comment