Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Quote Monitoring (Memory Mapped File) - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 2 reads | 0 comments |

Quotes Monitoring (memory-mapped file) - expert for MetaTrader 5

The Expert Advisor is a sample memory map using a DLL that uses file mapping functions.

In this example, the Expert Advisor creates a virtual (memory mapped) file and starts updating the quotes of the symbol.

In this way, Expert Advisors can exchange data (for example, quotes) using common memory-mapped files.

The format of memory mapped files is the same as that used in the MetaTrader 4 Expert Advisor . This means you can exchange quotes between MetaTrader 5 and MetaTrader 4 .

Quotes Monitoring (memory-mapped file) - expert for MetaTrader 5

Other data exchanges can be organized in a similar way.

The code has lots of comments and logs.

MemMap32/64.dll library (see MemMap32/64.zip) must be placed in: terminal_data_folder\MQL5\Libraries


Attachment download

📎 monitor_v2.mq5 (12.56 KB)

Source: MQL5 #817

Verification code Refresh