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 Pattontje, Yesterday, 02:10 PM
          2 responses
          14 views
          0 likes
          Last Post Pattontje  
          Started by flybuzz, 04-21-2024, 04:07 PM
          17 responses
          229 views
          0 likes
          Last Post TradingLoss  
          Started by agclub, 04-21-2024, 08:57 PM
          3 responses
          17 views
          0 likes
          Last Post TradingLoss  
          Started by TradingLoss, 04-21-2024, 04:32 PM
          4 responses
          43 views
          2 likes
          Last Post TradingLoss  
          Started by cre8able, 04-17-2024, 04:16 PM
          6 responses
          56 views
          0 likes
          Last Post cre8able  
          Working...
          X