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:
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.