Get Watchlist name in afl

Is there a way to access the name of the watchlist (that I have selected in analysis window) to run an exploration/scan/backtest on?

I am looking for something the equivalent of GetDatabaseName() which returns database name, or Name() which returns the stock name, but I can't find an equivalent for the watchlist name. I've done a search in Amibroker Function Reference for "watch" but none of the functions that appear seem to fit what I need.

Take a look here

list_num = GetOption("FilterIncludeWatchlist");
category = categoryWatchlist;
list_name = CategoryGetName( category, list_num );

1 Like

Thank you @fxshrat, GetOption was the key to solving my problem, this has been very helpful, thanks as always..

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.