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

[amibroker] The new percentile() function



PureBytes Links

Trading Reference Links

from VERSION 4.49.0 
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)

a.
In this " last 100 bars" is the very last bar included ?
I see from
x=StochD();Plot(x,"",2,1); 
y=Percentile( x, 10, 100 );
Plot((x>y)*x,"",4,2);
Plot(1.2*(x==HHV(x,11))*x,"",5,2);
the equivalence of bars with HHV(x,11) instead of HHV(x,10).
Is Percentile( x, 10, 100 ) the top of the last 10 x ?
b.
What is the interpretation of  Percentile( x, 10, 50 ) ?
The inequality above example does not help me understand, I try to 
explain the result of
y= Percentile( x, 10, 50 );
Any explanation appreciated.
c.
I can not also understand in
x=Cum(1);Plot(x,"",2,1); 
y=LastValue(Percentile( x, 10, 50 ));
Plot(y,"",4,1);
[with Lastvalue(Cum(1)) equal to 940]
the y=934.5 [??]
TIA
Dimitris Tsokakis


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