Max Drawdown code

Forums ProRealTime English forum ProOrder support Max Drawdown code

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • #9450

    Hi everyone,

    Could anyone help me refine the code that will return the Drawdown and Run up value ?

    I think Drawdown will be something like this (1min TF over a 1 week lookback):

     

     

    E.g. I want to refer or closely calculate these values:

    Screen-Shot-2016-06-16-at-11.00.00-PM

     

    #9455

    Hi grizzly, drawdown of closed trades or drawdown of the floating ones? There are 2 different things 🙂

    I assume you want to calculate the floating one since you are using the “floatingprofit” variable already discussed here and there on the site, so be aware that the “max drawdown” of the ProBacktest result window has nothing to deal with it.

     

     

     

    1 user thanked author for this post.
    #9457

    Hi Nicholas,

    I would like the drawdown value of the floating-profit as I’m having trouble with the Max(floating profit) part of the code.

    Thank you

    E.g. Calculate the drawdown in this

    high-water-example

    #9471

    So you are looking for the MAE, the Max Adverse Execution, it is the minimum profit that the trade has reached, you should look at my recent blog article about the MFE, it is the exact inverted calculation.

    1 user thanked author for this post.
    #9474

    Thanks Nicholas – I will take a look

    #9476

    But use the floating profit and not the candlestick close price of course 🙂

    1 user thanked author for this post.
    #9484

    😉

     

     

    Screen-Shot-2016-06-17-at-7.47.42-PM

    #9489

    Perfect for high-watermarks 🙂

    Screen-Shot-2016-06-17-at-8.13.52-PM

    #9566

    Well done! and seems a nice decent strategy 😉

Viewing 9 posts - 1 through 9 (of 9 total)

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