PeterJerome 23 posts msg #32385 - Ignore PeterJerome |
6/20/2004 10:23:44 PM
Is it possible to create a filter to test for daily range(close-open) back 40 days and identify if ANY bar exceeded a percentange of today's price. Some indicators, e.g. RSI, work better(are more reliable) if there are no violent price swings.
Regards,
Peter.
|
cegis 235 posts msg #32392 - Ignore cegis |
6/21/2004 10:03:55 AM
Peter,
How 'bout somethin' like
The first line finds the highest daily point range over the past 40 days.
The second line divides the first line's result by the current price, to get a percentage of current price that the point range high value was.
The third line selects based on the ratio being less than a 20% swing. Obviously, change the value to whatever you want.
The next two lines are just limiting conditions that I sometimes use. Change to suit.
The rest is for illustration purposes.
(I didn't use "Day Range 40 day high" because I *think* Day Range is based on that day's close. So if the stock dropped (or gained) over several days, the Day Range over the period would be understated (or overstated, respectively).)
HTH,
C
|
PeterJerome 23 posts msg #32395 - Ignore PeterJerome |
6/21/2004 8:10:30 PM
C,
I'm not familiar with the SET command, but I downloaded the manual and should get up to speed soon. I did find something that works for me:
The following checks the range 20 days back and excludes any stocks
that are more than 125% of today's range. The day range uses (high-Low)/close
In the RSI I use, any unduly high ranges (down candles) often warn of more weakness coming, so the RSI entry system gets confused. Adding this dramatically improved my results.
Fetcher[day range 20 day high < 100% above the day range]
>>not sure how to use the Fetcher business<<
Thanks for the reply.
Peter.
|
cegis 235 posts msg #32402 - Ignore cegis |
6/22/2004 11:12:48 AM
Peter,
Glad to help.
The syntax for set{} is "set{variable, indicator expression}", where "variable" is a name you give the results, and "indicator expression" is a SIMPLE arithmetic expression (add, subtract, multiply, or divide) between two indicator values available, or just a single indicator.
To make your filters hot links that will open a new window and run the filter, simply enclose the filter in " ", where /*filter*/ is your filter. There are a few issues that SF has with this which will prevent the filter becoming a hot link. The issue is that "special characters" (as far as HTML is concerned), such as ">", "<", and "&" are not handled well. Simply spell these out ("is less than", "is greater than"). to get around the problem.
HTH,
C
|