PureBytes Links
Trading Reference Links
|
The trendlines are now easier:
Plot(C,"Close",1,64);
perc=3;
pe=PeakBars(H,perc)==0;
x0=LastValue(ValueWhen(pe,Cum(1),2));
y0=LastValue(ValueWhen(pe,H,2));
x1=LastValue(ValueWhen(pe,Cum(1),1));
y1=LastValue(ValueWhen(pe,H,1));
fR=LineArray(x0,y0,x1,y1,1);Plot(fR,"Resistance",colorYellow,1);
tr=TroughBars(L,perc)==0;
x0=LastValue(ValueWhen(tr,Cum(1),2));
y0=LastValue(ValueWhen(tr,L,2));
x1=LastValue(ValueWhen(tr,Cum(1),1));
y1=LastValue(ValueWhen(tr,L,1));
fS=LineArray(x0,y0,x1,y1,1);Plot(fS,"Support",colorYellow,1);
with the new LineArray() function.
Dimitris Tsokakis
>
> -----Original Message-----
> From: Tomasz Janeczko [mailto:amibroker@x...]
> Sent: Monday, November 17, 2003 7:54 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] AmiBroker 4.49.0 BETA released
>
>
> Hello,
>
> A new beta version (4.49.0) of AmiBroker has just been released.
>
> It is available for registered users only from the members area at:
> http://www.amibroker.com/members/bin/ab4490beta.exe
> and
> http://www.amibroker.net/members/bin/ab4490beta.exe
>
> (File size: 623 687 bytes, 623 KB)
>
> If you forgot your user name / password to the members area
> you can use automatic reminder service at:
> http://www.amibroker.com/login.html
>
> The instructions are available below and in the "ReadMe" file
> ( Help->Read Me menu from AmiBroker )
>
> CHANGES FOR VERSION 4.49.0 (as compared to 4.48.2)
> * new Percentile function
>
> Percentile( array, period, rank )
>
> rank is 0..100 - defines percentile rank in the array
>
> Example:
> Volume > Percentile( Volume, 100, 70 );
>
> means: current day volume ranks within TOP 30% of volumes of last
100
> bars (is above 70th percentile)
>
> Volume < Percentile( Volume, 100, 30 );
> means: current day volume ranks within BOTTOM 30% of volumes of
last 100
> bars (is below 30th percentile)
>
> (performance note: the implementation of percentile function
involves
> sorting that is relatively slow process even though that quicksort
> algorithm is used)
> * new function
>
> LineArray( x0, y0, x1, y1, extend = 0 )
>
> generates array equivalent to trend line drawn from point x0, y0 to
> point x1, y1. x coordinates are in bars (zero based), y coordinates
are
> in dollars Note: x0 must be SMALLER than x1. Note 2: the function
> accepts only numbers therefore
> generates single line. To produce multiple lines you have to call it
> many times with different co-ordinates.
> if extend is 1 then line is right extended.
> if extend is 2 then line is left extended
> if extend is 3 then line is left and right extended
>
> Example:
> y0=LastValue(Trough(L,5,2));
> y1=LastValue(Trough(L,5,1));
> x0=BarCount - 1 - LastValue(TroughBars(L,5,2));
> x1=BarCount - 1 - LastValue(TroughBars(L,5,1));
> Line = LineArray( x0, y0, x1, y1, 1 );
> Plot(C, "C", colorWhite, styleCandle);
> Plot( Line, "Trend line", colorBlue );
> * new function sign( x )
> (x can be number or array).
> Returns 1 if x is positive, returns -1 if x is negative, and
returns 0
> if x is zero.
> * ApplyStop : 'exitatstop' parameter extended:
> ApplyStop( Type, Mode, Amount, ExitAtStop = 1, Volatile = False,
> ReentryDelay = 0 )
------------------------ 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/
|