MetaTrader 4 does not support testing multi-symbol EAs. it can only test the current symbol.
Only MetaTrader 5 supports testing multi-symbol EAs.
However, when running live it should work provided the symbol is already active on the Market Watch, and data has been synchronised.
You may need to check for 4066 and 4073 errors and and force the data synchronisation.
Forum on trading, automated trading systems and testing trading strategies
William Roeder, 2023.05.25 15:24
Updates automatically when you reference that timeframe.
On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
Download history in MQL4 EA - MQL4 programming forum - Page 3 #26.4 (2019)
Your topic has been moved to the section: MQL4 e MetaTrader 4 — In the future, please consider which section is most appropriate for your query.
MetaTrader 4 does not support testing multi-symbol EAs. it can only test the current symbol.
Only MetaTrader 5 supports testing multi-symbol EAs.
However, when running live it should work provided the symbol is already active on the Market Watch, and data has been synchronised.
You may need to check for 4066 and 4073 errors and and force the data synchronisation.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi there guys, fast issue, if i try "MarketInfo(Symbol(), MODE_LOTSTEP);" it returns the lotstep correctly, BUT, if i send ANY other symbol (which is not the one in the chart with the EA or strategy tester) it returns 0, por example:
In US500 chart both "MarketInfo(Symbol(), MODE_LOTSTEP);" AND "MarketInfo("US500", MODE_LOTSTEP);" returns 0.01, BUT, if i change to any other chart " MarketInfo("US500", MODE_LOTSTEP);" returns 0.
So i don't know if it's intended or a bug, but if you try to get the lotstep of a different symbol it returns 0, also tried with US30 with same results, any idea how to fix this?
Thanks!