I came up with the following scan which yielded about 240 stocks with 100+ day uptrends across a variety of industry groups. This was a real adventure since I don't write code.
If emovavg(0,5,cl)>emovavg(0,34,cl) and emovavg(0,5,cl)>emovavg(-10,34,cl) and emovavg(-10,5,cl)>emovavg(-20,34,cl) and emovavg(-20,5,cl)>emovavg(-30,34,cl) and emovavg(-30,5,cl)>emovavg(-40,34,cl) and emovavg(-40,5,cl)>emovavg(-50,34,cl) and emovavg(-50,5,cl)>emovavg(-60,34,cl) and emovavg(-60,5,cl)>emovavg(-70,34,cl) and emovavg(-70,5,cl)>emovavg(-80,34,cl) and emovavg(-80,5,cl)>emovavg(-90,34,cl) and emovavg(-90,5,cl)>emovavg(-100,34,cl) and emovavg(-100,5,cl)>emovavg(-110,34,cl) and emovavg(-110,5,cl)>emovavg(-120,34,cl) and emovavg(-120,5,cl)>emovavg(-130,34,cl) then println symbol; endif;
Now I'm trying to come up with a scan for stocks that are in a TRADING RANGE. I figured to use closing prices +/- 15% working back 100 to 125 days but I can't find a way to write this.
Any suggestions would be GREATLY appreciated. |