This works => Print("EMA " + EMA(Close,9)[0]);
This doesn't => Print("EMA " + EMA(Close,9)[1]);
I checked a bunch of sample code and they say it should work EMA(9)[30] should show the 9 EMA value 30 bars ago but I get an error that states "You are accessing an index with a value that is invalid since its out of range".... anytime I reference any other index in the EMA other than the 0th position.
Am I missing something? Is there a different way to get EMA values for past bars?
Thank you in advance.

Comment