// Downloaded From https://www.WiseStockTrader.com 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);