Cloud Lee / Publications
Forum
MT4 ATR indicator replication. Please Help!
Hello, I would like to replicate MT 4 ATR value in the other platform.. but it's not easy to do AFAIK, ATR[i] = ATR[i-1] + ( TR[i] - TR[i-n] ) / n; // n is the ATR period is the formula. I do not understand that there are two different figures, i and n. If I want to calculate ATR for 20 candles