/****************************************************************************************** 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 Close (TC)"); setCursorLabelName("TC"); setDefaultBarStyle(PS_SOLID); setDefaultBarFgColor(Color.blue); setDefaultBarThickness(2); setPlotType(PLOTTYPE_FLATLINES); } var bInit = false; var xClose = null; function main() { if(isMonthly() || isWeekly() || isDaily()) return; if(bInit == false){ xClose = close(inv("D")); bInit = true; } var vClose = getSeries(xClose); if(vClose == null) return; for (x=4; x<5; x++) { drawTextAbsolute( -x, vClose+.06, "*2days Close*", Color.black, Color.white, Text.ONTOP | Text.CENTER, "Courier", 8, x ); } return (vClose); }