[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System tester question



PureBytes Links

Trading Reference Links



whardy@xxxxxxx wrote:

> If I wanted to set up an indicator that plotted the high and low prices of the first hour of
> EACH day and then plotted that as two straight horizontal lines at the designated prices until
> the next day, is that possible?  It would not need to retain the previous days level, just replot
> after the first hour on intraday charts to the high/low of the first hour.
>
> Thanks,
>
> Bill Hardy

Bill,

If this isn't what you need let me know.

Regards,
Ken

{Intra 1st Hour (or anytime) Breakout}

MktStart:=Hour()<Ref(Hour(),-1);
BrkOutHour:=Input("Breakout hour",1,24,10);
BrkOutMin:=Input("Breakout minute",0,59,30);
BrkOutTime:=Hour()=BrkOutHour AND
            Minute()=BrkOutMin;
y:=HighestSince(1,MktStart,H);
z:=LowestSince(1,MktStart,L);
ValueWhen(1,BrkOutTime,y);
ValueWhen(1,BrkOutTime,z);