StockFetcher Forums · Filter Exchange · Relative Average Oscillator<< >>Post Follow-up
drew9
171 posts
msg #39601
Ignore drew9
12/16/2005 11:05:58 AM

Wanted to thank glider for reviving this topic and BFreshour for the fine attempt at recreating the RAV Filter and also wanted to give it proper exposure on this forum. I was new when StockFetcher dropped Matthew Claassen's "canned" RAV indicator. It worked extremely well and unfortunately I never knew how many talented programmers we had on this site. BFreshour has made a first attempt at reviving this filter in in the General Discussion Forum on 12/16, but wondered if others could join in as well. The link to how RAV works is found at: http://www.shrewdinvesting.com/cat_content.asp?contentid=283&catid=136

I found the RAVM to work really well at extreme levels. I would appreciate any others that could join in on reviving this filter!

Regards,

Drew




BFreshour
139 posts
msg #39604
Ignore BFreshour
12/16/2005 12:30:30 PM

I feel like I'm incredibly close at having the indicator available, however I can't figure out how to normalize the values between -50 and 50. I've tried searching the internet for formulas on normalizing a set of numbers between two values with no luck.


TheRumpledOne
6,359 posts
msg #39607
Ignore TheRumpledOne
12/16/2005 3:09:47 PM

USE INDPOSITION!!

That will give you a number between 0 and 1.

Multiply by 100.

Then subtract 50.

And you will have values between -50 and + 50.

MAY ALL YOUR FILLS BE COMPLETE.





BFreshour
139 posts
msg #39609
Ignore BFreshour
12/16/2005 3:31:51 PM

Thanks TRO. Indposition returns values between 0 and 1, so I just subtracted .50.


BFreshour
139 posts
msg #39610
Ignore BFreshour
12/16/2005 4:48:06 PM

What's the maximum amount of SET statement per filter?


Koronbock
201 posts
msg #39612
Ignore Koronbock
12/17/2005 6:39:19 AM

I think it is 16.




TheRumpledOne
6,359 posts
msg #39613
Ignore TheRumpledOne
12/17/2005 11:43:17 AM

LOL.. it's not 16!

It depends on the complexity.

If you don't reference a set variable in another set statement, you can have lots of set statements.

But if there is reference upon reference, your start bumping up against limits.

For example, my divergence routines can only process 4 sets of data... so I have to have 4 filters to do all the processing I want: 2,3,4,5 day positive divergence, 2,3,4,5 day negative divergence, 6,7,8,9 day positive divergence, and 6,7,8,9 day negative divergence.

HTH






mktmole
325 posts
msg #133645
Ignore mktmole
1/9/2017 3:13:36 PM

Greetings of 2017. Would TRO or any other kindly update this filter to incorporate "indposition" and have it run for basic sub users?

tks kindly,
mm
------------------------------------

BFreshour, Thanks for the effort to duplicate the RAV filter.
I agree with drew9, it was one of the best around.
BFreshour **** Note: It seems like the values still need to be normalized between 2 numbers, eg 50, -50 for RAV30 and 150, -150 for RAVHJ

TheRumpledOne USE INDPOSITION!!
That will give you a number between 0 and 1.
Multiply by 100.
Then subtract 50.
And you will have values between -50 and + 50.
MAY ALL YOUR FILLS BE COMPLETE.
-----------------------------------------------------

Fetcher[ /* Matthew Claassen's Relative Average Oscillator */
set{RAV30A,close - ma(30)}
set{RAV30B,RAV30A / ma(30)}
set{RAV30C,RAV30B * 100}
set{RAV30D,sum(RAV30C,260)}
set{RAV30E,RAV30D / 260}
set{RAV30,RAV30C - RAV30E}

set{RAV50A,close - ma(50)}
set{RAV50B,RAV50A / ma(50)}
set{RAV50C,RAV50B * 100}
set{RAV50D,sum(RAV50C,260)}
set{RAV50E,RAV50D / 260}
set{RAV50,RAV50C - RAV50E}

set{RAV200A,close - ma(200)}
set{RAV200B,RAV200A / ma(200)}
set{RAV200C,RAV200B * 100}
set{RAV200D,sum(RAV200C,260)}
set{RAV200E,RAV200D / 260}
set{RAV200,RAV200C - RAV200E}

set{RAVHJA,RAV30+RAV50}
set{RAVHJ,RAVHJA+RAV200}

and average volume(60) above 300,000
market is not otcbb
and price above 5
]




SAFeTRADE
412 posts
msg #133653
Ignore SAFeTRADE
1/9/2017 9:08:38 PM

This is only using rav30 and rav50. Might get you close to what you want.

Fetcher[
/* Matthew Claassen's Relative Average Oscillator */
set{RAV30A,close - ma(30)}
set{RAV30B,RAV30A / ma(30)}
set{RAV30C,RAV30B * 100}
set{RAV30D,sum(RAV30C,260)}
set{RAV30E,RAV30D / 260}
set{RAV30,RAV30C - RAV30E}
set{rav30ind, indposition(rav30,60)*100}
set{30rav, rav30ind - 50}

set{RAV50A,close - ma(50)}
set{RAV50B,RAV50A / ma(50)}
set{RAV50C,RAV50B * 100}
set{RAV50D,sum(RAV50C,260)}
set{RAV50E,RAV50D / 260}
set{RAV50,RAV50C - RAV50E}
set{rav50ind,indposition(rav50,60)*100}
set{50rav, rav50ind - 50}



apply to watchlist(sectors)
draw 30rav line at 0
draw 30rav line at 50
draw 30rav line at -50
draw 50rav line at 0
draw 50rav line at 50
draw 50rav line at -50
]




mktmole
325 posts
msg #133665
Ignore mktmole
1/10/2017 3:31:20 PM

Tks kindly SAFeTRADE !

StockFetcher Forums · Filter Exchange · Relative Average Oscillator<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2016 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus