I assume this should be possible unless it's something in the calculation of the Keltner channel that I'm not understanding. Any suggestions on how to accomplish this? thanks
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Keltner channel offset
Collapse
X
-
Keltner channel offset
is there a reason the offset in the default NT Keltner channel cannot be set to <1 ? I know it does decimals because I've tried 1.25, 1.5, etc. I'm looking to have a tighter channel and would to try offsets such as .75 and .6
I assume this should be possible unless it's something in the calculation of the Keltner channel that I'm not understanding. Any suggestions on how to accomplish this? thanksTags: None
-
Hi ts888,
You are correct that the default Keltner channel can take doubles as the input for the offset. The reason the default Keltner channel indicator only allows numbers greater than one is attributed to this code segment here (located in the Properties region of the code):
Code:[Description("How much to expand the upper and lower band from the normal offset")] [Category("Parameters")] [Gui.Design.DisplayNameAttribute("Offset multiplier")] public double OffsetMultiplier { get { return offsetMultiplier; } set { offsetMultiplier = Math.Max(1, value); } }
Code:[Description("How much to expand the upper and lower band from the normal offset")] [Category("Parameters")] [Gui.Design.DisplayNameAttribute("Offset multiplier")] public double OffsetMultiplier { get { return offsetMultiplier; } set { offsetMultiplier = Math.Max(0, value); } }
Josh P.NinjaTrader Customer Service
-
Originally posted by Josh View PostHi ts888,
You are correct that the default Keltner channel can take doubles as the input for the offset. The reason the default Keltner channel indicator only allows numbers greater than one is attributed to this code segment here (located in the Properties region of the code):
Code:[Description("How much to expand the upper and lower band from the normal offset")] [Category("Parameters")] [Gui.Design.DisplayNameAttribute("Offset multiplier")] public double OffsetMultiplier { get { return offsetMultiplier; } set { offsetMultiplier = Math.Max(1, value); } }
Code:[Description("How much to expand the upper and lower band from the normal offset")] [Category("Parameters")] [Gui.Design.DisplayNameAttribute("Offset multiplier")] public double OffsetMultiplier { get { return offsetMultiplier; } set { offsetMultiplier = Math.Max(0, value); } }
Comment
-
Originally posted by NinjaTrader_Ray View PostOpen the indicator, right click and press "Save As..."
I do know see 2 Keltner Channel indicators but not the one I named and neither of them allow the offset under 1 so those can't be them.Last edited by ts888; 10-07-2007, 08:49 AM.
Comment
-
Originally posted by ts888 View PostI did that and gave it new name. I then compiled and got successful message. However, I can't seem to access it in the indicators list to apply it to a chart. It is not there. Have looked through entire list. When I got back into "edit ninjascript" I can see it but for some reason it doesn't come up in the list to apply it to a chart. Is there another step I'm missing? Thanks.
I do know see 2 Keltner Channel indicators but not the one I named and neither of them allow the offset under 1 so those can't be them.
However, the change to the code didn't appear to accomplish the task as it still forces it back to a minimum value of 1 for the offset.
Comment
-
Originally posted by ts888 View Postok, apparently it is in there but only shows the new name when I add the indicator so that was the confusion.
However, the change to the code didn't appear to accomplish the task as it still forces it back to a minimum value of 1 for the offset.
actually everything working perfect now. Sorry for all the posts. Thanks for your help.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by PaulMohn, Today, 03:49 AM
|
0 responses
1 view
0 likes
|
Last Post
by PaulMohn
Today, 03:49 AM
|
||
Started by inanazsocial, Today, 01:15 AM
|
1 response
6 views
0 likes
|
Last Post Today, 02:18 AM | ||
Started by rocketman7, Today, 02:12 AM
|
0 responses
10 views
0 likes
|
Last Post
by rocketman7
Today, 02:12 AM
|
||
Started by dustydbayer, Today, 01:59 AM
|
0 responses
2 views
0 likes
|
Last Post
by dustydbayer
Today, 01:59 AM
|
||
Started by trilliantrader, 04-18-2024, 08:16 AM
|
5 responses
23 views
0 likes
|
Last Post Today, 12:32 AM |
Comment