//@Name:Close percentile //@Description:Returns where the close price is in relation to the H-L range. 0%=low 100%=high //@Returns:Number //@Width:65 function init(status) { setTitle("close percentile") } function getVal(share) { var c = share.getClose(); var h = share.getHigh(); var l = share.getLow(); return (c-l)/(h-l)*100; }