Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer: Max Drawdown

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy Analyzer: Max Drawdown

    Could you provide the code you use in the Strategy Analyzer to calculate the "Max drawdown".

    #2
    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:

    Originally 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.
    Another terrific resource is the publicly available page Investopedia, which has this to say

    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
    On that page is a more detailed breakdown.

    Please let us know if we may be of further assistance to you.


    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    71 views
    0 likes
    Last Post PaulMohn  
    Working...
    X