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

Re: [amibroker] How To Get HHV( High, between 09:30 and 10:30 )



PureBytes Links

Trading Reference Links

try this:

start = BarsSince(TimeNum()==093000);
end = BarsSince(TimeNum()==103000);
Highprice = ValueWhen(TimeNum()==103000, HHV(H,start-end));
Closeprice = ValueWhen(TimeNum()==103000,C);
Plot(IIf(TimeNum()>=103000,Highprice,Null),"",colorRed,styleLine);
Plot(IIf(TimeNum()>=103000,Closeprice,Null),"",colorYellow,styleLine);



On Sun, 11 Feb 2007 04:36:07 -0500, Lester Vanhoff  
<ebsn247lsm@xxxxxxxxxxxxx> wrote:

> I need the following code for intraday data (one-minute database):
>
> 1) HHV( High, between 09:30 and 10:30 );
>
> 2) Close (at 10:30);
>
> Then I would need to plot those as horizontal lines each day from their  
> start time till the end of the day.
>
> Tnx
>
>



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.35/680 - Release Date: 2/10/2007 9:15 PM