Many developers face the same problem - how to get to the trading terminal sandbox without using unsafe DLLs. One of the easiest and safest method is to use standard Named Pipes that work as normal file operations. They allow you to organize interprocessor client-server communication between programs. Take a look at practical examples in C++ and MQL5 that include server, client, data exchange between them and performance benchmark.
また、writeTick、readTick...などのメソッドを呼び出す際にアクセス違反のエラーに直面しました。修正したCNamedPipesファイルを添付します。
また、 CNamedPipe クラスにWriteDoubleメソッドを追加しました :
補足:クライアント側(他のメタトレーダー端末など)からの読み書きには、標準のMQL5 FilePipe Libraryを使いました。使用例はこちらからダウンロードできます:
https://www.mql5.com/ja/articles/503