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

[amibroker] Rotation Script - average of 2 rankings?



PureBytes Links

Trading Reference Links

Supposed I have two different criteria I want to rank my list of symbols for my rotation script by - Criteria A and Criteria B.  The values end up like this:

Criteria A & Criteria B have raw values (ie RSI, MACD, whatever, but they're distinct values and not related), the symbols are then ranked by those values to create the criteria ranking below.

Symbol   Criteria A (Ranking)  Criteria B (Ranking)
IBM         1                       5
AAPL        4                       1
GOOG        3                       3
INTC        5                       4
DELL        2                       2

Now I want to buy the symbol w/ the lowest average ranking, in this case DELL (2+2)/2 = 2.  I know how to flipflop PositionScore to buy the lowest, my question is, how can i rank across a watchlist prior to setting the PositionScore for the actual buy-sig ranking?

Thanks.



------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

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

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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