Saturday, March 28, 2009

MetaTrader (MT4) 自动系统交易

MetaTrader (MT4) 有可能是历史最悠久和发展得最全面的的外汇看图及系统交易软件平台。MT4 现今的经营模式是伙拍中小型的外汇经纪行去推广自己的平台,网上一般昵称用 MT4 的经纪行做 MetaTrader brokers. 换句话说,这些经纪行很多时候都是缺乏实力开发一套自己的交易下单软件,而租用 MetaTrader 去给客户做下单用。MetaTrader 的 MQL4 语言是非常受欢迎的交易系统语言。而该语言的语法特征是像 C\Java 。很多人声称该语言让有编程背景的人会容易上路;但是,相对没有编程经验的人来说,很多人都宁可转向去学 EasyLanguage ( Tradestation.com 的编程语言 ) 去了。

一般系统交易开发者学习系统交易历程

  • 开始入门可能是用 TradeStation.com 的 EasyLanguage,感觉容易上手但是最后发觉缺乏可控性,更比较容易发现无法 debug 的 bug;
  • 系统交易者希望更深化控制交易逻辑,发现 EasyLanguage 缺乏弹性的时候,会发现 MetaTrader 的 MQL4 更得心应手;
  • 对于不懂得编程的人,他们会改为应用费用比较高昂的 NeoTicker;
  • 最尖端的系统交易方案,大概就是系统交易者直连经纪行接口,用 Java/C/C++ 写的、富有弹性的语言来控制交易逻辑和下单。
有程序开发经验的人可以先试用 MT4,熟悉一下技术分析 (Technical Analysis) 的一些基础概念,在 MT4 上面尝试造几个 Expert Advisors (EA) — 能在 MT4 运行的系统交易代码。MT4 文档丰富,坊间论坛同业好友的技术支持也多。

这里下载 MetaTrader 4 软件 (是伙拍一家叫做 Alpari 的英国经纪行的) 帐号是可以下载后在软件平台上面免费申请获得的,该软件有中英文界面选择。( 701785 / myj5olh )

这里下载颇为久远的历史数据
http://www.alpari-idc.com/en/dc/databank.html

关于 MQL4 语言的简单介绍
http://www.metaquotes.net/experts/mql4/

MQL4 入门书
http://book.mql4.com/

MQL4 文档
http://docs.mql4.com/

MQL4 程序代码范例分享
http://codebase.mql4.com/

MQL4 开发论坛
http://codebase.mql4.com/

过去几年 MQL4 都有举行比赛,得奖了的,都是这个社区混了一段时间的人,或者赢得奖后,就把代码封存,不开源,或者离开这个社区了。挖到金就走人。呵呵。这里免费出来看的代码,纯属编程范例的观赏,不可能有赚钱价值的。

这一篇是论述自动交易软件的自欺欺人的行径, 以后做系统开发之前, 应该先阅读.
http://articles.mql4.com/cn/570 (
这里有一个 MetaTrader 翻译成中文的文章列表 )

MT4编程及自动交易系统完全手册 - 中文版 ( 论坛登入: usalchemist 密码: freetone12 )

另外一份教程下载

把 ex4 转成 MQL4 的交易逻辑反向工程
http://www.scriptlance.com/projects/1217266321.shtml
有一位计算机研究生招揽交易逻辑
http://forum.mql4.com/12736

3 comments:

Anonymous said...

Hi I am so grateful I found your site, I really found you by error,
while I was browsing on Yahoo for something else, Anyways I am here now and would just like to say thank you for a fantastic post and a all round
entertaining blog (I also love the theme/design), I don't have time to browse it all at the moment but I have book-marked it and also added in your RSS feeds, so when I have time I will be back to read much more, Please do keep up the fantastic work.

Also visit my webpage ... what does a root Canal cost

Anonymous said...

Post writing is also a fun, if you know afterward you can write if not it is
complex to write.

Look at my weblog :: root Canal Treatment

Anonymous said...

Unquеstionably bеlіеνe that which уou said.
Your fаvorite juѕtification аρρeаrеd tо be
on the inteгnеt the eаsіest thіng tо be аwarе оf.
I ѕаy to уоu, І ԁefinіtely get
аnnoyеd while peоplе think
about worгies that they just don't know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side-effects , people can take a signal. Will probably be back to get more. Thanks

Have a look at my webpage link building service