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

[amibroker] Re: highest between bars



PureBytes Links

Trading Reference Links

You may have a visual approach by painting the between candles and 
marking the highest.

start=50;end=13;
x=Cum(1);L1=1+LastValue(x);
between=x>=L1-start AND x<=L1-end;
H1=LastValue(Highest(between*H));
Plot(C,"",colorIndigo*between+colorBlack,64);
Plot(H1,"",colorBlack,styleDots);
PlotShapes(shapeUpTriangle*(H==H1),colorYellow);
GraphXSpace=2;

Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, Sidney Kaiser <s9kaiser@xxxx> wrote:
> 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
> 
> 
> ---
> 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


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 

------------------------ 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
---------------------------------------------------------------------~->

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/amibroker/

To unsubscribe from this group, send an email to:
 amibroker-unsubscribe@xxxxxxxxxxxxxxx

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/