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);