Add position on MACD Rising

Created at 08 May 2019, 18:55
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
PI

pierrecrot

Joined 08.05.2019

Add position on MACD Rising
08 May 2019, 18:55


Hi, I'd like to know how to add a position only when the MACD line from the MACD Crossover is going up.

Can you help me with this one?

Thanks a lot.


@pierrecrot
Replies

PanagiotisCharalampous
09 May 2019, 09:25

Hi pierrecrot,

Thanks for posting in our forum. You can use the IsRising() function. See below

         if(macd.MACD.IsRising())
        {
          //Execute Order
        }

Best Regards,

Panagiotis


@PanagiotisCharalampous

pierrecrot
11 May 2019, 10:41

Thanks a lot for your help.


@pierrecrot