Limit Strategy to 1 trade per day

Forums ProRealTime English forum ProOrder support Limit Strategy to 1 trade per day

Viewing 3 posts - 1 through 3 (of 3 total)
  • #186124

    I have been playing around with @Doctrading ‘s end of day Yen M15 strategy (code above is for Sunday only trades), which I find works quite well when initial positions are opened and then hit take profit levels.  Performance then tails off a little when new positions are opened and run through to 0030 when all positions are closed.  When the strategy goes live each day, it sets limit orders higher (sell) than the opening level and lower (buy).  Is there a way to effectively add an OCO rule so that once a buy order is opened (for example), the corresponding sell order is cancelled….so, if a 1.09 USD/JPY buy order is filled, the corresponding 1.10 sell order would be cancelled?

    Thanks in advance.

    #188312

    This will limit your strategy to One Trade per Day (using the variable OTD):

     

    1 user thanked author for this post.
    #188581

    I like to simplify so think this would work but not tested it.. Logic seems OK though… I used similar for only trading once between certain times of day which worked very well…

    This simply resets at start of the day after each day:

    Obviously putting in your own buy codes and criteria etc… I’ve not played around with the end time but hopefully it would work..

    Hope it helps..

    1 user thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)

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