mql4/5에는 멀티 스레딩 가능성이 없다는 사실을 고려할 때 mql4/5에서 서버를 만드는 것은 튜브 TV를 보는 것과 같습니다 (작동하는 것 같지만 느낌은 같지 않습니다. 따라서 별도의 서버를 작성하고이를 사용하여 mql 프로그램간에 데이터를 전송하는 데 사용하는 것이 좋습니다.
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.
또한 쓰기 틱, 읽기 틱... 등의 메서드를 호출 할 때 액세스 위반 오류가 발생했습니다. 첨부된 수정된 CNamedPipes 파일을 찾아보세요.
또한 CNamedPipe 클래스에WriteDouble 메서드를 추가했습니다 :
참고: 클라이언트 측(예: 다른 메타트레이더 터미널)에서 읽기/쓰기를 하려면 표준 MQL5 파일파이프 라이브러리를 사용했습니다. 사용 방법은 여기에서 예제를 다운로드할 수 있습니다:
https://www.mql5.com/ko/articles/503