DislikedHi coders, I have a list of 38 symbols in an array sym[38] :- string sym[38]={ "AUDCAD","AUDCHF","AUDJPY","AUDNZD","AUDSGD","AUDUSD","CADCHF","CADJPY","CHFJPY","EURAUD", "EURCAD","EURCHF","EURGBP","EURJPY","EURNZD","EURUSD","GBPAUD","GBPCAD","GBPCHF","GBPJPY", "GBPNZD","GBPUSD","NZDCAD","NZDCHF","NZDJPY","NZDUSD","USDCAD","USDCHF","USDJPY","XAGAUD", "XAGEUR","XAGUSD","XAUAUD","XAUCHF","XAUEUR","XAUGBP","XAUJPY","XAUUSD"}; // including 9 Metal Pairs Now, I would like to get an auto-way or a loop to EXCLUDE all the metal pairs by filtering out with...Ignored
It doesn't matter what the string array contains.
You should exclude the unwanted symbols in the loop when you process whatever you will process.
No need to recreate the string array.
And, it's easier to use StringFind() instead of StringSubstr().
IOW, you can get the whole MarketWatch and then filter out whatever you want to be shown, and not shown.
https://docs.mql4.com/marketinformation/symbolstotal
.ex4/.ex5 files can't be fixed or modified / I'm not a coder!