Edward Munroe / Publications
Forum
Colour change sma with a lookback period
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 introduce a "lookback" period to this so that it looks
Help with changing an indicator
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 if it is lower than 30 bars ago. I did this on the