/****************************************************************************************** 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("Prev High (PH)"); setCursorLabelName("PH"); setDefaultBarStyle(PS_SOLID); setDefaultBarFgColor(Color.green); setDefaultBarThickness(2); setPlotType(PLOTTYPE_FLATLINES); } var bInit = false; var xHigh = null; function main() { if(isMonthly() || isWeekly() || isDaily()) return; if(bInit == false){ xHigh = high(inv("D")); bInit = true; } var vHigh = xHigh.getValue(-1); if(vHigh == null) return; for (x=4; x<5; x++) { drawTextAbsolute( -x, vHigh+.03, "*Prev High*", Color.black, Color.white, Text.ONTOP | Text.CENTER, "Courier", 8, x ); } return (vHigh); }