Need afl scanner to find gap up and gap down

KelvinHand

Well-Known Member
#2
Hi all,

I Need afl scanner indicator to find gap up and gap down from previous close

Can anybody share it

thanks

Anil
Code:
// Gap Up
Buy = L > Ref(C, -1) AND H>= Ref(H, -1);

// Gap down
Sell = H < Ref(C, -1) AND L <= Ref(L, -1);;

Filter = (Buy OR Sell) AND H!=L AND Ref(H,-1)!=Ref(L, -1); 

AddTextColumn( FullName(), "Name",100, colorDefault,colorDefault,300);
AddTextColumn( WriteIf( Buy, "Buy", "Sell" ), "Signal", 50, colorDefault,colorDefault, 50 ); 
AddColumn(V, "Volume", 1.0, colorDefault,colorDefault, 100);


SetSortColumns( 4,-5) ;
 
#3
:thumb::clapping::clapping:Thank you
Code:
// Gap Up
Buy = L > Ref(C, -1) AND H>= Ref(H, -1);

// Gap down
Sell = H < Ref(C, -1) AND L <= Ref(L, -1);;

Filter = (Buy OR Sell) AND H!=L AND Ref(H,-1)!=Ref(L, -1); 

AddTextColumn( FullName(), "Name",100, colorDefault,colorDefault,300);
AddTextColumn( WriteIf( Buy, "Buy", "Sell" ), "Signal", 50, colorDefault,colorDefault, 50 ); 
AddColumn(V, "Volume", 1.0, colorDefault,colorDefault, 100);


SetSortColumns( 4,-5) ;
 

Similar threads