MT4, Communication Between Differet EA Through a file

To add comments, please log in or register
Weixing Meng
223
Weixing Meng  

Communication Between Differet EA Through a file

↑ Is this possible ?

How can I make sure that when writing at the half, the other EA do not come and ready the data..

Or when an EA is reading..the other EA do not come to rewrite and change the data ?

Many Thanks if this problem could be solved.

Marco vd Heijden
Moderator
8166
Marco vd Heijden  

Yes possible.

Just use a fast timer to check if something changed.

liregood
16
liregood  
It's totally possible. you can try the file open flags-FILE_SHARE_READ and FILE_SHARE_WRITE
whroeder1
17944
whroeder1  
Weixing Meng: How can I make sure
Perhaps you should read the manual. If one EA has the file open and didn't use any share attributes, the other(s) can't.
          File Functions / FileOpen - Reference on algorithmic/automated trading language for MetaTrader 5
Weixing Meng
223
Weixing Meng  
Marco vd Heijden:

Yes possible.

Just use a fast timer to check if something changed.

Thanks a lot!

Weixing Meng
223
Weixing Meng  
liregood:
It's totally possible. you can try the file open flags-FILE_SHARE_READ and FILE_SHARE_WRITE

Thank you !

Weixing Meng
223
Weixing Meng  
whroeder1:
Perhaps you should read the manual. If one EA has the file open and didn't use any share attributes, the other(s) can't.
          File Functions / FileOpen - Reference on algorithmic/automated trading language for MetaTrader 5

Many Thanks, I'm not so good at reading English lol...I'll try the link you gave above. I think soon my problem will be solved, thank you all.

To add comments, please log in or register