Scanning Gap Up and Gap Down for Amibroker (AFL)
vinodsk over 12 years ago Amibroker (AFL)
Finding Gap Up and Gap Down opening.
Indicator / Formula
Copy & Paste Friendly
//Finding GapUp and Gap Down opening
SO = ParamToggle("Option","Gap Up|Gap Down",1);
if(SO == 0)
//Gap Up
Filter = (Open > Ref( High, -1 )) AND (Close > Open);
else
// Gap down
Filter = (Open < Ref( Low, -1 )) AND (High < Ref( Low, -1)) AND (Close < Open);
AddColumn( Close, "Close" );
AddColumn( Open, "Open" );
AddColumn( High, "High" );
AddColumn( Low, "Low" );
AddColumn( Volume, "Volume" );2 comments
Leave Comment
Please login here to leave a comment.
seen gap up and gap down afls earlier also better now someone give an afl where gapup or gapdown happened in the opening and after that it has been filled that is also equally important to know but till now not seen anything like that. as i do not know coding will really relish to see if somebody makes that