Is there a Code to extract the value of the n-th Before n-rod exponential moving average?
Hello,
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:
period= ...
n= ...
ExponentialAverage[period](close)[n]
or also you can use a variable to store the average and call back its n-th value:
period= ...
n= ...
myEMA= ExponentialAverage[period](close)
myEMAnAGO= myEMA[n]
Thank you for your reply
I’ll try
@Forever beginner
Do not embed html code in your post, just use plain text.
Thank you 🙂