Mary A Thompson: In the case of Historical data, is there a way of extracing ohlc data from MT4 programmatically?
Yes!
Timeseries and Indicators Access - MQL4 Reference
- docs.mql4.com
Timeseries and Indicators Access - MQL4 Reference
Mary A Thompson:
string terminal_data_path=TerminalInfoString(TERMINAL_DATA_PATH); string filename=terminal_data_path+"\\MQL4\\Files\\"+"fractals.csv"; int filehandle=FileOpen(filename,FILE_WRITE|FILE_CSV); |
You don't specify the path, /Files is implicit.
File Write Problem (Error: 5002) - Expert Advisors and Automated Trading - MQL5 programming forum #1-2 (2020)
and FolderDelete using TERMINAL_DATA_PATH - General - MQL5 programming forum (2017)
William Roeder #: You don't specify the path, /Files is implicit. File Write Problem (Error: 5002) - Expert Advisors and Automated Trading - MQL5 programming forum #1-2 (2020) and FolderDelete using TERMINAL_DATA_PATH - General - MQL5 programming forum (2017)
@William Roeder, the above code is not the OP's. It is code quoted from the FileOpen documentation example (to explain that very fact you have commented on).
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
/