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