Skip to main content

New Highs Stock Scan for Amibroker (AFL)

Torres2009 over 8 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 2)
  • Tags:
    amibroker, exploration, pattern, scan

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.

By Pham Nguyen Thach

Indicator / Formula

Copy & Paste Friendly
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

1 comments

1. Fajri
over 8 years ago

Sir, can you translate all the variables into English?

Leave Comment

Please login here to leave a comment.