Does this example of fraction of high, low range for close (can use other array 
and range) do what you want?

x = lastvalue(highest(h));
y = lastvalue(lowest(l));
fraction = c / (x - y);
plot(fraction, ... );

Bill
  ----- Original Message ----- 
  From: Kevin Glenn 
  To: [email protected] 
  Sent: Saturday, September 29, 2007 8:46 PM
  Subject: Re: [amibroker] Re: Help With Percentiles


  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 <[EMAIL PROTECTED]>
  To: [email protected]
  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 [EMAIL PROTECTED] ps.com, "KBGlenn" <[EMAIL PROTECTED] > 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.  

Reply via email to