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 post.
So I may assist you more accurately, please provide the link to the script you are referring to. This is helpful information to make sure we are on the same page and to make sure we aren't looking at different scripts.
I look forward to your clarification.Emily C.NinjaTrader Customer Service
-
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.Emily C.NinjaTrader Customer Service
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 FilesEmily C.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Jonafare, 12-06-2012, 03:48 PM
|
5 responses
3,984 views
0 likes
|
Last Post
by rene69851
Today, 01:44 PM
|
||
Started by Fitspressorest, Today, 01:38 PM
|
0 responses
2 views
0 likes
|
Last Post Today, 01:38 PM | ||
Started by Jonker, Today, 01:19 PM
|
0 responses
2 views
0 likes
|
Last Post
by Jonker
Today, 01:19 PM
|
||
Started by futtrader, Today, 01:16 PM
|
0 responses
6 views
0 likes
|
Last Post
by futtrader
Today, 01:16 PM
|
||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
14 responses
1,791 views
0 likes
|
Last Post
by aligator
Today, 11:47 AM
|
Comment