从零写出你自己的 MT5 EA

一门用 MQL5 编写 MT5 EA 的课程,从第一个 OnTick 讲到能自己管理风险、自己上报成绩的系统。每一课的结尾都对应一个真正在跑的 EA,代码和回测全部公开。

这门课怎么学
  • 按顺序读。每一课都建立在上一课的基础上。
  • 进入下一课之前,先把这一课的代码编译并跑一遍——只看 MQL5 学不到什么。
  • 如果某一课的结尾用到我们的 EA,它的实盘成绩和回测都在一步之内,包括没通过的那些。
  1. 01
    Your First EA Places No Trades

    Your first Expert Advisor should read the market and publish what it thinks — nothing more. Build the signal-only EA that fills our signals page, from its real source, and learn why every read uses the last closed bar.

  2. 02
    One File Decides, Another File Acts

    Where you draw the line between deciding and trading is the most consequential decision in an EA. A strategy module you can call with plain numbers, a verdict that explains itself — and the failed strategy that proved it was worth it.