March 16, 2018

AFL to display All Time High / Low for stocks (Amibroker only)

This AFL displays list of stocks at their All Time High and Low.


>>> AFL starts
//copyright kpl@vfmdirect.com
//This AFL displays all time high and low for stocks

Filter=(H==Highest(H) OR L==Lowest(L)) AND C>20;

AddColumn(C,"Close",1.2);
AddColumn(Highest(H),"All time Hi",1.2,colorDefault,IIf(H==Highest(H),colorLightBlue,colorDefault));

AddColumn(Highest(L),"All time Lo",1.2,colorDefault,IIf(L==Lowest(L),colorOrange,colorDefault));

<<< AFL ends 




No comments:

Post a Comment

Share this...