Help with my stratery , keeps getting stopped

Forums ProRealTime English forum ProOrder support Help with my stratery , keeps getting stopped

Viewing 7 posts - 1 through 7 (of 7 total)
  • #206661

    Hello, Happy new year!

    Wondering if anyone can help me out , trying out this stratergy but it keeps getting stopped.

    Tried to alter the stoploss but it doesnt help.

    Any ideas ?

     

     

     

    #206663

    BUY 0.5 CONTRACT AT MARKET SELLSHORT 0.5 CONTRACT AT MARKET

    What Instrument? Is 0.5 allowed?  What error message do you see when you click on the yellow disc after System has been stopped?

    Change to 1.0 and see if makes any difference?

    #206667

    SET STOP pTRAILING (5 + 1.2)

    Read the Topic on the link below to see why pTailing won’t work

    https://www.prorealcode.com/topic/sp500-backtest-shows-different-numbers-than-the-report/

    #206680

    What Instrument? Is 0.5 allowed? What error message do you see when you click on the yellow disc after System has been stopped?

     

    Change to 1.0 and see if makes any difference?

    Hi GraHal thanks for the reply.
    Its on the Dax40 and yes i can use 0.5.

    Ok will check later

    #206688

    Hi, topic moved from probuilder to proorder forum for housekeeping. Please use probuilder forum for custom coded indicators, and proorder forum for strategies and backtests, thanks. Best Wishes for the new year.

    1 user thanked author for this post.
    #206695

    You where right. I deleted “SET target profit takeProfit” and only use SET STOP pTRAILING (5 + 1.2)

    Seems like the Stop and Target profit was conflicting one another. At the moment it didnt not stop

     

    Thanks for your help for now

    #206715

    The main issue is not using SET target profit or not, it’s changing the variable takeProfit almost each bar. That’s because, even if you have limited your code to ONE open trade, conditions are still evaluated and, when met, takeProfit is changed (be it the same or the opposite direction).

    Add AND Not OnMarket to your conditions in both lines 19 and 26, to prevent the execution of lines 21-22 and 28-29 when a position is open.

     

     

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

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