//@Name:Spread Value //@Description: //@Returns:Number //@Width:60 //@Update:periodic,15 // 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. // Coded by: Phil Tolhurst, ShareScope Support function init(status) { } function getVal(share) { var bars = share.getIBidOfferArray(); if (!bars || bars.length<2) return; var n=bars.length-1; return bars[n].offer-bars[n].bid }