# Formula for intraday High Low

Discussion in 'AmiBroker' started by wahabdeen, Nov 22, 2009.

1. ### wahabdeenMember

Joined:
Dec 18, 2007
Messages:
45
15
Trophy Points:
8
Dear sir
I am giving Metastock Formula for Intraday High low signal. Can it be written in AFL. If so kindly do so.

----------------------------
{ Time Inputs }
StHour:=Input("start Hour",0,23,6);
StMin:=Input("start Minute",0,59,0);
EnHour:=Input("last Hour",0,23,9);
EnMin:=Input("last Minute",0,59,0);

{ Time period }
start:=Hour()>StHour
OR Hour()=StHour AND Minute()>=StMin;
end:=Hour()<EnHour
OR Hour()=EnHour AND Minute()<=EnMin;
filter:=
start AND (end OR (start AND Alert(start=0,2)));

{ Start/End time signals }

{ Hi/Lo values }
Hi:=ValueWhen(1,filter,HighestSince(1,start,H));
Lo:=ValueWhen(1,filter,LowestSince(1,start,L));

{ Plot on price chart }

=======End======

2. ### vkunisettyActive Member

Joined:
Mar 20, 2008
Messages:
81
113
Trophy Points:
33
wahabdeen,
here is the code for Day"s Hi Lo

rajeabc, santoshkj and wahabdeen like this.
3. ### niklraviBanned

Joined:
Nov 24, 2006
Messages:
91
13
Trophy Points:
8
[sir
what u r going to do with this how low?pl explain

ravi

4. ### KaranmActive Member

Joined:
Oct 18, 2009
Messages:
410
192
Trophy Points:
43
Kindly explain in detail how and where to feed this formula in Metastock and find Intraday High & Low.

Joined:
Oct 20, 2011
Messages:
2
0
Trophy Points:
1
how to upload on pc sir let me know

6. ### rkkarnaniWell-Known Member

Joined:
Sep 10, 2004
Messages:
4,581
4,440
Trophy Points:
113
Did not work on my version of MS!! Seems have erred somewhere!

Joined:
Jul 2, 2012
Messages:
100