Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Analyzer: Max Drawdown
Collapse
X
-
Strategy Analyzer: Max Drawdown
Could you provide the code you use in the Strategy Analyzer to calculate the "Max drawdown".Tags: None
-
Hello spottysallrite,
Thank you for your post.
The actual code itself is internal to NinjaTrader and we would not be able to provide the exact code used.
The statistics definition page contains information on several statistics, including maximum drawdown:
Another terrific resource is the publicly available page Investopedia, which has this to sayOriginally posted by http://ninjatrader.com/support/helpG...efinitions.htm
Maximum Drawdown
The maximum drawdown statistic provides you with information regarding the biggest decrease (drawdown) in account size experienced from the highest high seen. Drawdown is often used as an indicator of risk.
Drawdown=localmaximumrealizedprofit–localminimumre alizedloss
MaxDrawdown=singlelargestDrawdown
As an example, your account rises from $25,000 to $50,000. It then subsequently drops to $40,000 but rises again to $60,000. The drawdown in this case would be $10,000 or -20%. Take note that drawdown does not necessarily have to correspond with a loss in your original account principal.
Note: This statistic may also display in selected Display Units (percent, points, pips or ticks). To see the base calculation behind each execution, view the Profit and Loss Calculation Modes page.
On that page is a more detailed breakdown.Originally posted by http://www.investopedia.com/terms/m/...awdown-mdd.asp
What is a 'Maximum Drawdown (MDD)'
A maximum drawdown (MDD) is the maximum loss from a peak to a trough of a portfolio, before a new peak is attained. Maximum Drawdown (MDD) is an indicator of downside risk over a specified time period. It can be used both as a stand-alone measure or as an input into other metrics such as "Return over Maximum Drawdown" and Calmar Ratio. Maximum Drawdown is expressed in percentage terms and computed as:
(Trough Value – Peak Value) ÷ Peak Value
Please let us know if we may be of further assistance to you.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
58 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
133 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment