Hello, I am still looking for a solution to the below if anyone can help? The indicator is a colour change moving average so if the ma is higher than it was on the last candle then it will change colour to lime and down to red. I would like to
Hello, I have the indicator in the code below which colours a moving average depending on whether it is going up or down. I would like to change it so that it looks back 30 bars so it only is green if the ma is higher than it was 30 bars ago or red