Trigger on buffer change of color
-
I have read through the forum but I cant work out
How do I get it to buy and sell trigger from this indicator when it changes color
https://www.mql5.com/en/code/18090I have tried https://fxdreema.com/shared/vsskv71Sc
however it trigger on every candle
-
You could try having two condition blocks:
- CandleID2 = magenta
and - CandleID1 != magenta
Therefore when it changes from magenta to another colour it should buy/sell. At the moment it would perform the task on every candle where colour != magenta.
- CandleID2 = magenta
-
IS CD1 the candle or the indicator Line ?
-
I have tried this , but doesnt look like it worked ? https://fxdreema.com/shared/JfdLd6ffb
-
@willstar44 "indicator appear" block

-
@willstar44 This should give you anytime the indicator is not magenta. Not a change in colour.
What ambrogio suggested should also work.
I often struggle to get these change of colour indicators to work.