MA crossover: entry + 15 points query

Forums ProRealTime English forum ProOrder support MA crossover: entry + 15 points query

Viewing 5 posts - 1 through 5 (of 5 total)
  • #96725

    Hi,

    Complete newbie here so sorry if this is a silly question. I have looked in the forum but can not find a way to code it. I am trying to do the following:

    Buy conditions:

    ma5 crosses over ma15 AND DI+ > DI-  then buy at *crossover price plus 15 points* at 5 per point

    Sell conditions:

    ma5 crosses under ma15 AND DI- > DI+ then buy at *crossover price minus 15 points* at 5 per point

    I am struggling to work out the part in asterixes!  So for example if ma5 crosses over ma15 at 12000 then providing the DI+ > DI-, I want to enter the trade at a price of 12015, hope that makes sense! Any help much appreciated!

     

     

     

    #96738

    In this case you should use pending stop orders. But since they expire automatically on each new bar open and because we need to renew them continuously, how much long do you want them to “exist”?

    #96753

    Hi Nicholas,

    Thanks for your help, deally they would exist until the ma’s crossover again and at that point would cancel the opposing trade and take the new trade (if it has passed the 15points from crossover price). Hope that makes sense!

    #96757

    here is the code:

     

    1 user thanked author for this post.
    #96764

    Fantastic, thanks Nicholas, I am not at screen at moment but will try it tomorrow. Thanks again!

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

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