PureBytes Links
Trading Reference Links
|
Thomas,
Here is another version...
Start_lookback=7;
th=Ref(HHV(C,18)==C,-Start_lookback);
tl=Ref(LLV(C,18)==C,-Start_lookback);
barhigh=BarsSince(th)+Start_lookback;
barlow=BarsSince(tl)+Start_lookback;
Filter=1;
AddColumn(barhigh,"barHigh",1);
AddColumn(barlow,"barLow",1);
----- Original Message -----
From: "Thomas Ludwig" <Thomas.Ludwig@xxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, October 30, 2003 2:52 PM
Subject: Re: [amibroker] BarsSince question
> On Wed, 29 Oct 2003 16:44:15 -0500, in Amibroker you wrote:
>
> > th=HHV(C,18)==C;
> >
> > tl=LLV(C,18)==C;
> >
> > barhigh=BarsSince(th);
> >
> > barlow=BarsSince(tl);
> >
> > Filter=1;
> >
> > AddColumn(barhigh,"barHigh",1);
> >
> > AddColumn(barlow,"barLow",1);
> >
> Thanks, Anthony. Marek's hint was waht I was looking for.
>
> Regards, Thomas
> --
> Thomas Ludwig
> PGP key (RSA) available on request.
> Fingerprint: 4356 55FF 3412 277A 9741 1CFA B9A6 7B90
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.532 / Virus Database: 326 - Release Date: 10/27/2003
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|