NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-07-2009, 05:14 PM   #1
midgetsnyper1
Junior Member
 
Join Date: Aug 2009
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default Adding Oscillator lines to MACD Indicator

I am using a MACD indicator with only the MACD line that simply tells me the difference in value between a fast and slow moving average. Is it possible to add oscillator lines, similar to the 30 and 70 lines found on other indicators such as RSI (the overbought and oversold lines), but instead of using an integer value I would like the oscillator lines to be equal to 20% of the daily ATR. For instance, the daily ATR on ES is around 20 pts, so I would want two lines on my indicator, one at +4 (0.2*20) and one at -4.

I have attached what I am using so far for the indicator. I appreciate your help.
Thanks!!!
Jeff
Attached Files
File Type: zip McIverFFV.zip (2.1 KB, 30 views)
Last edited by midgetsnyper1; 08-08-2009 at 11:11 AM. Reason: redefine terms
midgetsnyper1 is offline  
Reply With Quote
Old 08-10-2009, 07:01 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 978 times in 961 posts
Default

Jeff, you could code this to be displayed dynamically within a MultiTimeFrame strategy in NinjaScript - http://www.ninjatrader-support.com/H...struments.html

Unfortunately this would have certain plotting limitations from inside the strategy -

http://www.ninjatrader-support2.com/...ead.php?t=6651

NinjaTrader 7 will extend the MultiSeries concept we have in Strategies now to Indicators as well, making this much more convenient -

http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modification to MACD Bollinger Band Lines Indicator pauly139 Indicator Development 2 05-14-2010 12:26 PM
Removal the MA lines from MACD Armonistas Indicator Development 3 05-16-2009 01:03 PM
MACD BB Lines bugman4/u Suggestions And Feedback 1 04-11-2009 05:54 AM
Adding Pivot Lines ramckay Indicator Development 4 01-14-2009 08:31 AM
Turning off Avg. & MACD lines jeremymgp Charting 1 08-11-2007 04:41 AM


All times are GMT -6. The time now is 05:03 PM.