AFL for New Highs Stock Scanner
Stocks that cross the top of the day are worth holding for long. The formula finds stocks based on the following rules:
– The price has risen less than 5% in the previous 4 days.
– Volume today is higher than the previous 4 days.
– The current price is the highest it has ever been.
Script:
GiaLonNhat5 = HHV (Ref (C, -1), 4);
GiaBeNhat5 = LLV (Ref (C, -1), 4);
DK1 = GiaLonNhat5 < 1.05*GiaBeNhat5; // GIAO DONG TAT DAN, DUOI 5%
KhoiLuongLonNhat5 = HHV(Ref (V, -1), 4);
DK2 = KhoiLuongLonNhat5 < V; // DOT BIEN VE KHOI LUONG 4 PHIEN GAN NHAT
GiaLonNhat = Highest(Ref (C, -1));
DK3 = GiaLonNhat <C; // VUOT DINH MOI THOI DAI, CAO NHAT TU TRUOC DEN GIO
GiaLonNhat200 = HHV (Ref (C, -1), 200);
DK4 = GiaLonNhat200 < C; // VUOT DINH CUA NAM
Buy = DK1 AND DK2 AND DK3; // AND DK4; LOC DINH NAM