count tickers in watchlist.afl

来自「一个更精度的平滑涵数, 可用于股票交易系统.用于Amibroker 平台」· AFL 代码 · 共 49 行

AFL
49
字号
//------------------------------------------------------------------------------
//
//  Formula Name:    Count Tickers in Watchlist
//  Author/Uploader: Anthony Faragasso 
//  E-mail:          ajf1111@epix.net
//  Date/Time Added: 2003-07-05 09:27:55
//  Origin:          
//  Keywords:        
//  Level:           medium
//  Flags:           showemail,function
//  Formula URL:     http://www.amibroker.com/library/formula.php?id=290
//  Details URL:     http://www.amibroker.com/library/detail.php?id=290
//
//------------------------------------------------------------------------------
//
//  This function will output the number of tickers in a selected watchlist
//
//------------------------------------------------------------------------------

//Count tickers in watchlist function
//Anthony Faragasso
//July 4, 2003

//Single watchlist output

WatchlistNumber=0;//enter watchlist number

function CountTickersInWatchList( Listnum )
{
// retrive comma-separated list of symbols in watch list
list = GetCategorySymbols( categoryWatchlist, listnum );


for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
{

if( i == 0 ) i = 0;
else i = i ;
}

return i; 
}


Filter=1;
AddColumn(CountTickersInWatchList( WatchlistNumber),"Watchlist #"+WriteVal(watchlistnumber,1),1);


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?