简体   繁体   English

是否可以在 Metatrader 之外运行 MQL4 代码?

[英]Is it possible to run MQL4 code outside of Metatrader?

I have an indicator that is written in MQL4.我有一个用 MQL4 编写的指标。 I'm looking to pass data to it and run it outside of MT4 and, for example, write it to a file.我希望将数据传递给它并在 MT4 之外运行它,例如,将其写入文件。 So that I can process the data in Python.这样我就可以在 Python 中处理数据。 Is it possible and how?有可能吗?

There is no way to run MQL4 program outside of MT4. 无法在MT4之外运行MQL4程序。 One can modify the code of the indicator such way that it writes indicator values to some file using FileWrite library function and feed that file to Python script. 可以修改指示器的代码,使其使用FileWrite库函数将指示器值写入某个文件,然后将该文件输入Python脚本。

You can make yourself a simple API that you can run across http and pull the values off GET the URL string and read the values in python.你可以让自己成为一个简单的 API,你可以在 http 上运行并从 GET URL 字符串中提取值并在 python 中读取值。

https://github.com/sergeylukin/mql4-http https://github.com/sergeylukin/mql4-http

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM