Add position on MACD Rising

08 May 2019, 18:55Add position on MACD Rising#1
pierrecrotposts: 4since: 08 May 2019

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.

09 May 2019, 09:25#2
Panagiotis Charalampousposts: 2715since: 13 Jan 2017

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


Head of Community Management at cTrader
11 May 2019, 10:41#3
pierrecrotposts: 4since: 08 May 2019

Thanks a lot for your help.