Hi, Rick,
Thanks for your
code. I paste the codes into AB. I check the returned values but they are
incorrect. I am new to AB and I don’t know how your codes work.
Clement
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Rick Osborn
Sent: Tuesday, May 30, 2006 11:07
AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] How to
access the first 2 bars of a day?
Try
bi = BarIndex()+1;
xx = ValueWhen(Day() !=Ref(Day(),-1),bi);
bar1H = ValueWhen(bi ==XX+1,H,1);
bar2L = ValueWhen(bi ==XX+1,L,1);
bar2H = ValueWhen(bi ==XX+2,H,1);
bar2L = ValueWhen(bi ==XX+2,L,1);
Rick
--- "Clement, Gmail" <manyit99@xxxxxxxxx> wrote:
> I am using 15-minute chart and the first bar started
> at 8:00am. Please tell
> me a way to get the high and low of the first 2 bars
> of current day.
>
>
>
> Thank you.
>
>
>
> Clement
>
>
>
>
Rick Osborn & Associates
885 Sorrento Ave.
Oshawa, Ontario
L1J 6V6
(905) 728-8543 fax 728-0815
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS