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

Re: [amibroker] Syntax Error



PureBytes Links

Trading Reference Links

Is it possible to use the Percentile function to act as the 
PositionScore? I am calculating a list of sector indicies first by 
four periods of ROC:

RS1 = ROC(Close, 260); 
RS2 = ROC(Close, 130);
RS3 = ROC(Close, 65);
RS4 = ROC(Close, 20);

ROCIndex = RS1 + RS2 + RS3 + RS4;

After computing the ROCIndex for my list, I would like to use the 
Percentile function to buy only the symbols listed in the top 5 
percent. (Rotational mode won't work, as I have additional 
conditions that may not allow any purchases at all.)

I understand from the examples of using Percentile how it can work 
on an individual security, but what about for a list? I assume I 
would need to first referrence an array that contained the ROCIndex 
numbers? Not sure how to do that.

Anyone have any experience with Percentile ranking? Any help would 
be appreciated.

-Eric.





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