[amibroker] Re: Counting not updated symbols in the watchlist

 

You'll need to loop through the watchlist and test each symbol, counting up the number of occurrences as you go.

For example:

WatchlistName = "My Watchlist";
wlnumber = CategoryFind(WatchlistName, categoryWatchlist ); 
SymList = CategoryGetSymbols(categoryWatchlist, wlnumber ); 

NotUpdatedCount = 0;

for( i = 0; ( symbol = StrExtract( SymList, i ) ) != ""; i++ )
{
SetForeign(symbol);
NotUpdated = LastValue(Now(3) - 1 > DateNum());

if (NotUpdated)
NotUpdatedCount++;

RestorePriceArrays();
}


__._,_.___

Posted by: alan.clement@gmail.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Save time and get your email on the go with the Yahoo Mail app
Get the beautifully designed, lighting fast, and easy-to-use Yahoo Mail today. Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___


EmoticonEmoticon