Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Analyzer - Optimization - Decimal steps?
Collapse
X
-
Strategy Analyzer - Optimization - Decimal steps?
Is it possible to set decimal steps for double parameters? When I set them NT change them for integers, but I would need to use decimals. For example: 0,1;0,6;0,2 Isn't it possible? -
Hello manugarc,
No, the Strategy Analyzer is only able to increment by 1 in an optimization.
You could instead use an integer as the input, divide this by 100 and store the value to a double.
Then as the integer input is incremented, this is calculated to a decimal.Chelsea B.NinjaTrader Customer Service
-
Thank you Chelsea; That's in fact how I'm doing it, but I expected to be able to avoid it; it's not a mayor problem anyway, I'll keep it like that, as you say.Originally posted by NinjaTrader_ChelseaB View PostHello manugarc,
No, the Strategy Analyzer is only able to increment by 1 in an optimization.
You could instead use an integer as the input, divide this by 100 and store the value to a double.
Then as the integer input is incremented, this is calculated to a decimal.
Comment
-
Hello ChelseaB, manugarc,
I am facing the same issue. Could you please explain your answer a bit further (an example would be extremely helpful, if at all possible)? I did not quite understand it. My Parameters for optimization are "double", and I would like to use Increment "double" value as well.
Thank you
David
Comment
-
Hi Jesse,Originally posted by NinjaTrader_Jesse View PostHello Paco0,
I believe what ChelseaB was suggesting was to divide the existing input you may have by 100, for example if you had an input named myInputProperty that was an int:
I look forward to being of further assistance.Code:double myDouble = myInputProperty / 100;
Is it possible to do this in the strategy builder? Thanks in advance!
T
Comment
-
Hello TGUII,
It's not possible to due math easily like this in the Strategy Builder on double inputs unfortunately.
It would require more complicated logic to achieve this type of math in the builder. You could save the value of the input into a Custom series, then use offset math to divide the current value of the series by 100.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
91 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
137 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
121 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
72 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment