Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Intrabar Unrealized Max Drawdown
Collapse
X
-
Intrabar Unrealized Max Drawdown
What is the best way (available options?) to capture data for the intrabar unrealized max drawdown? I understand the Max Adverse Excursion (MAE) gives you the maximum amount the price action moves against you compared to your entry position price while you are in the trade. I am not looking for that metric. What I am attempting to capture is within 1 bar (say a 1-minute bar as an example), what is the maximum amount the price action moves against you from a "peak value", not your entry position. For example, let's say your entry position "price" is "10." On a long position, if the price moves up to 20 and then back down to 11 (still above your entry price), before continuing up to hit your "profit target" of "25." The value I am looking to capture is 9 (20 - 11 = 9).Tags: None
-
Hello,
Thank you for your post.
NinjaTrader does not provide a calculation for the drawdown of an open position, but we do provide a calculation for Max Drawdown for closed trades in the SystemPerformance collection.
For what you have described, you would need to develop a custom calculation and track each PnL after each rise or fall.Here is the formula for Max. Drawdown:You can also find an example performance metric, SampleCumProfit, within the PerformanceMetrics folder in the NinjaScript Editor.Drawdown = local maximum realized profit – local minimum realized loss
Max Drawdown = single largest Drawdown
Please let me know if I may be of any further assistance.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
547 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
323 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
99 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
543 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
545 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment