![]() |
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 |
|
Member
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
|
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%. |
|
|
|
|
|
#2 |
|
Member
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#3 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Cool. Thanks for the contribution altrader.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#4 |
|
Member
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
|
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
|
This is a great indicator.
It seems only the falling MA works as expected, although my understanding of the indicator could be wrong. |
|
|
|
|
|
#6 |
|
Member
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
|
|
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 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.
|
|
|
|
|
|
#8 | |
|
Member
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
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 |
|
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Mar 2007
Location: , Florida, USA
Posts: 663
Thanks: 36
Thanked 7 times in 6 posts
|
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. |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
|
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. |
|
|
|
|
|
#11 |
|
Member
Join Date: Mar 2008
Posts: 49
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks KBJ, an SMA does make a big difference.
If I figure out a good way to use it I'll post back
|
|
|
|
|
|
#12 |
|
Senior Member
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
|
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.
|
|
|
|
|
|
#13 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Thanks for your contribution. Would you mind making your custom indicator available here: http://www.ninjatrader-support.com/vb/local_links.php
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#14 |
|
Senior Member
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
|
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.
|
|
|
|
|
|
#15 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |