Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawDown during open position too

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

    DrawDown during open position too

    Code:
    SystemPerformance.AllTrades.TradesPerformance.Currency.DrawDown
    returns the changed DD value only after trade is closed.
    However, how can we get the DD (which is changed on each bar) during the opened position too? I've tried to use:
    Code:
    SystemPerformance.AllTrades.TradesPerformance.Currency.DrawDown  + Position.GetUnrealizedProfitLoss(PerformanceUnit.Currency, Close[0])
    but that is not accurate as P/L is different thing that DD.

    So, is there anything like "UnrealizedDD" or like that to return the every-bar updated value during open position too?

    #2
    seems already reported - https://ninjatrader.com/support/foru...ximum-drawdown

    but no solution yet.

    Comment


      #3
      Hello TazoTodua, thanks for your post.

      SFT-1543 is still an open feature request, I will add a vote to this feature.

      Comment


        #4
        ChrisL, thanks, but i really dont need to add vote (its just meaningless), so you can subtract my vote really.
        all i want is, just, if you have any hint or some workaround or phseudo-code to achieve that?
        it's simple, i want the DrawDawn value that is shown on each bar (nevertheless if there is not open position or not).
        now, the DD only is updated when position is closed.

        Comment


          #5
          Hi TazoTodua, thanks for your reply.

          Unfortunately, I can not create custom code for clients.

          Comment


            #6
            Please add my vote for this feature

            Comment


              #7
              I just found this thread while messing with Strategy Analyzer. I'm working on a strategy that uses daily bars. The strategy legs into positions over several days, sometimes up to a month or two. While this is happening the price of the instrument may be going down and the previous positions are going against me. If I eventually exit the position with a profit, there is no record of how much the position went in my face (drawdown). In all of the analysis tools, I see nothing but the profit when the position is closed. This can't be correct. Is there a setting or something I do not have set?

              Comment


                #8
                Hello Strategery,

                Thank you for your post.

                Are you trying to find the draw down for specific positions / an entry and exit?

                In the Analyzer, use the drop-down menu and select 'Analysis', then in the Analysis view select the 'Period' drop-down and switch that to 'Trades'.

                This view breaks down the results to individual paired entry + exit and has a max drawdown column.


                If this is not the information you are looking for, please let me know.
                Last edited by NinjaTrader_Gaby; 01-24-2024, 01:47 PM.

                Comment


                  #9
                  I want to know the drawdown of my strategy as it is running. If Ninjatrader brokerage is not going to measure my risk until my position is closed I am fine with that but I have a feeling that is not the case, lol. I guess it would not be so bad on scalping and shorter-term strategies but with a long-term strategy that holds positions for weeks or even months, it sure would be nice to know if my account would have blown out before I exited. From what I can see, a position can draw down $100k while it is on, but if it exits with a $1 profit a week later, there is no drawdown registered in the analyses. I guess it is a limitation of the app. I'll figure something else out. Thanks!

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by NullPointStrategies, Yesterday, 05:17 AM
                  0 responses
                  63 views
                  0 likes
                  Last Post NullPointStrategies  
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  139 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  75 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  45 views
                  0 likes
                  Last Post Deep42
                  by Deep42
                   
                  Started by TheRealMorford, 03-05-2026, 06:15 PM
                  0 responses
                  50 views
                  0 likes
                  Last Post TheRealMorford  
                  Working...
                  X