Slideshow

Cheap Web Hosting Sites

Social Icons

'

Tuesday, November 6, 2012

How to count tickers in your Amibroker database ?

Save following simple code in  the 'Formulas\custom ' folder with the name as CountTickers. afl or other name of your choice.


Filter=1;
AddColumn(Status("StockNum"),"no",1);

Run the AFL in the Automatic Analysis window and this AFL shall rank each ticker. The rank of the last ticker is the count you were looking for. 

For that click on the 'no' ticker to get the count in descending order.


0 Comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...