Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Optimization missing 'strategy parameters'?

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

    Optimization missing 'strategy parameters'?

    Hello
    I'm looking to optimize an existing (profitable) strategy to improve win rate. Unfortunately when I select "optimization," there is no section for 'strategy parameters' so I can't run anything. I get an error message, "The strategy must have at least one parameter to optimize"

    #2
    Hello mattlaguardia,

    Thanks for your post.

    It is important to first understand the purpose of optimizations before optimizing a strategy. You can fine-tune the input parameters of a strategy through optimization. Optimization is the process of testing a range of values through iterative backtests to determine the optimal input values over the historical test period based on your optimization fitness.

    This error indicates that you do not have a ranged property in the script that could be used for optimization. To run an optimization on a strategy, you would need to modify the strategy to add at least one property with a ranged input to your script.

    An example of a range input would be the 'Fast' and 'Slow' properties in the SampleMACrossOver strategy that comes default with NinjaTrader. If you open the SampleMACrossOver strategy in a New > NinjaScript Editor window, you could view the Properties section of the script to see an example of a ranged input property.

    See this help guide documentation for more information.

    RangeAttribute: https://ninjatrader.com/support/help...eattribute.htm
    NinjaScriptPropertyAttribute: https://ninjatrader.com/support/helpGuides/nt8/ninjascriptpropertyattribute.htm

    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


      #3
      Ah, that makes sense.

      I'm not using any sort of off-the-shelf indicators for this strategy. I guess that's why it won't allow me to optimize in NT.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      67 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      142 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      76 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      47 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      51 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X