MQL5 : SymbolSelect(symbol,false) doesn't work correctly. Bug or not ?

 

Hi,

int OnInit()
{
        for(int i=0; i<SymbolsTotal(true); i++)
                SymbolSelect(SymbolName(i,true),false);
}

Why doesn't this very simple code remove all of my MarketWatch symbols??? (except my current chart symbol)

I have hundreds of symbols in MarketWatch.
I want to remove all of them at startup (to be able to select the symbols I want with "SymbolSelect(symbol,true)" later).

Is it a MQL5 bug?
If not, then please explain WHY I can manually "Hide All" MarketWatch symbols but can't do it with MQL5?!?

Thanks

 
You want to hide them all and it hides them all, except the symbol of the chart it is attached to, as the chart should be open for the expert to run. This is the expected behavior.  If you want that one removed, you may use Services in MQL5.
 
Each time you hide one, you change the indexing. Count down.
Reason: