//@Name:Price / Graham number //@Description:Returns the current close divided by the share's Graham number //@Returns:Number //Coded by: Phil Tolhurst, ShareScript Support // Care has been taken in preparing this code but it is provided without guarantee. // You are welcome to modify and extend it. Please add your name as a modifier if you distribute it. function getVal(share) { var gn = share.getResult(0,Result.GrahamNumber); if(gn == undefined) return; var cls = share.getClose(); if(cls == undefined) return; return (cls/gn).toFixed(3); }