Stop Loss at breakeven and close half of position Take Profit – Strategy Coding

Forums ProRealTime English forum ProOrder support Stop Loss at breakeven and close half of position Take Profit – Strategy Coding

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

    Hello,

    Can someone please help me with the following:

    Rules for LONG Trades;

    1. Initial Stop at 65 pips.
    2. Close half of the position at +50 pips; move stop loss on rest to initial entry price (breakeven).
    3. Close remainder of position at +195 pips.

    Same rules apply for SHORT trades.

    I am trying to do a backtest on EURUSD. Can anyone please provide the code for the above rules.

    Thank you.

    Regards,
    Maisam

    #92331

    Everything you need for this is included in this code example: https://www.prorealcode.com/topic/bollinger-band-coding-help-please/#post-80959

    Levels are expressed in percentage of the takeprofit and not in pips for breakeven/partial closure.

    #92374

    Thanks @ Nicolas.

    I will have a look.

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