Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Question about Strategy Analyzer

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

    Question about Strategy Analyzer

    Hello,

    In Strategy Analyzer, is there a way to see your drawdowns before your position closes?

    For example, sometimes a position will stay open, be in the red and then recover for a profit. I want to see how far down the position goes before it becomes profitable.

    Is this currently available?

    Thanks,

    -Omer

    #2
    Hello omermirza,

    Thank you for your post.

    Max drawdown could be viewed when running a strategy in the Strategy Analyzer window. The maximum drawdown statistic provides you with information regarding the biggest decrease (drawdown) in account size experienced from the highest high seen.

    See the attached image demonstrating where max drawdown could be viewed.

    Let us know if we may assist further.
    Attached Files
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Thank you but isn't that after the position closes? I want to see the running max drawdown - while a position is open.

      Comment


        #4
        Hello omermirza,

        Thank you for your note.

        That is correct. That value would be the max drawdown after the positions close. It would not be possible to see the running drawdown when backtesting the Strategy Analyzer.

        If you would like to see the drawdown forming throughout the trades life you would need to use the Playback Connection and modify your strategy so that it prints out the Drawdown of each trade.

        You could track individual trades by using OnOrderUpdate(). You would create an order object and assign the order to it in OnOrderUpdate(). Then, check if the order object is not null and that the order object is equal to the order and print out the Drawdown.

        See the help guide documentation below for more information.
        OnOrderUpdate() - https://ninjatrader.com/support/help...rderupdate.htm
        Drawdown - https://ninjatrader.com/support/help...8/drawdown.htm
        TradesPerformance Values - https://ninjatrader.com/support/help...ancevalues.htm
        SampleOnOrderUpdate() - https://ninjatrader.com/support/help...and_onexec.htm

        Let us know if we may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Thanks - I'll take a look.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by andrewtrades, Today, 04:57 PM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by chbruno, Today, 04:10 PM
          0 responses
          3 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by josh18955, 03-25-2023, 11:16 AM
          6 responses
          436 views
          0 likes
          Last Post Delerium  
          Started by FAQtrader, Today, 03:35 PM
          0 responses
          7 views
          0 likes
          Last Post FAQtrader  
          Started by rocketman7, Today, 09:41 AM
          5 responses
          19 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X