adicahyanto:
I think you will find answer in https://www.mql5.com/en/forum/367098
i want to read an external parameter from csv, use it on tester, and then after each test pass update those parameter and write it back to csv.
i try to put the imported parameter as global variable, so does with file name string.
i use slow complete algorithm and optimization target was input count variable (0-500)
then i put the read csv code at onTesterInit(), while the code for updating csv i put it on OnTesterPass().
i've tried to move the write csv code to OnTesterDeinit(), but still not working.
please point me how to do this. thanks.
my simple code are as follow:
Where to locate files for Strategy tester to find them
- 2021.04.12
- www.mql5.com
MT5 has a very bizarre way of handling files...
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
i want to read an external parameter from csv, use it on tester, and then after each test pass update those parameter and write it back to csv.
i try to put the imported parameter as global variable, so does with file name string.
i use slow complete algorithm and optimization target was input count variable (0-500)
then i put the read csv code at onTesterInit(), while the code for updating csv i put it on OnTesterPass().
i've tried to move the write csv code to OnTesterDeinit(), but still not working.
please point me how to do this. thanks.
my simple code are as follow: