Help please to code a One Shot Trading System

Forums ProRealTime English forum ProOrder support Help please to code a One Shot Trading System

Viewing 6 posts - 1 through 6 (of 6 total)
  • #193833
    1.   If +20 points from 8:00am price, open Long.
    2.  If  – 20 points from 8:00am price, open Short.
    3. For Long & Short trades, SL = -20 TP = +96.
    4. If +10 in profit,  move stop to -10, close 50 % of pos size.
    5. If +40 in profit, move stop to +16  and close 50% of remaining pos size.
    6. If +44 in profit, start trailing stop to trail by + 20, then move by +1 for each successive +1 rise.
    7. Trade exits either by TS or the TP (+96).
    8. System then Quits.
    #194062

    There you go:

    I added a DISTANCE as required by the broker (the correct value is to be checked with the broker)  for pending orders. If an order is placed at an incorrect price, the oredr is rejected and the strategy stopped (in both demo and real, not in backtest, of course).

    As to the DISTANCE I added two commented lines (thus ignored) to exit at MARKET if the distance is not enough. If you wat to use those two lines, simply remove the leading slashes.

    To disable the distance, set it to 0.

     

    5 users thanked author for this post.
    #194074

    Thank you very much Roberto, much appreciated.

    1 user thanked author for this post.
    #194081

    Roberto is so very kind helping us all out, coding our ideas!

    Let us know how you get on Monday please Berwick.  I’m going to give it a go also! 🙂

    1 user thanked author for this post.
    #194084

    A 20-pip SL is so tight that it almost always is hit and the strategy is stopped immediately.

    To test it, I used a 100-pip SL and commented out the QUIT instruction.

     

    1 user thanked author for this post.
    #194090

    Roberto is so very kind helping us all out, coding our ideas!

    Let us know how you get on Monday please Berwick. I’m going to give it a go also! 🙂

    GraHal,  please be aware that this is not the entry strategy that I use, my initial request was for a trade manager and it is this part of the code that I am really interested in. Monday may be a quiet day on the markets as it is Memorial Day in the US.

     

    2 users thanked author for this post.
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