Good Morning
The attached code produces a 15 period end centered moving average of a 20T chart. When using live data, it works fine and duplicates the typical MA formulas without using the interval function. When used in the playback mode the MA does not print. I restarted the playback, changed into real time data by entering YM M5 instead of $PLAYBACK and the 2 MA appear. Typing in $PLAYBACK and the lines disappear. Is there a problem with this code or the interval function?
Best Regards,
Alan
The attached code produces a 15 period end centered moving average of a 20T chart. When using live data, it works fine and duplicates the typical MA formulas without using the interval function. When used in the playback mode the MA does not print. I restarted the playback, changed into real time data by entering YM M5 instead of $PLAYBACK and the 2 MA appear. Typing in $PLAYBACK and the lines disappear. Is there a problem with this code or the interval function?
Best Regards,
Alan
Comment