Help on MACD Strategy

Forums ProRealTime English forum ProOrder support Help on MACD Strategy

Viewing 6 posts - 1 through 6 (of 6 total)
  • #101114
    Abz

    Hello,trying out an simple macd strategy. If someone coud help , much appreciated.

    for Long:

    1. once macd crosses over 0 and the next 3 bars on macd line is green
    2. then place and buy order “x”pips below the close price of the 3rd bar

     

    For short:

    1. once macd crosses under 0 and the next 3 bars are red
    2. then place a short order “x”pips over the close price of the 3rd bar

     

    see also attached screen

     

     

     

     

    #101124

    3 red / green candles:

     

    And heres the “place an order below/above closed candle:

     

     

    So your entire code would look like this:

     

    3 users thanked author for this post.
    #101128

    Just noticed you might have asked for 3 red macd bars and not 3 red candles in photo. Do you want the 3 bars to be lower/higher then the last one? or does it only matter that they are red/green?

     

    This is for 3 red macd histogram bars that goes lower and lower: (just do the “>” for higher and higher for long trades)

    If you only want 3 red bars and it dosnt matter which is bar is lower then the other then just remove c4 and c5

     

     

    1 user thanked author for this post.
    avatar Abz
    #101135

    I’m watching with interest … please post curve and stats on here Abz  and thanks goes to  jebus89 for the coding!

    #101180
    Abz

    Thanks Jebus , i will do some backtests and report back

    1 user thanked author for this post.
    #155524

    Good post. How about to filter signals of sideways market? Thx

Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login