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

Re: [amibroker] highest between bars



PureBytes Links

Trading Reference Links

Sidney,

Try this in indicator builder and AA:



firstcum=BarsSince(Cum(1)==LastValue(Cum(1)-50)==0);

lastcum=BarsSince(Cum(1)==LastValue(Cum(1)-13)==0);

HHVbetweenn=IIf(lastcum,HighestSince(firstcum,H,0),0);

HHVbetweennval=ValueWhen(HHVbetweenn,HHVbetweenn);

Filter=1;

AddColumn(firstcum,"firstcum");

AddColumn(lastcum,"lastcum");

AddColumn(HHVbetweenn,"HHVbetweenn");

AddColumn(HHVbetweennval,"HHVbetweennval");

Plot(C,"",colorBlack,styleCandle);

Plot(firstcum,"first",colorYellow,styleHistogram|styleOwnScale);

Plot(lastcum,"first",colorYellow,styleHistogram|styleOwnScale);

Plot(HHVbetweennval,"high",colorRed,styleHistogram|styleOwnScale);

Anthony

----- Original Message ----- 
From: "Sidney Kaiser" <s9kaiser@xxxxxxxxxxx>
To: <AmiBroker@xxxxxxxxxxxxxxx>
Sent: Monday, December 15, 2003 8:02 PM
Subject: [amibroker] highest between bars


> I am trying to create a clone of a QP2 function
>
> MAX(-13,-50, High)     This returns the highest high between 13 bars back
> and 50 bars back.  I've been scratching head for a while now and need some
> help to get an AFL version of this.
> TIA
> Sid
>
>
> 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.551 / Virus Database: 343 - Release Date: 12/11/2003
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 12/11/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/