PureBytes Links
Trading Reference Links
|
Oops. The first one I sent had an unecessary "Hour()=" in the
first IF statement. You can simply delete it or copy/paste
this code in.
Ken
--
mailto:divenfish@xxxxxxxxxxxxx
Beginning one hour from the market's opening bell, this plots
the High and Low range channel that was formed during the
first hour of trading.
---Intra 1st Hour Breakout---
MktHour:=Input("Start bar hour",1,24,9);
MktMinute:= Input("Start bar minute",0,59,35);
BrkOutHour:=Input("Breakout hour",1,24,10);
BrkOutMin:=Input("Breakout minute",0,59,30);
MktStart:=Hour()=MktHour AND
Minute()=MktMinute;
BrkOutTime:=Hour()=BrkOutHour AND Minute()=BrkOutMin;
y:=HighestSince(1,MktStart,H);
z:=LowestSince(1,MktStart,L);
If(BrkOutTime,y,
ValueWhen(1,BrkOutTime,y));
If(BrkOutTime,z,
ValueWhen(1,BrkOutTime,z));
|