Max drawdown calc

Viewing 3 posts - 16 through 18 (of 18 total)
  • #243079

    This code calculates both DrawDown and RunUp and their ratio, butyou have to add it to one of your strategies, not indicators:

    You only have to set your Capital, in place of 10000.

     

    1 user thanked author for this post.
    #243083

    @robertogozzi Isn’t there a mistake on line 24?

    MaxRU         = min(MaxRU,RU)

     

    #243089

    No, as we always have to store the highest value, both for RunUP and DrawDOW, this code matches ProRealTime calculations (on Dax, DailyTF) as shown in the attached pic:

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

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