It helps a bit, but it's in chinese.
What I would like to do is, be able to import data.
Then able to use that data with EA code.
Does anyone know a simple example of how to do that?
Aha...
I've found a way...
https://docs.mql4.com/files/FileOpen
...
Sample Code:
int handle; string str; handle=FileOpen("my_data.csv",FILE_CSV|FILE_READ,';'); if(handle<1) { Print("File my_data.dat not found, the last error is ", GetLastError()); return(false); } else{ str=FileReadString(handle); Print(str); FileClose(handle); }
However, I have another question.
How can I open/view *.HST files?
However, I have another question.
How can I open/view *.HST files?
Write your own viewer. HST-format is known.
BTW standard instruments-timeframes can be viewed via main menu - Tools - History Center
LOL. I'm such a newbie, I don't even know what that means.
For now, I'm just going to stick with simple *.csv & *.txt files.
As seen in my sampled code above, I know how to successfully work with *.csv/*.txt files using just EA code.
And, I can simply (and successfully) view the *.csv/*.txt file's content with MS Windows Notepad.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Using only EA code, is it possible to access past/history information (such as past price movements for USDCHF)? And if so, how?