Chris:
If you're looking for stocks that trade within a channel (between the high and low for a certain period) of at least 10 points, you could use this:
output="range.lst";
issuetype=common; exchange nyse,nasdaq,amex;
integer period; // look-back period
period:=20;
if max(0,-(period-1),hi)-min(0,-(period-1),lo) >=10 then println symbol:-7, ", ", "Close: ", Close(0):6:2,", ", "Range: ", " ", max(0,-(period-1),hi)-min(0,-(period-1),lo); endif;
I've set the period for 20 days, but you can change that.
OR: You could just use Average True Range:
output="ATR.LST"; issuetype=common; exchange= nyse, amex, nasdaq;
if atr(0)>=10 then
println symbol," ,", atr(0):8:3;
endif; |