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 argusthome, 03-08-2026, 10:06 AM
|
0 responses
61 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
39 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
21 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
23 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
51 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment