本文介绍了我可以用比MQL4其他语言的MetaTrader4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个迁移C#的市场战略的MetaTrader的任务。




  1. 有什么办法来自动那份工作吗? (例如,是否可以解析C#到它的AST,然后进行翻译?)


  2. 是否MetaTrader的以任何方式接受其他语言?



解决方案

对待这项任务自下而上 - 建筑明智



是的,你可以简化的麻烦,让MT4成为一个节点,即立即连接对等网络到您的电流 C#的市场策略。



这alowed我操作的基于集群的计算通信大规模使用的 MT4 节点。



MT4可以成为 anEventFEED -er节点通过一个更复杂的 可扩展的正式Cummunication框架中一个非常聪明的方式的。



你希望有一个 CLI界面指挥你的MT4节点(S) - 一个作为 anEventFEED -er,另一个为 anXtoACTOR 节点 - 选择性,具有语法和放大器; ?的CLI-指令语法(而不是谈论测试自动化等...)



你希望有一个中央< 日志>守护程序来卸载HFT流量负载MT4节点(S)和自动化管理+脚本监控和放大器;维护任务?



你希望有一个外部的 GPU计算引擎/群集在MT4的EA上的客户机/服务器方式进行通信每个tickEvent依据?



ZeroMQ 和/或 nanomsg 框架将允许你设计和开发多对一一对多(节点网络逐)及任意到任意(实现语言明智)系统。



MT4 / MQL4有ZeroMQ直接的智能包装>>> GitHub上感谢奥斯汀康拉德的 MQL4ZMQ



ZeroMQ >>>由于这是伟大的队伍,有语言绑定 - C / C ++,Python和Java中,R,甚至二郎神,...



所以,您的项目可能在坚如磐石的理由和放大器迅速启动;独立于任何特定的架构卡壳的(DLL流沙等)



工程内置插件为您节省大量的时间和精力,避免重新发明轮子


I have a task of migrating a C# market strategy to MetaTrader.

  1. Is there any way to automate that job? (For example, is it possible to parse C# into it's AST, then make the translation?)

  2. Does MetaTrader accept other languages by any means?

解决方案

Approach the task Bottom-Up -- Architecture-wise

Yes, you can simplify the trouble and make MT4 become a Node, which is immediately connected peer-to-peer to your current C# Market Strategy.

This alowed me to operate a cluster-based computing communicating massively parallel with a crowd of MT4 nodes.

MT4 can become anEventFEED-er Node via a more complex "Scaleable Formal Cummunication Framework" in a very intelligent manner.

Do you wish to have a CLI-interface to command your MT4 node(s) -- one as anEventFEED-er, another as anXtoACTOR Node -- selectively, with a syntax & grammar of CLI-instructions ( not speaking about test-automation et al ...)?

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?

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?

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.

MT4/MQL4 has a direct smart wrapper for ZeroMQ >>> thanks to Austen Conrad on GitHub MQL4ZMQ

ZeroMQ >>> thanks to it's great team has many language bindings - C/C++, Python, Java, R, even Erlang, ...

So your Project may jump start on rock solid grounds & independent of any particular architecture gridlocks ( DLL moving sands et al )

Engineering built-ins save you a lot of time and efforts and avoid re-inventing wheel

这篇关于我可以用比MQL4其他语言的MetaTrader4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 10:47