Max Drawdown code
Forums › ProRealTime English forum › ProOrder support › Max Drawdown code
- This topic has 8 replies, 2 voices, and was last updated 8 years ago by Nicolas.
Tagged: drawdown
-
-
06/16/2016 at 2:20 PM #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):
12floatingprofit = (((close-positionprice)*pointvalue)*countofposition)/pipsize + strategyprofitDrawdown = highest[60*24*7](floatingprofit) - lowest[60*24*7](floatingprofit)E.g. I want to refer or closely calculate these values:
06/16/2016 at 3:12 PM #9455Hi 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.
06/16/2016 at 3:55 PM #945706/16/2016 at 8:49 PM #9471So 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.
06/17/2016 at 12:41 AM #947406/17/2016 at 8:42 AM #947606/17/2016 at 10:48 AM #948406/17/2016 at 11:14 AM #948906/19/2016 at 7:31 PM #9566 -
AuthorPosts
Find exclusive trading pro-tools on