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 File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

Reply
 
Thread Tools Display Modes
Old 01-26-2011, 10:40 AM   #1
brdnickel
Junior Member
 
Join Date: Mar 2010
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default indicator to plot the 50 period sma of the 5 sma

Hi I am looking for help on plotting the 50 period sma of the 5 sma of the trin. Does any one know how I can do this. Is there an indicator for this. Thank you
brdnickel is offline  
Reply With Quote
Old 01-26-2011, 10:56 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,398
Thanks: 252
Thanked 969 times in 952 posts
Default

First of all you would need to have data for the TRIN index symbol - which dataprovider are you using here?

If this is working, you can just put a SMA 50 of the SMA 5 on the chart, with NinjaTrader 7 possible without custom coding as we support 'indicators working on indicators' now natively in the user interface -

http://www.ninjatrader.com/support/h...indicators.htm (Indicator input series here in the docs)
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 01-26-2011, 12:10 PM   #3
brdnickel
Junior Member
 
Join Date: Mar 2010
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default

Bertrand thank you...I got this...now I want to use a 10 day ma of the ratio ('^fimh.z')/('^fimh.z'+'^fiml.z') ....i used the ultimate indicator for this..and I got the plotting correct but not sure how to add a 10 day ma to this indicator? can you help me. Also is there an indicator that has ability to plot a "histogram" with ^finh.z-^finl.z (new highs minus new lows)?
again thanks for you help..dy
brdnickel is offline  
Reply With Quote
Old 01-26-2011, 12:22 PM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,398
Thanks: 252
Thanked 969 times in 952 posts
Default

Unfortunately those ratios / custom instruments would need custom coding to make it possible - you would basically Add() your source instruments to an indicator and then do the calcs to arrive at the ratio and finally feed that into the SMA indicator to arrive at the final smoothed result. The general concept for MultiSeries scripts is discussed here - http://www.ninjatrader.com/support/h...nstruments.htm
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 01-26-2011, 12:34 PM   #5
brdnickel
Junior Member
 
Join Date: Mar 2010
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default

ok thanks, also do you know if there is a histogram indicator that plots highs and lows?
thanks
brdnickel is offline  
Reply With Quote
Old 01-26-2011, 12:38 PM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,398
Thanks: 252
Thanked 969 times in 952 posts
Default

Unfortunately I'm not aware of one already published for this task - you can look into the spread indicators works here to get started on this territory - http://www.ninjatrader.com/support/f...=spread&desc=1
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 01-26-2011, 01:03 PM   #7
brdnickel
Junior Member
 
Join Date: Mar 2010
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default

thank you Bertrand.
brdnickel 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
Getting SMA values of a specific-period bar chart DGMan Indicator Development 5 04-18-2010 01:58 PM
Displaying ADX and Its SMA on the same plot? CyberTrader123 Strategy Development 3 07-07-2009 01:59 AM
Code for Long on 3 Consecutive Closes above 50 SMA... CyberTrader123 Strategy Development 2 06-10-2009 07:30 PM
Draw a x minute SMA/SMA/WMA on another timeframe? ninjamouse Indicator Development 4 04-06-2009 06:54 AM
How to plot DOTS in between 2 SMA? ninjaq Indicator Development 4 01-20-2009 05:29 AM


All times are GMT -6. The time now is 07:57 AM.