% discount of current price relative to its all time high price for Amibroker (AFL)
popsy over 15 years ago Amibroker (AFL)
% discount of current price relative to its all time high price
Indicator / Formula
Copy & Paste Friendly
SetBarsRequired(-2,0);
allhigh = Highest(H);
discount =((allhigh-C)/allhigh)*100;
Filter=1;
AddColumn(allhigh,"alltimehigh");
AddColumn(C,"last close");
AddColumn(discount,"%discount");
SetSortColumns(5); 0 comments
Leave Comment
Please login here to leave a comment.