Print output from multiple indicators to one shared file

WeHu58
37
WeHu58  

Hi,

I have different indicators that run on different MT5 instances with different _Symbols.

These indicators provide printouts.

Is there a way to output these printouts in ONE file shared by all MT5's?

Do I have to regulate the access to the file myself, e.g. via FileOpen () and Sleep () until the file is still open because of the access from another MT5 ?

Thx

Greetings

WeHu58

lippmaje
1444
lippmaje  
You can open a file in the common data folder with shared write attribute. See FILE_COMMON, FILE_SHARE_WRITE.
Documentation on MQL5: Constants, Enumerations and Structures / Input/Output Constants / File Opening Flags
Documentation on MQL5: Constants, Enumerations and Structures / Input/Output Constants / File Opening Flags
  • www.mql5.com
CSV file (all its elements are converted to strings of the appropriate type, Unicode or ANSI, and separated by separator). Flag is used in FileOpen(). Shared access for reading from several programs. Flag is used in FileOpen(), but it does not replace the necessity to indicate FILE_WRITE and/or the FILE_READ flag when opening a file. Shared...