Download MetaTrader 5
To add comments, please log in or register
Have you found an error in our products? Apply to Service Desk!
Rafael Katz
13
Rafael Katz 2014.04.10 11:43 

Hello,

"automated trading with "expert advisors" based on text files which were generated by other programs"

Example:

The EA is checking if files exist in a specific folder.

If Yes, the EA will open and read every file, find a string like "LONG this ticker, TP=x, SL=y" or "SHORT that ticker, TP=x, SL=y" in each file.

Open trades depending on what was written in the file(s).

Delete, move or rename the file after using them for a trade.

Is this possible with MT4 ?

If not, why ?

Sorry if somebody asked this already ...

TY

whroeder1
13649
whroeder1 2014.04.10 12:15  
FXChton: Open trades depending on what was written in the file(s). ../ Is this possible with MT4 ?
Had you bothered to read the documentation, book, and especially File Functions - MQL4 Documentation you would know the answer.
Rafael Katz
13
Rafael Katz 2014.04.10 13:24  
WHRoeder:
Had you bothered to read the documentation, book, and especially File Functions - MQL4 Documentation you would know the answer.


Yes, I saw that and got irritated by

"For security reasons, work with files is strictly controlled in the MQL4 language", and "sandbox" ...

Could this lead to a "No" as the answer of my question ?

Can I access and use a folder with files with MT4 together with other programs that create the files there ?

qjol
3243
qjol 2014.04.10 13:28  
Rafael Katz
13
Rafael Katz 2014.04.10 17:45  

sounds like a "Yes" ... thank you very much I'll have a close look at thta. Thanks again ! :-)
Alain Verleyen
Moderator
28699
Alain Verleyen 2014.04.10 20:08  

Not necessarily if the other application can write in MQL4/Files or Common/Files folders.

Named pipes can also be a solution.

/
To add comments, please log in or register