I had a Script from previous versions of metatrader working perfectly, but when the exact same code is compiled with the new updated version it don´t work anymore. The Script is 1H_arb.mq4 and its 1H_arb.ex4 (both attached)
It used to save the bid and ask of some symbols to a file in a folder in D:\.
The 1H_arb.ex4 attached file will work; but if 1H_arb.mq4 is compiled in the current version, the generated 1H_arb.ex4 would have a bug.
I am explaning the bug:
The WriteToFile() function of the library WinFile.mqh wont write, but it won´t show an error neither. They even report the return values as the files where written.
I think that is a compiler bug because I have tried with two different computers.
Any help will be appreciated and is quite urgent. Thanks in advance
Post script: Any other workaround which works to save data in folders out of metatraders's paths would be appreciated too.
Works!! Thank you my friend!
To add comments, please log in or register