I downloaded the Ranking and sorting stocks.afl code from the AB site

http://www.amibroker.com/library/detail.php?id=434

and get errors in this section of TickerIndex and TickerScores not 
initialized, but can't figure why. Is this standalone code ?


        // Format Top Tickers for Indicator Title verification
        TickersCounted = 0; i=0; P=8; 
        for(n=TickerCount; n>=TickerCount-NumTickers; n--)
                {
                T5[i++]       = TickerIndex[n];
                Ticker          = StrExtract(Tickerlist,T5[i-1]);
                Score           = NumToStr(TickerScores[n],1.3);
                TickerNum       = NumToStr(TickerIndex[n],1.0);
                StaticVarSet(Ticker+"Score",TickerScores[n]);
                StaticVarSet(Ticker+"Number",TickerIndex[n]);

Reply via email to