SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA Science Projects & Experimental Indicators -- Ignore unavailable to you. Want to Upgrade?


To: Jan Robert Wolansky who wrote (39)1/28/1998 11:56:00 PM
From: ftth  Read Replies (1) | Respond to of 237
 
Jan, just a top-of-the-head thought: What about looking for an extended period in the past of closing above the 50 day (but allowing 1 or 2 occassional touches of the 50 day) and then a recent period of consecutive closes close to the 50 day:
define "5ma" as 5 day sma of close, "50ma" as 50 day ma of close:
if( 5ma(-100)>1.1*50ma(-100) AND 5ma(-90) > 1.1*50ma(-90) AND...up to about 20 days ago: 5ma(-20) > 1.1*50ma(-20))
{this next condition check for it riding the 50 day of-late}
AND if( 5ma(-10)<1.05*50ma(-10) and 5ma(-5)<1.05*50ma(-5) AND 5ma(0) < 1.05*50ma(0)

explainations: 5ma(-100) means the value of the 5 day SMA 100 days ago. The >1.1 means it has to be 10% above the 50 day.

This might do what you're looking for. If you use QuotesPlus as your data provider, you can screen the whole database for this and get a ticker list that you use to export the data to Metastock (I do a similar thing).
If this wasn't clear, please ask.
dh