![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Oct 2008
Location: Lopez Island Washington
Posts: 47
Thanks: 32
Thanked 0 times in 0 posts
|
I am interested in creating an indicator which identifies divergences between price and oscillator. Is it possible to offer a choice of oscillators (data series) as an input value? If so, how could this be done?
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,858
Thanks: 162
Thanked 579 times in 570 posts
|
Hello Hawk Arps,
Thank you for your post. Yes you can create a user defined input to pick between different oscillators or input methods for your custom indicator you are creating. Please see our Reference Sample on Creating a user-defined parameter type (enum) http://www.ninjatrader.com/support/f...ead.php?t=3420
Matthew
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Matthew for this post: |
|
|
|
#3 |
|
Member
Join Date: Oct 2008
Location: Lopez Island Washington
Posts: 47
Thanks: 32
Thanked 0 times in 0 posts
|
Thank You Mathew,
Is there any way to do it without hard-coding the oscillator options, but instead allow the user to choose from whatever methods he has available in his indicator library (including proprietary ones)? Each oscillator may have different number and types of inputs // ie: Stochastics(periodD,PeriodK,Smooth) vs. Momentum(Period) . |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,858
Thanks: 162
Thanked 579 times in 570 posts
|
Hawk Arps,
Unfortunately it would not be possible to automatically pull the options/parameters - at least not a supported possibility. These values would need to be hard coded and switched when a particular indicator has been selected.
Matthew
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Matthew for this post: |
|
![]() |
| Tags |
| data series, inputs, user defined methods |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple Input Series as Input | martinP | Indicator Development | 2 | 01-17-2011 05:15 AM |
| Multiple Data Series with different Indicator Input series | marotom | General Programming | 5 | 01-06-2011 12:11 PM |
| Retrieving price data when indicator input series is another indicator | MikeInMA | Indicator Development | 6 | 01-06-2011 07:33 AM |
| Different Input Series for Indicators | Rohok | Version 7 Beta General Questions & Bug Reports | 3 | 09-13-2010 09:57 AM |
| Getting user input to initialize additional data series | dhunnewell | Strategy Development | 3 | 02-23-2010 01:22 PM |