Skip to main content

3 Doji Candlesticks In Sequence for Amibroker (AFL)

Hobathanh2012 over 8 years ago Amibroker (AFL)

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

This formula finds stocks that have 3 doji candlestick patterns in sequence and where the 2 previous doji candlesticks are around the same price point. It can be run as an exploration or scan.

Indicator / Formula

Copy & Paste Friendly
function CheckNear (gia1, gia2, tyle)

{

    TyleChenhLech = (abs (gia1 - gia2))/gia2;

    result = IIf (Tylechenhlech <= tyle, True, False);
	
	return result;
}

DKKL = V > 100000; // NEN CON V LON SE CO GIA TRI HON
DKDJ = CheckNear (O, C, 0.005) AND CheckNear (Ref (O, -1), Ref (C, -1), 0.005) AND CheckNear (Ref (O, -2), Ref (C, -2), 0.005);

DKDINGANG = CheckNear (C, Ref (C, -1), 0.005) AND CheckNear (C, Ref (C, -2), 0.005);

Buy = DKKL AND DKDJ AND DKDINGANG;

Filter = Buy; 

1 comments

1. kh26sa
almost 6 years ago

i have amibroker version 6 how can i fix this problem

https://mrkzgulfup.com/uploads/159902295311991.jpg

Leave Comment

Please login here to leave a comment.