跳至主要內容

Exness 返還 100% 的 IB 佣金

款項進入您的帳戶前,不會被扣除任何金額

免費 EA 與指標

XM 返還 90%,最低入金 $5

Adjustable MA Forex Expert Advisor

A simple, customizable two-moving-average EA for MT5. Designed as a study and backtest template rather than a live trading system.

Expert AdvisorMT5Two-MA crossoverOpen sourceStudy & backtest

Adjustable MA is a compact, open-source expert advisor that implements a two-moving-average crossover: it opens on a cross and closes on the opposite cross. The package at AutoFXRebate includes a ready MT5 build and a PDF install guide. MT4 and MT5 source code is available if you want to inspect or modify it.

All main inputs are exposed so you can set periods, MA type, a minimum difference filter, stop loss, take profit, trailing stop and slippage. The EA supports a fixed lot or a simple margin-based money management mode. It is intended for demo and learning use rather than live trading.

Run on demo first. The EA is meant for study and backtesting; keep it on a demo account while you test settings and measure drawdown before any live use.

規格

Tool type
Two-MA crossover expert advisor, intended as a study and backtest template
Platform
MT5 (package includes an MT5 build)
Terms
Free, open source (Apache 2.0)
Strategy
Opens on a moving average cross, closes on the opposite cross; always one position open and flips on each cross
Main inputs
Period_1 (default 20), Period_2 (default 22), MA_Method (EMA), MinDiff (default 3), Slippage (3)
Trade management
StopLoss, TakeProfit, TrailingStop in pips (0 disables); EA will add SL/TP after open on ECN brokers
Lot sizing
Manual Lots (default 0.1) or UseMM to size from free margin (LotsPer10000)
Original list price
Free
At AutoFXRebate
Free download, PDF install guide and Telegram support

How the crossover runs here

The EA monitors two moving averages and flips the position whenever they cross. MinDiff requires a minimum gap between the lines before a cross counts, which reduces whipsaw signals when the averages run close to each other.

On ECN brokers that do not allow SL/TP to be attached on order open, the EA opens the trade and then modifies it to add stop loss and take profit automatically.

What you can change and why it matters

Every element of the MA crossover can be adjusted: the two periods, the MA calculation method, the minimum difference before a cross triggers and the money management mode. Use the Strategy Tester to produce a baseline, then change one value at a time and compare results.

The EA is intentionally simple so you can use it as a teaching tool or a starting point for your own ideas. The open source code makes inspection and modification straightforward.

Who this suits

Traders who want a transparent EA to learn how an automated strategy is built and to test MA settings quickly. It is not presented as a ready live strategy; consider other AutoFXRebate entries if you need a production-ready EA.

If you prefer to tweak code or need a clean template for backtests across many pairs and timeframes, this provides a minimal starting point.

功能

  • Classic two-MA crossover logic that flips position on every cross
  • Adjustable MA periods, MA type and a MinDiff filter against tight crosses
  • Optional StopLoss, TakeProfit and TrailingStop in pips (0 disables)
  • Fixed lots or simple margin-based money management (UseMM)
  • ECN compatible: opens order then attaches SL/TP automatically
  • Open source under Apache 2.0; MT4 and MT5 sources available

績效

A backtest on EURUSD M5 with default inputs, not independently verified, shows about 12.2% growth over six years, roughly 12.6% maximum drawdown and 56.41% winners across 647 trades. Use those numbers only as a baseline to compare your own strategy variations and always validate changes on out-of-sample data while running the EA on demo.

優點

  • Free and open source; you can read and modify the code
  • Simple, exposed inputs make it easy to learn and to backtest systematically
  • No martingale or grid; position sizing is explicit
  • Package at AutoFXRebate includes PDF install instructions and Telegram support

缺點

  • Not profitable; recommended for demo use only
  • A plain two-MA crossover offers limited edge in modern markets without further filters
  • Backtest results are a single baseline and do not substitute for extensive forward testing
  • No automatic tuning or advanced money management built in

安裝設定

  1. Download the package from AutoFXRebate and follow the included PDF guide for MT5 installation.
  2. Copy the EA file into your MQL5/Experts folder, then restart MetaTrader 5.
  3. Enable Algo Trading (AutoTrading) in MT5 so the EA can place trades.
  4. Attach the EA to an M5 EURUSD chart with default inputs, run the Strategy Tester to create a baseline, and record growth, max drawdown and number of trades.
  5. Change one input at a time, such as Period_1, Period_2, MinDiff or SL/TP, and rerun tests on other pairs and out-of-sample data.
  6. Keep the EA on a demo account while you tune. If you open an account through AutoFXRebate, the site provides per-lot backcom; message our Telegram if you need help installing.

總評

Adjustable MA is best treated as a teaching and backtesting template rather than a plug-and-play live EA. Its transparency and open source code make it useful if you want to understand a basic crossover or use it as a starting point for development.

Start on demo, follow the setup steps above, treat the backtest figures as a baseline to improve on, and consider live use only after long demo validation. Download the MT5 build for free from AutoFXRebate and contact our Telegram group if you need installation help.

風險聲明

外匯與差價合約(CFD)交易涉及重大風險,未必適合所有投資人。指標、EA(自動交易程式)及交易工具均不保證獲利。請務必做好適當的風險管理。AutoFXRebate 並未開發這些工具,也不為其宣稱的任何結果背書;在投入資金承擔風險之前,請先在模擬帳戶上測試。

免費取得 Adjustable MA Forex Expert Advisor

檔案放在我們的 Telegram 頻道,並附有安裝指南。無需填寫任何資料。

開啟 Telegram
意見回饋

您的帳戶在哪家經紀商?

各經紀商的步驟不同,因此我們會直接帶您前往對應的步驟。