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

Re: [amibroker] Re: Help With Percentiles



PureBytes Links

Trading Reference Links

Almost...what I really want to plot/determine is the percentile itself (i.e. somewhere between 0 and 1) not what the percentile value is equal too.  For example if 999 was in the 99th percentile the plot would be  .99 not 999.

The cum function definitely captures the total array part.  If I could set the periods part of RSIa to Cum I'd be in there!

Tks

----- Original Message ----
From: apfxtrader <apforex@xxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, September 29, 2007 1:13:33 PM
Subject: [amibroker] Re: Help With Percentiles

Var = RSI();
count = Cum(Var>0); //number of array elements
period = LastValue(count) ;
perc = Percentile(Var, period,50) ;
Plot(LastValue( perc), "", colorRed);

--- In amibroker@xxxxxxxxx ps.com, "KBGlenn" <kbglenn@xxx > wrote:
>
> I'm at a loss how to do this as the Percentile function doesn't seem
> to apply.
>
> I'm trying to put a percentile ranking to all values in an array not
> just for a certain period. I understand the rankings will change as
> more data is collected but that if fine for my purposes.
>
> Any suggestions?
>




Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online. __._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___