I am not sure of translation of n-rod, but if you mean accessing value of an exponential moving average at previous n-th candle starting from current one being number zero (previous one being 1 ago, before that is 2 ago etc…) then just add n in square brackets [n] like this:
1
2
3
period=...
n=...
ExponentialAverage[period](close)[n]
or also you can use a variable to store the average and call back its n-th value:
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue