Forum

Market Watch Symbol selection procedure call

Hi, I am looking for MT4 function (s) that allow selection of specific symbol in the watchlist, so the symbol's tick chart is displayed. It is to be called from EA or indicators and would be similar to ChartOpen but for Market Watch, eliminating the need to click on several tabs and select the

Code to determine which chart is currently on top in MT4

Hi, I am trying to write code which determines which chart is currently on top, in MT4. For example, if an EA or indicator is running on a particular chart, how to determine whether the EA/indicator's chart is currently on top? I know that you can bring chart to top: ChartSetInteger(chartID