![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| NinjaScript File Sharing Discussion Discussion for shared NinjaScript files. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Mar 2010
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
|
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
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
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)
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2010
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Mar 2010
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
|
ok thanks, also do you know if there is a histogram indicator that plots highs and lows?
thanks |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Mar 2010
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
|
thank you Bertrand.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |