Skip to main content

% discount of current price relative to its all time high price for Amibroker (AFL)

popsy over 15 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 2)
  • Tags:
    amibroker, exploration

% 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.