//@LibraryID:774,0 //@Name:Close-Open % //@Description:Calcualtes the percentage change between the close and today's open //@Returns:Number //@Width:90 function getVal(share) { var lastClose = share.getClose(); var todaysOpen = share.getIOpen(); if (todaysOpen == undefined || lastClose == undefined) return; return ((todaysOpen/lastClose)-1)*100; }