Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Backtest max DD in open position
Collapse
X
-
Yes, but I believe this drawdown is calculated based on losing trades on a closing basis. I'd like to know per trade what the max drawdown was while in that position.
For example: I place an long order EURUSD 1.1300 and while in that position it drops to 1.1250. Finally I close the position when it hits 1.1325 for +25 pips. Right now I dont see the -50 pips while I was in that position. Just that it closed for a +25 profit. I'd like to see the -50 too.
Comment
-
Originally posted by siroki View PostYes, but I believe this drawdown is calculated based on losing trades on a closing basis. I'd like to know per trade what the max drawdown was while in that position.
For example: I place an long order EURUSD 1.1300 and while in that position it drops to 1.1250. Finally I close the position when it hits 1.1325 for +25 pips. Right now I dont see the -50 pips while I was in that position. Just that it closed for a +25 profit. I'd like to see the -50 too.
The OP is arguably mis-using the word "drawdown", since other terms exist to describe what he wants.
Drawdown reflects how a closed trade has affected your account balance, thus it is per-trade statistic and is a value calculated after the trade has closed.
<SideNote>
How to calculate MaxDrawDown?
Here is some pseudo code for currency calculations,
Code:Let MaxDrawDown = 0 Let DrawDown = 0 FOREACH trade that has closed DO Drawdown = DrawDown + Trade-Realized-Profit-In-Currency; if (DrawdDown > 0) DrawDown = 0; if (DrawDown < MaxDrawDown) MaxDrawDown = DrawDown; END LOOP
What the OP wants is Maximum Adverse Excursion (MAE), which keeps track of the worst PnL the trade ever saw while the trade was open.
Conversely, the Maximum Favorable Excursion (MFE) keeps track of the best PnL the trade ever saw while the trade was open.
Comment
-
Originally posted by bltdavid View PostOld post, but it bugs me when confusion continues to reign in a historical thread.
The OP is arguably mis-using the word "drawdown", since other terms exist to describe what he wants.
Drawdown reflects how a closed trade has affected your account balance, thus it is per-trade statistic and is a value calculated after the trade has closed.
<SideNote>
How to calculate MaxDrawDown?
Here is some pseudo code for currency calculations,
Code:Let MaxDrawDown = 0 Let DrawDown = 0 FOREACH trade that has closed DO Drawdown = DrawDown + Trade-Realized-Profit-In-Currency; if (DrawdDown > 0) DrawDown = 0; if (DrawDown < MaxDrawDown) MaxDrawDown = DrawDown; END LOOP
What the OP wants is Maximum Adverse Excursion (MAE), which keeps track of the worst PnL the trade ever saw while the trade was open.
Conversely, the Maximum Favorable Excursion (MFE) keeps track of the best PnL the trade ever saw while the trade was open.
Comment
-
Originally posted by koganam View PostYou are not the only one irked by imprecision. Join the club.
The OP's own definition in his opening post screamed out MAE MAE MAE ... so I was disappointed and surprised that NT support did not "see" that.
NT support is usually quite good ... but they failed in this thread.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by The_Sec, Yesterday, 03:53 PM
|
1 response
12 views
0 likes
|
Last Post Today, 06:23 AM | ||
Started by mmenigma, Yesterday, 03:25 PM
|
1 response
11 views
0 likes
|
Last Post Today, 06:09 AM | ||
Started by kujista, Today, 05:44 AM
|
0 responses
7 views
0 likes
|
Last Post
by kujista
Today, 05:44 AM
|
||
Started by ZenCortexCLICK, Today, 04:58 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 04:58 AM | ||
Started by sidlercom80, 10-28-2023, 08:49 AM
|
172 responses
2,282 views
0 likes
|
Last Post
by sidlercom80
Today, 04:40 AM
|
Comment