Post the file.
Where is your file close ? FileClose(hander) ?
Oops. thanks alain. there were a few mistakes in my code handled by your guide and a few other searches. now I am facing another issue.
I get my file in realtime but can't have it in strategy tester.
I placed my file here: C:\Program Files\Alpari MT5\Tester\Files
but I can't place it here: C:\Program Files\Alpari MT5\Tester\Agent-127.0.0.1-3000\MQL5\Files
cus everytime I run my strategy tester, it cleares the file I pasted in directory above and so it can not find the file. So when I start the strategy tester, the data folder is empty. where I need to put the file for the strategy tester to find it?
Oops. thanks alain. there were a few mistakes in my code handled by your guide and a few other searches. now I am facing another issue.
I get my file in realtime but can't have it in strategy tester.
I placed my file here: C:\Program Files\Alpari MT5\Tester\Files
but I can't place it here: C:\Program Files\Alpari MT5\Tester\Agent-127.0.0.1-3000\MQL5\Files
cus everytime I run my strategy tester, it cleares the file I pasted in directory above and so it can not find the file. So when I start the strategy tester, the data folder is empty. where I need to put the file for the strategy tester to find it?
You need to use #property tester_file "your_file". Check the documentation.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
here is my code.
the return in comment says handler did work but I can not get the string inside the file and nor the length of the file from FileReadInteger.
I am not sure what I am missing. the file is a txt as you can see in my code but I can not read the property written inside of it.
anyone can help me?