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 04-16-2008, 06:12 AM   #1
altrader
Member
 
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
Default Range Action Verification Index (RAVI) - Anyone developed this?

Hi Guys, was just doing some reading on oscillators and wondered if anyone had coded the RAVI, I've had a search but don't see anything? Believe it was Chande who developed this initially.

Description is belowThis indicator measures trend strength. To calculate this indicator you subtract a long MA (65 bar) from a short MA 7 bar) and and divide the difference with the long MA. Then take the absolute value of your result. Thats it!
Usage: Confirmation of Setup. Recommended confirmation level is 3%.
altrader is offline  
Reply With Quote
Old 04-16-2008, 01:06 PM   #2
altrader
Member
 
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
Default

OK, here's a quick and dirty version I've just created. I'm not sure what kind of MA is supposed to be used so I went with HMA.
Hope it's of use to someone.
Attached Files
File Type: zip RAVI.zip (5.2 KB, 52 views)
altrader is offline  
Reply With Quote
Old 04-17-2008, 01:54 AM   #3
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Cool. Thanks for the contribution altrader.
NinjaTrader_Josh is offline  
Reply With Quote
Old 04-17-2008, 02:45 AM   #4
altrader
Member
 
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by Josh View Post
Cool. Thanks for the contribution altrader.
I'm happy to (finally) contribute something to the forums here Josh, hopefully as I continue to learn I'll be able to do more.
altrader is offline  
Reply With Quote
Old 04-17-2008, 02:10 PM   #5
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

This is a great indicator.

It seems only the falling MA works as expected, although my understanding of the indicator could be wrong.
Elliott Wave is offline  
Reply With Quote
Old 04-17-2008, 02:45 PM   #6
altrader
Member
 
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by Elliott Wave View Post
This is a great indicator.

It seems only the falling MA works as expected, although my understanding of the indicator could be wrong.
Can you explain more or give an example/screenshot of where you think the problem lies?

Thanks
altrader is offline  
Reply With Quote
Old 04-17-2008, 09:24 PM   #7
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

Only the red line seems to plot and also when selecting the other parameters in the market analyzer they return values that seem extremely high, if 0.3 is considered a trend.

As I mentioned though, my understanding of this indicator may be wrong.

Elliott Wave is offline  
Reply With Quote
Old 04-18-2008, 08:28 AM   #8
altrader
Member
 
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by Elliott Wave View Post
Only the red line seems to plot and also when selecting the other parameters in the market analyzer they return values that seem extremely high, if 0.3 is considered a trend.

As I mentioned though, my understanding of this indicator may be wrong.

There should only be one line (the red one) that plots trend strength (for rising and for falling). If there is another line referenced in the indicator it's probably a remnant of the indicator I modified to create this one.

As for the values ... I can't comment as I don't have enough info on what typical values are. I have read in a few places that 0.3 is the accepted confirmation figure though. If I find any more information on this I'll post it here to clarify.

Here's a couple of links I've just got from a google search, they both have screenshots.
http://trader.online.pl/ELZ/t-i-Chandes_RAVI.html
http://www.forex-trading-insight.com/oscillators.html

Cheers
altrader is offline  
Reply With Quote
Old 04-19-2008, 11:03 PM   #9
KBJ
Senior Member
 
Join Date: Mar 2007
Location: , Florida, USA
Posts: 663
Thanks: 36
Thanked 7 times in 6 posts
Default

I've played with a number of different indicators, changing their calls to an SMA to an EMA or HMA just to see what would happen (and hoping that reducing the lag would make the indicator "more responsive".)

In most cases, I've found that this type of change doesn't help. In some cases it completely breaks the indicator.

The problem is that some indicators rely on the inherent lag that an SMA gives.

For instance, with a KeltnerChannel, if you change the base line which is an SMA to an HMA, you get something that's completely unusable. Apparently the usefulness of the original indicator is that the price surges over/under the lag of the SMA, when a lagless moving average is used, it breaks the indicator!

Therefore, I suspect that your indicator needs to use an SMA (which is just called "MA" for "moving average" or just "average" in a number of other platforms, like was mentioned in the references given earlier in this topic), and using an HMA is probably not what was intended, nor (I suspect) will it produce the desired results. I'm qualifying this because I really don't know as I've never seen the indicator before; just an educated guess.

Good luck.
KBJ is offline  
Reply With Quote
Old 04-20-2008, 01:54 AM   #10
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

I tried changing it to a SMA, its quite different.

Using a SMA its very similar to the ADX indicator, which I believe is the intent.

Using the HMA might be useful if you are already using the ADX, but if not I think the SMA is closer to the desired plot.

This is a great indicator btw.
Elliott Wave is offline  
Reply With Quote
Old 04-20-2008, 04:00 AM   #11
altrader
Member
 
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks KBJ, an SMA does make a big difference.

If I figure out a good way to use it I'll post back
altrader is offline  
Reply With Quote
Old 04-20-2008, 11:18 PM   #12
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

I played around with this and added support for multiple moving average types. Generally I think SMA with the default periods is the best way to use this but some of the other MA types could be worth exploring.
Attached Files
File Type: zip RAVI2.zip (25.8 KB, 104 views)
Elliott Wave is offline  
Reply With Quote
Old 04-20-2008, 11:26 PM   #13
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Thanks for your contribution. Would you mind making your custom indicator available here: http://www.ninjatrader-support.com/vb/local_links.php
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-20-2008, 11:40 PM   #14
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

This is just for testing, once a few people have tried it and confirm there aren't any major issues, I'll gladly post it in the file sharing section.
Elliott Wave is offline  
Reply With Quote
Old 04-20-2008, 11:52 PM   #15
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Great.

However, you then should delete the links to old/outdated versions to prevent people using it. Whereas the download area would allow you to maintain a single version in a unique location and you could maintain your links to it.
NinjaTrader_Dierk 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
Action: Buy to cover!? skynetman Strategy Development 1 04-15-2008 10:32 AM
Index out of range error lgarcia3 General Programming 2 04-06-2008 08:42 AM
License Verification Failure NinjaTrader_Ray Miscellaneous Support 2 10-15-2007 04:19 AM
license verification issue baxter Connecting 4 10-08-2007 07:44 AM
Symbol Mapping - stock index to futures index contract tmd Automated Trading 9 12-07-2006 09:53 AM


All times are GMT -6. The time now is 11:52 AM.