![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2011
Posts: 6
Thanks: 0
Thanked 4 times in 1 post
|
I am looking for help in creating a new indicator based off the existing RSI indicator.
The only difference is the new indicator is the sum of the last 2 days of the RSI. I made a copy of the RSI and tried modifying it but cannot get it to work or plot on the graph. The goal is to use this for auto-trading. Any help would be greatly appreciated. Bryan |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi Bryan,
The math shouldn't be too difficult and you don't need to modify the existing RSI. Could create a new script and then set the plot accordingly. if(CurrentBar > 1) Value.Set(RSI(14, 3)[0] + RSI(14, 3)[1]); The [0] + [1] adds the current and previous RSI value. Indexing is always based on bars, not days. You could apply this script to a daily chart or work with our multiseries framework to base it on a specific interval.
Ryan M
NinjaTrader Customer Service
Last edited by NinjaTrader_RyanM; 10-25-2011 at 10:54 AM.
|
|
|
|
|
|
#3 | |
|
Senior Member
|
Quote:
|
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jul 2011
Posts: 6
Thanks: 0
Thanked 4 times in 1 post
|
Thanks for the quick replies. I will review again tonight and see if I can get it working. If not, I'll post what I have so far and look for your expertise in getting it working.
Thanks again, Bryan |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rsi divergion indicator | abirit10 | Suggestions And Feedback | 1 | 08-17-2011 02:15 AM |
| Newbie Help! WMA of RSI. RSI uses average price | naked | Indicator Development | 4 | 04-14-2011 05:46 AM |
| RSI Indicator is wrong, 7.0.1000 | Camdo | Indicator Development | 6 | 12-13-2010 11:22 AM |
| RSI indicator | cptrader | Indicator Development | 1 | 12-30-2008 08:11 AM |
| Stochastic RSI indicator | fxfib | NinjaScript File Sharing Discussion | 1 | 12-23-2008 02:34 PM |