Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest max DD in open position

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

    Backtest max DD in open position

    I'd like to see the max DD while in an open position in the backtest results. I'd like to know what amount my position goes into red before closing it.

    #2
    Hello siroki,

    You can create a Draw Down graph under the Graphs-tab. The Summary-tab will show the maximum draw down of the entire backtest.
    Attached Files
    JasonNinjaTrader Customer Service

    Comment


      #3
      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


        #4
        I see, thank you for clarifying. I will forward the suggestion to development to put it on the list of possible future enhancements.
        JasonNinjaTrader Customer Service

        Comment


          #5
          Originally posted by siroki View Post
          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.
          Old 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
          </SideNote>

          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


            #6
            Originally posted by bltdavid View Post
            Old 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
            </SideNote>

            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.
            You are not the only one irked by imprecision. Join the club.

            Comment


              #7
              Originally posted by koganam View Post
              You are not the only one irked by imprecision. Join the club.
              Well, I know, but the thing that irked me the most was the inability of NT support to advise the OP regarding the terms "drawdown" vs "MAE".

              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 aa731, Today, 02:54 AM
              0 responses
              4 views
              0 likes
              Last Post aa731
              by aa731
               
              Started by thanajo, 05-04-2021, 02:11 AM
              3 responses
              469 views
              0 likes
              Last Post tradingnasdaqprueba  
              Started by Christopher_R, Today, 12:29 AM
              0 responses
              10 views
              0 likes
              Last Post Christopher_R  
              Started by sidlercom80, 10-28-2023, 08:49 AM
              166 responses
              2,237 views
              0 likes
              Last Post sidlercom80  
              Started by thread, Yesterday, 11:58 PM
              0 responses
              4 views
              0 likes
              Last Post thread
              by thread
               
              Working...
              X