Bowtie
Looks for stocks that are undergoing a trend reversal based on Dave Landry's definition of a trend using Bow Tie moving average pattern. Seeks to catch the stocks on the first day of the trend change.
input="udu5550.lst";
output = "bowtie.lst";
Exchange = NYSE , AMEX , NASDAQ;
DaysToLoad = 250;
Printhdrln "Symbol,Close,EPSRank,QRS,30adv,Vol,PE,IRLGroup,SharesFloat,Name,SharesShort";
if (MovAvg(0,10,cl) > EMovAvg(0,20,cl) ) and
(EMovAvg(0,20,cl) > EMovAvg(0,30,cl) ) and
(MovAvg(-1,10,cl) \< EMovAvg(-1,20,cl) ) then
println Symbol,",",Close(0):7:2,",",EPSRank(0):3:0,",",QRS(0):3:0,",",avgvol(0,-29):8:0,",",vol(0):8:0,",",PE:5:0,",",IRLsymbol:12,",",Sharesfloat:5:1,",",description:-15,",",Shortint:5:3;
endif;