Hi,
I’m having difficulty finding a indicator where the Moving Average can be set to EMA and have the settings changed, but the most important part is the line colour changes when a uptrend and a downtrend is observed on the same MA.
Attachment shows what i have in mind. I’ve seen this in MT4
You can adjust the color change in each indicator window, see screenshot attached for an example.
Nicolas, that was simple…thank you
Hi Nicolas would you let me know how to put that trend change color option into code
@inadis
If it’s green, that’s because the current variable has a superior value than its previous one and vice-versa for red.
green = value>value[1]
red = value<value[1]