Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
double variable can't be set less than 1?
Collapse
X
-
double variable can't be set less than 1?
I use a double variable in my strategy which needs to be set to a value of 0.5. However during backtesting, I can't set the variable to less than 1 in the strategy start up page even though I declare the variable as a double. But when using optimization, I am able to set it to less than 1. Why is that so?Tags: None
-
tjendra, please check the properties section for your user defined input parameters, most likely connected to step 7 in this tip - http://www.ninjatrader-support2.com/...ead.php?t=5782
-
If it's not due to having a lower bound in your code as per Bertrand's suggestion, try restarting NT.
I was having an issue yesterday whereas I could enter a double value when using the backtest, but during optimization it would allow me to enter doubles but then change them to 1 in the actual results. A restart sorted it out tho.
Comment
-
Hi Bertrand, your suggestion solve the problem. Thanks.Originally posted by NinjaTrader_Bertrand View Posttjendra, please check the properties section for your user defined input parameters, most likely connected to step 7 in this tip - http://www.ninjatrader-support2.com/...ead.php?t=5782
Comment
-
I set default values to the variables inside my strategy, but everytime I backtest my strategy, I have to manually change the variables values during the strategy startup page to be the same as what I had programmed within the strategy. Why is that so?
I also have multiple instance of the same strategy but for different instruments set with different values to the variables inside my strategy. But on the strategy startup page, it doesn't reflect the default values for the different strategies as well. Is it possible to always show the default values for the different strategy during the strategy startup page?
Comment
-
Yes Josh, the parameters all are named the same. But within the strategy, the variables values are set differently. U mean the backtest will just take same values across all the strategies if the parameters are named the same even though they are set differently within the strategy?Originally posted by NinjaTrader_Josh View Posttjendra,
If your parameters all are named the same it will take the default parameter across all of your strategies that have the same parameter names. Instead, try using separate parameter names and that will keep everything unique.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
46 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
66 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment