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 10-25-2011, 10:04 AM   #1
blconnell
Junior Member
 
Join Date: Jul 2011
Posts: 6
Thanks: 0
Thanked 4 times in 1 post
Default 2 Day RSI(2) Indicator

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
blconnell is offline  
Reply With Quote
Old 10-25-2011, 10:34 AM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

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.
Last edited by NinjaTrader_RyanM; 10-25-2011 at 10:54 AM.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 10-25-2011, 10:39 AM   #3
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,218
Thanks: 24
Thanked 1,231 times in 1,002 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by blconnell View 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
Maybe if you showed us what you have done so far, we can complete it for you?
koganam is offline  
Reply With Quote
Old 10-25-2011, 10:45 AM   #4
blconnell
Junior Member
 
Join Date: Jul 2011
Posts: 6
Thanks: 0
Thanked 4 times in 1 post
Default

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
blconnell 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
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


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