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"
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Optimization missing 'strategy parameters'?
Collapse
X
-
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"Tags: None
-
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>
-
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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
21 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
30 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
50 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment