Can we write to close the trade according to the indicator color (Green, Red) of Macd?
-
Can we write to close the trade according to the indicator color (Green, Red) of Macd?
-
Is This What you Want https://fxdreema.com/shared/OTP9IFGMd
-
Sorry, it's not Macd, it's AO.

-
@trpssrv sorry you need custom indicator for that
-
@trpssrv You just need to compare the value of the current candle with the previous one. You don't need any colour. All green bars are higher than the previous bar whereas all red bars are shorter than the previous one. Just compare the values and you will get the 'colour'.
-
That's right @l-andorrà . I've done this with MACD's brother.

-
@l-andorrà How should I write the code?
-
@trpssrv You can do this for 'green' candles:
