for example, in the indictor, I use Values[0][0], Values[1][0],Values[2][0] to descripe the current bar. if I want to acess previous bar Values[0], it should be Values[0][1], the previous of previous bar is Values[0][2].
I also try EMA20, which is build-in indictor for ninja trader. the code is:
Print("EMA1: " + EMA(20)[0]);
Print("EMA2: " + EMA(20)[1]);
very simple. but it could print EMA1: . for the previous bar value, no printing.

Comment