Yu Zhang: We know FileWrite can used in EA and Indicators , But when I use Strategy Tester to output something in file , I find FileWrite can not used.
| They certainly can. Are you looking in the correct place (DataFolder\tester\files, not DataFolder\MQL4\Files?) |
They certainly can. Are you looking in the correct place (DataFolder\tester\files, not DataFolder\MQL4\Files?) |
I used it In MT5. And I also not find Output in Any place, even if I search it.
(DataFolder\tester\files, and DataFolder\MQL5\Files ) don't find it.
I used it In MT5. And I also not find Output in Any place, even if I search it.
(DataFolder\tester\files, and DataFolder\MQL5\Files ) don't find it.
To know the path, use :
Print("OUTPUT PATH=",TerminalInfoString(TERMINAL_DATA_PATH));
It's something like :
C:\Users\XXXX\AppData\Roaming\MetaQuotes\Tester\781C3E62F180447B0B09BCE03CD9EA0F\Agent-127.0.0.1-3000\MQL5\Files
Or use FILE_COMMON flag to place your file in an easier path:
C:\Users\XXXX\AppData\Roaming\MetaQuotes\Terminal\Common
To know the path, use :
It's something like :
C:\Users\XXXX\AppData\Roaming\MetaQuotes\Tester\781C3E62F180447B0B09BCE03CD9EA0F\Agent-127.0.0.1-3000\MQL5\Files
Or use FILE_COMMON flag to place your file in an easier path:
C:\Users\XXXX\AppData\Roaming\MetaQuotes\Terminal\Common
thank you, I find it
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
We know FileWrite can used in EA and Indicators , But when I use Strategy Tester to output something in file , I find FileWrite can not used.
Anyone used FileWrite in Strategy Tester? Do you find it can't use?
for example: