Announcement

Collapse
No announcement yet.

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.

      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      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.
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          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.
              <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

              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.
                  <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

                  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.
                      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by NullPointStrategies, Yesterday, 05:17 AM
                      0 responses
                      56 views
                      0 likes
                      Last Post NullPointStrategies  
                      Started by argusthome, 03-08-2026, 10:06 AM
                      0 responses
                      133 views
                      0 likes
                      Last Post argusthome  
                      Started by NabilKhattabi, 03-06-2026, 11:18 AM
                      0 responses
                      73 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
                      49 views
                      0 likes
                      Last Post TheRealMorford  
                      Working...
                      X