MT4, Communication Between Differet EA Through a file

 

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.

 

Yes possible.

Just use a fast timer to check if something changed.

 
It's totally possible. you can try the file open flags-FILE_SHARE_READ and FILE_SHARE_WRITE
 
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
 
Marco vd Heijden:

Yes possible.

Just use a fast timer to check if something changed.

Thanks a lot!

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

Thank you !

 
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.