MetaStock -> Tools -> Indicator Builder -> New -> copy & paste complete formulae between "---8<---" lines. ======================= High/Low of Date period ======================= ---8<------------------------------------ {Plots High/Low of user-input date period. Copyright © 2004-2008 Jose Silva The grant of this license is for personal use only - no resale or repackaging allowed. All code remains the property of Jose Silva. http://www.metastocktools.com } { Date inputs } StDay:=Input("start Day",1,31,1); StMnth:=Input("start Month",1,12,1); StYear:=Input("start Year",1800,2200,2006); EnDay:=Input("end Day",1,31,1); EnMnth:=Input("end Month",1,12,7); EnYear:=Input("end Year",1800,2200,2006); { Restrict to selected period } start:=Year()>StYear OR (Year()=StYear AND (Month()>StMnth OR Month()=StMnth AND DayOfMonth()>=StDay)); end:=Year()StHour OR Hour()=StHour AND Minute()>=StMin; end:=Hour()1,1,$)=1; { High/Low for selected period } Hi:=ValueWhen(1,period,HighestSince(1,start,H)); Lo:=ValueWhen(1,period,LowestSince(1,start,L)); { Plot on price chart } If(plot=1,Hi,start); If(plot=1,Lo,-End) ---8<------------------------------------ http://www.metastocktools.com