Unmatched data error refers to the price history, not your code.
https://www.mql4.com/search/Unmatched%20data%20error

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
i have the following code on the main part of an EA:
i get "unmatched data error" whenever i try to test this. what's wrong?