You can not read files outside the sandbox, utilizing mql functions.
See docs:
https://www.mql5.com/en/docs/files/fileopen
You are bound to use WinAPI functions to accomplish this.
Documentation on MQL5: File Functions / FileOpen
- www.mql5.com
FileOpen - File Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
It is an ANSI text file, not Unicode.
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
Good Day to all. Happy weekend. I got a problem regarding to use SET files. the scenario is, I have a set file for my xauusd chart and i have a set file for my btcusd. Can anybody help me to give me any ideas on how to load that SET programmatically?
I use above code for my text document file without getting ANY ERRORS. But reading SET files I got NOTHING.
What's possible solution to my problem? Is there a way to read that SET files using mql5? or there is alternative way to load SET files programmatically?
Thanks in advance for reading and sharing your ideas about this matter.