![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2009
Location: Chicago
Posts: 154
Thanks: 0
Thanked 0 times in 0 posts
|
I'm creating an indicator that uses an indicator that's already within the NinjaTrader library. Can you please point me to a tread that covers how to do this? I've already read the section in the user guide covering how to use the DataSeries type but I'm still having a little trouble. Thanks
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hello D.Allen,
Thank you for your post. We have this guide on setting indicators on indicators. You've probably already read this one on using custom data series. Let us know what you're looking to do and we can assist further.
Ryan M
NinjaTrader Customer Service
Last edited by NinjaTrader_RyanM; 01-05-2010 at 01:00 PM.
|
|
|
|
|
|
#3 |
|
Member
Join Date: Oct 2008
Location: Salt Lake City, UT
Posts: 42
Thanks: 0
Thanked 0 times in 0 posts
|
Is there an indicator that draws two lines on a chart that represent offsets of the current day's high and low? This would operate exactly like your indicator "CurrentDayOHL" except that rather than drawing lines at the current day's high and low, it would draw two lines as offsets of the current day's high and low; the first line at 20 ticks below the current day's high and the second line at 20 ticks above the current day's low. This creates a channel off the current day's high and low.
Also, how do I post a new thread in the forum? The FAQ don't describe the process. I had to piggyback on this thread to post a message. |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hello djdinut,
We don't have an indicator like this by default but it can be created. You can use: Code:
Plot0.Set(CurrentDayOHL().CurrentHigh[0] + TickSize * OffsetValue); To create a new thread hit the "New Thread" button. If you don't see the "New Thread" button you may have to activate your forum account by clicking on the email link sent to you when you registered. If you don't see it in your inbox, check your spam folder.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Oct 2008
Location: Salt Lake City, UT
Posts: 42
Thanks: 0
Thanked 0 times in 0 posts
|
Excellent! Works great. Is there a command that would shade the offset gap between the high of the day and the offset line below it that I just created from your instructions?
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
djdinut1,
Take look at this reference sample below, which provides some coding examples on shading between two values: http://www.ninjatrader-support2.com/...ead.php?t=4331
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Member
Join Date: Oct 2008
Location: Salt Lake City, UT
Posts: 42
Thanks: 0
Thanked 0 times in 0 posts
|
I'll work with that. In the meantime, how can I rename an Indicator? I can do this with Strategies by editing and changing the name to something else. But when I edit an Indicator I don't see how that works.
|
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
To rename you will want to Right click within the editor and select Save As. Type in your new name and click OK.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Member
Join Date: Oct 2008
Location: Salt Lake City, UT
Posts: 42
Thanks: 0
Thanked 0 times in 0 posts
|
Works! Thanks much for your great help.
|
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Mar 2010
Posts: 24
Thanks: 3
Thanked 0 times in 0 posts
|
Hello!
I am very thankful for the almost unlimited possibilities regarding "indicators-on-indicators". I know that I can create a template, if I want to share the "new" indicator or to put it on another chart etc. But is it also possible to easily convert the new created indicator into a separate indicator, which I can share for instance without having to program it from scratch? E.g. get a KAMA of a CCI of an HMA of a Closing Price as a new separate indicator named e.g. "KAMACCIHMA" or whatever. Thank you very much! |
|
|
|
|
|
#11 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,561
Thanks: 261
Thanked 1,015 times in 996 posts
|
Serninja, this nested indicator will unfortunately need to be programmed.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Mar 2010
Posts: 24
Thanks: 3
Thanked 0 times in 0 posts
|
Bertrand,
thanks anyway. Kind regards, |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating an indicator like Market Delta | antonio | Indicator Development | 24 | 02-18-2010 12:10 PM |
| how do i go about creating this indicator? | kaywai | Indicator Development | 4 | 11-30-2009 09:05 PM |
| Help with Creating Indicator | Sakkers | Indicator Development | 4 | 02-22-2009 06:26 PM |
| Creating an indicator from an indicator instructions | designer | Indicator Development | 5 | 11-04-2008 11:04 AM |
| Problem creating Indicator | nicko9 | Indicator Development | 2 | 02-22-2007 01:52 AM |