I am trying to code a plot wherein I can draw chart of Foreign Tickers one at a time (Read members of a watchlist) in the form of a parameter. The Watchlist is getting updated through Exploration as part of the Scheduler. So once the watchlist is updated, I wish to use it as a dropdown in the parameter and the corresponding symbol gets ploted against the symbol in the search box, with same style with an auto axis mode.
Thanks a lot @nsm51
How to put his ON auto refresh? Refering the attached screenshot, When I select watchlist as Param 1, I wish to see the corresponding tickers in that watchlist in Param2
As far as I know, there’s no way to accomplish exactly what you’re trying to do, which is to modify the content of one dropdown list in real time based on the selection that is made in another dropdown list. The reason is that while the Parameters window is being displayed, your AFL is not being executed every time a parameter value changes. Your AFL only runs after you’ve closed the Parameters window AND you’ve taken another action that requires AmiBroker to run your code.
As a workaround, I think you could select your watchlist, exit the Parameters window, and then open it again. This would force your AFL to run, and the symbol dropdown would contain the symbols for the previously selected watchlist. That’s a little awkward from a user standpoint though.