I hope someone guides me,
I want to calculate the lowest moving average level during a certain number of candles, as well as the highest moving average level during a certain number of candles.
That is, I want the moving average top and the moving average bottom, not the price.
How do I write a function that returns these values to me?
Thank you for your interest and help