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

Re: [amibroker] Need Sort Function to sort TickerList by Ticker-Value



PureBytes Links

Trading Reference Links

I did a quick search for a Sort Function in the AFL Library and found the following code. Don't know if it does what you're looking for. Will let you know if I can get it to work ...

Ton.

function sort(inlist)
{
//sort inlist
temp=0;
for(i = BarCount-1; i>=0; i--)
    {
    for (j = 1; j <= i; j++)
    {
        if (inlist[j-1] > inlist[j])
        {
        temp = inlist[j-1];
        inlist[j-1] = inlist[j];
        inlist[j] = temp;
        }
    }
}
//inlist now sorted
return inlist;
}


  ----- Original Message ----- 
  From: Herman 
  To: AmiBroker YahooGroups 
  Sent: Sunday, January 07, 2007 5:22 PM
  Subject: [amibroker] Need Sort Function to sort TickerList by Ticker-Value



  Would anyone have a sort function that will sort a Ticker list by a Ticker-Value (Price or what ever)?

  thanks,

  herman


   

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.7/618 - Release Date: 1/6/2007 7:47 PM