//@Name:Open Value Line //@Description: Draws a line on the chart representing the intraday open value. //@Future:Yes // 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 var colour1=11862016; var width1=0; var pen1=0; function init(status) { if (status == Loading || status == Editing) { colour1 = storage.getAt(0); width1 = storage.getAt(1); pen1 = storage.getAt(2); } if (status == Adding || status == Editing) { var dlg = new Dialog("Open Value Line", 155,45); dlg.addOkButton(); dlg.addCancelButton(); dlg.addGroupBox(5,5,90,30,"Indicator Properties"); dlg.addColLinePicker("VAL1",12,15,-1,-1,"","",colour1,pen1,width1); if (dlg.show() == Dialog.Cancel) return false; colour1 = dlg.getValue("VAL1").colour; pen1 = dlg.getValue("VAL1").pen; width1 = dlg.getValue("VAL1").width; storage.setAt(0, colour1); storage.setAt(1, width1); storage.setAt(2, pen1); } setSeriesColour(0, colour1); setSeriesLineStyle(0, pen1, width1); } function getGraph(share, data) { var iOpen = share.getIOpen(); if (iOpen == undefined) iOpen=null; var output=[] for (var i=0;i