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 algospoke, 04-17-2024, 06:40 PM
      3 responses
      26 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by bmartz, 03-12-2024, 06:12 AM
      3 responses
      27 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Started by Aviram Y, Today, 05:29 AM
      2 responses
      8 views
      0 likes
      Last Post Aviram Y  
      Started by gentlebenthebear, Today, 01:30 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by cls71, Today, 04:45 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X