Problem with “Trading the strategy profit curve”

Forums ProRealTime English forum ProOrder support Problem with “Trading the strategy profit curve”

  • This topic has 20 replies, 3 voices, and was last updated 4 years ago by avatarLink.
Viewing 15 posts - 1 through 15 (of 21 total)
  • #168558

    I am trying to adapt this Nicolas Money management system to my strategy.

    The problem is that I can’t get that when the strategy profit falls below the equity curve the system stops operating.

     

    So far what I have is this:

     

     

    #168560

    Have you tried with Line 2 commented out, Rem’d out?

    Also the CurvePeriod is very large, how did you arrive at 17280?

    Just a few thoughts.

    #168561

    17280 is 60 days of trading on 5 minutes bars.

    3 montes.

    #168562

    This is the link of Nicolás strategy.

     

    https://www.prorealcode.com/blog/trading-strategy-profit-curve/

    1 user thanked author for this post.
    #168563

    From the link you posted, it states the code was written for PRT v10.2 so maybe it does not wotk correctly on v11.

    Just more thoughts from me, but hopefully a coding wizard will be along to help you.

    #168564

    My versión es 10.2 or 10.3.

     

     

    #168565

    Lines 48-50 do the job:

     

    #168566

    Ok Roberto.

     

    But isnt “QUIT”.

     

    Is pause trading only.

    #168567

    You wrote “system stops operating“. Indeed pausing it makes no sense, since it’s almost like QUIT if you don’t add any condition to resume operations, but… there you go:

    I added lines 10-13, then added TradeON to CONDBUY at line 19.

    #168568

    Ok Roberto.

     

    This afternoon i see.

     

    Thanks!

    #168570

    With this code the system stops operating when the profit strategy falls below the equity curve.

    It is about operating again when the profit strategy crosses up the equity curve again.

    #168572

    How can the curve go up again if trading is paused?

    Try adding this AFTER line 13:

     

    #168573

    No function.

     

    🙁

    #168574

    https://www.prorealcode.com/topic/equity-curve-average-filter/

     

    This Code thats OK!!!!!!!!!!!!!!

     

    🙂

    #168577

    It does something, but this code doesn’t work well either.

    It should stop operating but continues to operate.

Viewing 15 posts - 1 through 15 (of 21 total)

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