Hi ChelseaB, thank you for the Supertrend programming work. I have a question for you: I can't modify the multiplier with decimal values but only with integers. How can I fix this ?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Supertrend Chelsea_B
Collapse
X
-
Hello dan66,
Thank you for your reply.
In that script, the property ATRMultiplier is declared as an int on line 107. That is why it only accepts integers and not any decimal values. You could change this to a double instead of an int and it would allow integer values. This is what the change would look like in line 107 of the Properties region:
before:
Code:public int ATRMultiplier
after:
Code:public double ATRMultiplier
Please let us know if we may be of further assistance.
Comment
-
Hello dan66,
Thank you for your reply.
What about it doesn't work? Including as many details as possible helps us out to better understand and assist you. Are you getting any errors on the screen or on the log tab of the Control Center? If so, what do the errors report?
Please try the attached SupertrendCopy indicator I created with the previously mentioned modification to demonstrate. You should be able to use decimals in the multiplier without issue. If you encounter any problems or unexpected behavior, please explain the desired behavior vs. what is happening and I would be glad to assist you further.
Please let me know if I may be of further assistance.Attached Files
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
574 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment