//@Name:H/L percentile //@Description:Returns where the last close is in relation to the high and low 0%=low 100%=high //@Returns:Number //@Width:65 function init(status) { setTitle("H/L percentile"); } function getVal(share) { if (share.getPrice()==undefined) return; return ((share.getPrice().close-share.getPrice().low)/(share.getPrice().high-share.getPrice().low)*100).toFixed(2); }