/****************************************************************************************** Copyright © eSignal, a division of Interactive Data Corporation. 2005. All rights reserved. This sample eSignal Formula Script (EFS) may be modified and saved under a new filename; however, eSignal is no longer responsible for the functionality once modified. eSignal reserves the right to modify and overwrite this EFS file with each new release. @version 3.0 by Alexis Montenegro for eSignal *******************************************************************************************/ function preMain() { setPriceStudy(true); setStudyTitle("Today's Open (TO)"); setCursorLabelName("TO"); setDefaultBarStyle(PS_DASH); setDefaultBarFgColor(Color.red); setDefaultBarThickness(2); setPlotType(PLOTTYPE_FLATLINES); } var bInit = false; var xOpen = null; function main() { if(isMonthly() || isWeekly() || isDaily()) return; if(bInit == false){ xOpen = open(inv("D")); bInit = true; } var vOpen = getSeries(xOpen); for (x=4; x<5; x++) { drawTextAbsolute( -x, vOpen+.03, "*Open*", Color.black, Color.white, Text.ONTOP | Text.CENTER, "Courier", 8, x ); } return (vOpen); }