Automated Watch List for Amibroker

#1
Is it possible that stocks with buy or sell indication (according to selected AFLs) could be automatically viewed in Watch List or Favorite List or any customized created list?
I mean, only the stocks those matches buy-sell criteria would be shown in the list.
 

amanfree

Active Member
#2
Is it possible that stocks with buy or sell indication (according to selected AFLs) could be automatically viewed in Watch List or Favorite List or any customized created list?
I mean, only the stocks those matches buy-sell criteria would be shown in the list.
yes it is possible
 

amanfree

Active Member
#4
// --------- Watchlist Section -------------------------
// check to see if results should go to a watchlist
if( LastValue( Filter ) )
// sends results to selected watchlist # 20
{ CategoryAddSymbol( "", categoryWatchlist, 20 ); }
 

amanfree

Active Member
#5
// --------- Watchlist Section -------------------------
// check to see if results should go to a watchlist
if( LastValue( Filter ) )
// sends results to selected watchlist # 20
{ CategoryAddSymbol( "", categoryWatchlist, 20 ); }
add this code to ur afl
 
#6
Many thx for the code. Is it going to sort the quotes according to buy-sell indication?
Once a code is inserted into the specified watch list, will it be removed from that watch list automatically when criteria is not present in next days?
 

amanfree

Active Member
#7
Many thx for the code. Is it going to sort the quotes according to buy-sell indication?
Once a code is inserted into the specified watch list
In watchlist you only have symbols only, no buy sell conditions.


will it be removed from that watch list automatically when criteria is not present in next days?
No it is always better to manually empty the watchlist. But Here's some very nice code that I saw the code from internet that does a great job of
Eraseing all symbols in a Watchlist. Note, the approach is to use the Function below. Use this in the start of your exploration afl

function EraseWatchlist( listnum )
{
// retrive comma-separated list of symbols in watch list
list = CategoryGetSymbols( categoryWatchlist, listnum );
//iterate through watchlist members and remove
for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
{
CategoryRemoveSymbol( sym, categoryWatchlist, Listnum );
}
}
//sample use
if( Status("stocknum") == 0 )
EraseWatchlist( 0 );

Buy = 0;
SetOption("RefreshWhenCompleted", True);
 

Similar threads