crossy:
Try replacing all \ with \\.
Hello freinds,
At MQL4 I hade FileOpenHistory(...),
and I changed it to:
FileOpen(C:\Program Files\Fxglobe ECN Metatrader 5.0\Bases\GoForex-Demo\history\...),
The compiler's response is:
many of: '\' - illegal escape sequence
What should I do:
crossy: just like stringo has suggested, check the documentation. In https://www.mql5.com/en/docs/files/fileopen you can see an example code where you have \\ in the paths, not \.
Documentation on MQL5: File Functions / FileOpen
- www.mql5.com
File Functions / FileOpen - Documentation on MQL5
And don`t forget double quotes
mql5:
And don`t forget double quotes
Thank you freinds.
And don`t forget double quotes

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
Hello freinds,
At MQL4 I hade FileOpenHistory(...),
and I changed it to:
FileOpen(C:\Program Files\Fxglobe ECN Metatrader 5.0\Bases\GoForex-Demo\history\...),
The compiler's response is:
many of: '\' - illegal escape sequence
What should I do: