![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Jun 2007
Posts: 53
Thanks: 0
Thanked 0 times in 0 posts
|
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? thanks |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Member
Join Date: Jun 2007
Posts: 53
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
|
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Open the indicator, right click and press "Save As..."
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Jun 2007
Posts: 53
Thanks: 0
Thanked 0 times in 0 posts
|
I 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.
Last edited by ts888; 10-07-2007 at 08:49 AM.
|
|
|
|
|
|
#6 | |
|
Member
Join Date: Jun 2007
Posts: 53
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
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. |
|
|
|
|
|
|
#7 | |
|
Member
Join Date: Jun 2007
Posts: 53
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
actually everything working perfect now. Sorry for all the posts. Thanks for your help. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Keltner Channel With Shaded between the Channel | prostyle | NinjaScript File Sharing Discussion | 9 | 12-28-2007 05:40 AM |
| 2 ticks offset strategy | alex12lad | Automated Trading | 14 | 08-13-2007 06:22 AM |
| 2 ticks offset strategy | alex12lad | Strategy Development | 1 | 07-22-2007 11:30 PM |
| Regression Channel indicator enhancement suggestion | Greg1 | Charting | 7 | 07-16-2007 04:51 AM |
| Trend Channel | rtrader | Suggestions And Feedback | 6 | 04-19-2007 05:55 AM |