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

Optimizing on "Min draw down"

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

    Optimizing on "Min draw down"

    Sometimes, when performing the above, the result is having a drawdown of zero. While it would be nice to have a script that can perform that, having a zero drawdown isn't realistic. Indeed, this often results in having only a very few trades. So, would it be possible to allow the user to submit an allowable minimum amount?

    #2
    you could also add calculation inside Optimization Fitness script, like:
    if (number_of_trades < x && max_drawdown == 0)
    Value = 0

    where:
    - number_of_trades = NinjaTrader's formula of trade count (you can get it browsing through various Optimization Fitness scripts, I don't have NinjaTrader up and running, so I couldn't quote exactly)
    - x = your int variable to filter out minimum number of trades
    - max_drawdown = NinjaTrader's formula for max drawdown.

    So I just basically gave you a concept/idea to build from.

    Comment


      #3
      Hello spottysallrite,

      Thanks for your post.

      The drawdown would be controlled by the executions that were made by the strategy and the market data.

      The drawdown is the largest amount of loss reached during the duration of the trade. A long trade where the market only increases and then exits from a profit target is an example of a trade that would have 0 drawdown.

      See the help guide documentation below for more information.



      Let us know if we may assist further.

      Brandon H.NinjaTrader Customer Service

      Comment


        #4
        Brandon, your answer tells me nothing -- it's a non-answer, dodging the actual question. Please try again with something constructive and to the actual point.

        Comment


          #5
          Hello spottysallrite,

          Thanks for your note.

          There are no supported or documented means for setting a minimum drawdown amount when using Optimize on 'Min draw down' in the Strategy Analyzer.

          "...having a zero drawdown isn't realistic"

          It would be possible to have a minimum drawdown amount of 0 when backtesting/optimizing a strategy in the Strategy Analyzer. An example of having a minimum drawdown of 0 would be as follows:

          "A long trade where the market only increases and then exits from a profit target is an example of a trade that would have 0 drawdown."

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

          Comment


            #6
            Ok, so it is possible to modify the Strategy Analyzer so it can do this (ie, allow the user to select an allowable minimum drawdown amount)?

            Comment


              #7
              Hello spottysallrite,

              Thanks for your note.

              No, the Strategy Analyzer cannot be modified to allow you to set a minimum drawdown amount.

              As previously stated: "There are no supported or documented means for setting a minimum drawdown amount when using Optimize on 'Min draw down' in the Strategy Analyzer."

              That said, this thread will be open for other forum community members to share their insight on unsupported code that may accomplish this.

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

              Comment


                #8
                Ok, so I'd like to submit a feature modification request for this.

                Comment


                  #9
                  Hello spottysallrite,

                  Thanks for your note.

                  The internal tracking number for your feature request is SFT-5528. Please reference this internal tracking number when contacting Platform Support if you ever have questions regarding this feature request.

                  When a feature request is implemented, you'll find a description of the new feature in the release notes:Let us know if we may assist further.
                  Brandon H.NinjaTrader Customer Service

                  Comment


                    #10
                    Add my vote as well.

                    Comment


                      #11
                      Hello UltraNIX,

                      Thanks for your note.

                      Your vote has been added.

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

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Fitspressorest, Today, 01:38 PM
                      0 responses
                      2 views
                      0 likes
                      Last Post Fitspressorest  
                      Started by Jonker, Today, 01:19 PM
                      0 responses
                      2 views
                      0 likes
                      Last Post Jonker
                      by Jonker
                       
                      Started by futtrader, Today, 01:16 PM
                      0 responses
                      6 views
                      0 likes
                      Last Post futtrader  
                      Started by Segwin, 05-07-2018, 02:15 PM
                      14 responses
                      1,791 views
                      0 likes
                      Last Post aligator  
                      Started by Jimmyk, 01-26-2018, 05:19 AM
                      6 responses
                      844 views
                      0 likes
                      Last Post emuns
                      by emuns
                       
                      Working...
                      X