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

Is there a way to exclude some parameters combinations from optimization?

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

    Is there a way to exclude some parameters combinations from optimization?

    Hi,

    I coded an Strategy and I would like to exclude some parameters combination to optimization. A simple example:

    Parameter fastValue with this range 5:50:1
    Parameter slowValue with this range 25:100:1

    But I would like to exclude any combination where slowValue < fastValue. I'm looking for suggestions to find a simple way to do it, may be I'm missing some Ninjatrader feature that can do it.

    Thank you for you help

    Regards
    Last edited by mbcmbc; 12-05-2020, 12:47 PM.

    #2
    Hi mbcmbc,
    Not really, see below.
    https://ninjatrader.com/support/foru...ons#post845108
    Thus, even if you "forbid" certain combinations in the code, the number of iterations will still be the same. However, the optimization should run (a bit) faster because no trades have to be calculated for "forbidden" combinations.
    To verify that your "exclude some combinations" logic works fine, have a look at the optimization report. It should include some rows with no trades/results (b/c you kicked them).
    You might need to increase the "Keep best # results" to a number equal to the number of iterations to be able to see this.
    The attached illustrated this.
    NT-Roland
    Attached Files

    Comment


      #3
      Hi NT-Roland,

      I'll do it as you suggested then.

      Thank you for your reply!

      Regards

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DayTradingDEMON, Today, 09:28 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      8 responses
      31 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by helpwanted, Today, 03:06 AM
      2 responses
      21 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by navyguy06, Today, 09:28 AM
      0 responses
      2 views
      0 likes
      Last Post navyguy06  
      Started by rjbtrade1, 11-30-2023, 04:38 PM
      2 responses
      77 views
      0 likes
      Last Post DavidHP
      by DavidHP
       
      Working...
      X