[英]MetaTrader 4 on Mac OS X combined with C++ or R
I am on a Mac (OS X 10.9.1) and looking to combine Metatrader 4
with a C++
data processing program of my own. 我在Mac(OS X 10.9.1)上,希望将Metatrader 4
与我自己的C++
数据处理程序结合起来。 This program will take market information from my Metatrader
and send back signals for specific instruments. 该程序将从我的Metatrader
获取市场信息,并发回特定仪器的信号。
I have tested the C++
program on its own, by listening to data on a socket published by a Python program. 我通过监听Python程序发布的套接字上的数据,自己测试了C++
程序。 The easiest for me would be to publish and listen to the socket from Metatrader
(is this possible?) using mql4
. 对我来说最简单的方法是使用mql4
从Metatrader
发布并监听套接字(这可能吗?)。
Alternatively, I am willing to send data and poll for signals, using a DLL
-like interface. 或者,我愿意使用类似DLL
的接口发送数据和轮询信号。 DLL
s are windows specific, so how can one set something similar (eg .dylib
) up on a Mac and is that even possible to use from Metatrader
? DLL
是特定于Windows的,那么如何在Mac上设置类似的东西(例如.dylib
),甚至可以在Metatrader
使用? If not possible, is it possible to use a windows DLL
through a wineskin
? 如果不可能,是否可以通过wineskin
使用Windows DLL
?
If anyone has a better suggestion, I am definitely open to changing plans (I also have the code in R
and Java
). 如果有人有更好的建议,我肯定愿意改变计划(我也有R
和Java
的代码)。
Designing a serious trading infrastructure, your needs would be well if not best met by a neutral messaging layer. 设计一个严肃的交易基础设施,即使不是最好的中立消息传递层,您的需求也会很好。 This alowed me to operate a cluster-based computing communicating massively parallel with a crowd of MT4 nodes. 这使我能够操作基于群集的计算与大量MT4节点大规模并行通信。
Yes, MT4 can not only publish a low-level < socket > it can belong to a more complex " Scaleable Formal Cummunication Framework " in a very intelligent manner. 是的,MT4不仅可以以非常智能的方式发布它可以属于更复杂的“ 可扩展的正式通信框架 ”的低级< socket >。
Do you wish to have a CLI-interface to command your MT4 nodes -- selectively, with a syntax & grammar of CLI-instructions ( not speaking about test-automation et al ...)? 您是否希望有一个CLI界面来命令您的MT4节点 - 有选择地,使用CLI指令的语法和语法(不是关于测试自动化等等)?
Do you wish to have a central < syslog > daemon to off-load HFT-traffic loaded MT4 node(s) and automate + administer scripted monitoring & maintenance tasks? 您是否希望拥有一个中央< syslog >守护程序来卸载加载HFT流量的MT4节点并自动执行+管理脚本监控和维护任务?
Do you wish to have an external GPU-computing engine/cluster to communicate in a Client/Server manner with MT4 EA on a per-tickEvent basis? 您是否希望有一个外部GPU计算引擎/集群以基于每个tickEvent的MT4 EA以客户端/服务器方式进行通信?
ZeroMQ and/or nanomsg frameworks will allow you to design and develop many-to-many ( node-network-wise ) & any-to-any ( implementation language-wise ) systems. ZeroMQ和/或nanomsg框架将允许您设计和开发多对多(节点网络)和任意到任何(实现语言)系统。
MT4/MQL4 has a direct smart wrapper for ZeroMQ >>> thanks to Austen Conrad on GitHub MQL4ZMQ MT4 / MQL4有一个ZeroMQ的直接智能包装>>>感谢Austen Conrad在GitHub上的MQL4ZMQ
ZeroMQ >>> thanks to it's great team has many language bindings - C/C++, Python, Java , R , Erlang, .. ZeroMQ >>>多亏了它的伟大团队有很多语言绑定--C / C ++,Python, Java , R ,Erlang,..
so your Project may start on rock solid grounds & independent of any particular architecture gridlocks ( DLL moving sands et al ) 因此,您的项目可以从岩石坚固的地面开始,并且独立于任何特定的建筑障碍(DLL移动砂岩等)
Engineering built-ins save you a lot of time and efforts and avoid re-inventing wheel 工程内置插件可为您节省大量时间和精力,并避免重新发明轮子
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.