Navdeep Singh:
It's a bug in metatrader's compiler, a workaround would be to do:The below script compiles and works fine in MQL4 but throws compilation error(some operator expected) in MQL5. I hope someone can guide me and help in rectifying the issue.
TFunc p = funcPtr[i];
Print(p(text));
Reported to Metaquotes and fixed. Will be available on next build.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
The below script compiles and works fine in MQL4 but throws compilation error(some operator expected) in MQL5. I hope someone can guide me and help in rectifying the issue.