My Outlook collection of emails is what I find most effective. I thought you had a similar collection.
 
Here's one by Herman:
 
// Explore
Buy=Sell=Short=Cover=0;
Filter = 1;
AddColumn(C,"C",1.2);
 

global Top5TickerList, Tickercount ;
function GetScore( Ticker, Barnum )
{
    return C; // substitute your own scoring formula.
}
 
function getPositionScores( WatchList, BarNum, NumTickers )
{
    TickerList= GetCategorySymbols( categoryWatchlist, WatchList);
    CurrentTicker = Name();
    TickerScoreList = "";
    global Top5Index, Top5Scores;
    for( n=0; (Ticker=StrExtract( TickerList, n)) != ""; n++)
    {
        SetForeign(Ticker);
        TickerScores[n] = LastValue(ValueWhen(BarIndex() == BarNum, GetScore( Ticker, BarNum )));
        TickerIndex[n] = n;
   _TRACE(Ticker +  ":" + NumToStr(TickerScores[n], 3.2));
    }
 
    TickerCount= n;
    for(i = n; i>=0; i--)
    {
        for (j = 1; j <= i; j++)
        {
            if (TickerScores[j-1] > TickerScores[j])
            {
                temp = TickerScores[j-1]; TickerScores[j-1] = TickerScores[j]; TickerScores[j] = temp;
                temp = TickerIndex[j-1]; TickerIndex[j-1] = TickerIndex[j]; TickerIndex[j] = temp;
            }
        }
    }
 
    Top5TickerList  = "";
    i=0;
    for(m=TickerCount; m>TickerCount-NumTickers; m--)
    {
        Top5Index[(BarCount--)-6] = TickerIndex[m];
        T5[i++] = TickerIndex[m];
        Top5TickerList = Top5TickerList + StrExtract(Tickerlist,T5[i-1])+",";
    }
 
    SetForeign( "QQQ" );
    return T5  ;
}
 

_TRACE("# DBGVIEWCLEAR");
 
_TRACE("# BarCount" + NumToStr( BarCount-1, 1.0));
 
getPositionScores( 0, BarCount-1, 5 );
Title = Top5TickerList+"  " + NumToStr(TickerCount,1.0);
 
 


From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ken Close
Sent: Wednesday, August 16, 2006 11:28 AM
To: amibroker@yahoogroups.com
Subject: RE: [amibroker] Put Ranking Position in Title

d
 
I have several times, several ways.  The single thing I seem to find (at least in the library) is a single formula what uses Relative Strength and Guppy like averages along with PositionScore to develop a "Ranking".  It is this I have experimented with to try variations on the approach but have not gotten anything I either think is useful or can understand.  That is why I was hoping for some direct dialog or some specific other message sources.
 
I guess I am looking for a direct listing from 1 to n, where n is the total number of issues in the watchlist being analyzed, and the numbers are rank positions of some indicator or formula.  I think I mentioned in my message that when I tried xxx = PositionScore with PositionScore = some variable, I got the same value in two different columns, rather than integers from 1 to n in the positionscore column.
 
You have searched quite effectively for others in the past. Is it the purebytes site that works for you or .....???????
 
Ken


From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dingo
Sent: Wednesday, August 16, 2006 11:17 AM
To: amibroker@yahoogroups.com
Subject: RE: [amibroker] Put Ranking Position in Title

search on sector ranking in the AFL library on Amibroker as well as email msgs.
 
d


From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ken Close
Sent: Wednesday, August 16, 2006 11:14 AM
To: amibroker@yahoogroups.com
Subject: RE: [amibroker] Put Ranking Position in Title

So, no responses on this (oringal question below) and I am issuing another request for comments and suggestions.
 
Is the Osaka plugin (big gulp) the only way to do rankings within native AB?  or is there another way??  Pointers to past messages (if you have them) or suggestions would be most appreciated.
 
Thanks,
 
Ken


From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ken Close
Sent: Sunday, August 13, 2006 10:48 AM
To: amibroker@yahoogroups.com
Subject: [amibroker] Put Ranking Position in Title

All:  I have been experimenting with using PositionScore[x] to try and capture a ranking number that could be put in a Title statement.
 
Dan Clark shared some gifs of some plots of various Industry averages and the Title statement showed the Industry name and its rank.  I thought this was very useful and wanted to see if I could come up with something similar.
 
I can not get off of first base (maybe better is striking out at the plate).
 
PositionScore is used on the left side of the equal sign, although there is an example ranking code in the Library which uses PositionScore[z] on both the left and right side of the = sign.  I tried variations on this approach and did not get anything that looked like a ranking (position) code. 
 
I put in a ranking equation, say, PositionScore = ROC(12);
 
I then tried a AddColumn for PositionScore[Barcount-1] as well as another AddColumn for ROC(12), and did an explore on a WL.  Both columns displayed the same values of the ROC, while I expected the PositionScore[z] column to have integers from 1 to the number of items in the watchlist.
 
Is what I am describing possible?  and if yes, what approach will work?
 
Any comments or pointers to past messages from anyone?
 
Thanks,
 
Ken

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 8/15/2006


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 8/15/2006

__._,_.___

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 other support material please check also:
http://www.amibroker.com/support.html






SPONSORED LINKS
Software support Small business finance Business finance online
Business finance training Business finance course


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to