MQL5 EA — auto-trading w MT5

Ostrzeżenie · YMYL Ten artykuł ma charakter wyłącznie edukacyjny i nie stanowi rekomendacji inwestycyjnej. Handel na rynku Forex wiąże się z wysokim ryzykiem utraty kapitału — według ESMA 74–89% rachunków detalicznych traci pieniądze.

Marek kupił EA „GoldenScalper Pro" za €500. Backtest pokazał +2 000% w 5 lat. Live trading: -€8 000 w 3 miesiące. Curve-fit fail. Tu pokazujemy co to MQL5 EA, jak validować, kiedy używać, ryzyka.

Czym jest MQL5 EA

MQL5 EA (Expert Advisor) = auto-trading robot napisany w MQL5 language. C-like syntax. Działa na MetaTrader 5 platform.

Functions:

  • Monitor markets 24/5
  • Identify setups according to coded rules
  • Execute trades automatically
  • Manage positions (SL, TP, trailing)
  • Exit per rules

Use cases dla retail:

  1. 24/5 trading bez human monitor
  2. Mechanical execution (eliminate emotions)
  3. Scalping opportunities (sub-second decisions)
  4. Backtesting strategies historical data

Free vs paid EA

Free vs paid EA options
MQL5 CodebaseFree community EAs, basic strategies
Built-in MT5 samplesMACD, Moving Average examples (free)
GitHub repositoriesOpen-source MQL5 projects
MQL5 Market30k+ paid EAs ($30-2000)
Reality90% paid EA = unprofitable

Czemu 90% paid EA fail

3 reasons:

  1. Curve-fitting: backtest na historical data optymalizowany. Looks great (1000%+ returns). Live: -50% w 3 mies. Different market regime = fail.
  2. Ponzi scams: sellers pump returns artificially. „Track record" sfabrykowany. Wpłaty od buyers fund pump, eventual blow.
  3. Martingale-based: high win rate (90%+) ale -100% w drawdown. Mathematical inevitability — eventually blow.

Marek z otwarcia: kupił curve-fit EA. Backtest +2000%, live -€8 000. Klasyczny error. Best avoid paid EAs jako beginner.

Validation 3-stage workflow

Jeśli używać EA, mandatory validation:

  1. Backtest 5+ years w MT5 Strategy Tester
  2. Forward test 3 months demo (live conditions, no money)
  3. Live small €500-1000 6 months
Validation criteria
Backtest profit factor> 1.5 (potential edge)
Backtest max drawdown< 30% (manageable)
Forward test drift< 30% from backtest (no curve-fit)
Live small period6 months profitable consistent
Skip stages= guaranteed loss

VPS — krytyczne dla EA

VPS (Virtual Private Server) = mały server 24/5 dla EA running.

Reasons:

  • EA wymaga 24/5 uptime
  • Internet outage = missed signals
  • Latency reduction (1-50 ms) better execution
  • Power outages don\'t affect

Cost: €15-50/mo. Free dla €5k+ deposit (XTB, IC Markets). Top providers: ForexVPS, BeeksFX, NYC Servers.

„EA bez VPS = unreliable. EA bez validation = guaranteed loss. EA bez understanding = scam target."

Kiedy EA warto

3 scenarios:

  1. Mechanical strategy: rules clearly defined, no judgment. EA execute perfekcyjnie.
  2. Scalping: sub-second decisions niemożliwe dla human. EA capable.
  3. Time-zone disadvantage: Asian session moves wymagają monitor 02:00-08:00 CET. EA monitors gdy ty śpisz.

3 scenarios kiedy EA NIE warto:

  • Discretionary strategy (judgment-based, hard to code)
  • Counter-trend trading (subjective entries)
  • News trading (interpretation needed)

Coding own EA

Best path: code own simple EA. Why:

  • Understanding code = better trust
  • Customize do twojej strategy
  • Free vs €500 purchase
  • Learn MQL5 = transferable skill

Time investment: 1-3 miesiące learning MQL5. Resources: MQL5.com tutorials free, books $20-30. After learning: code basic EA w weekend, advanced EA w 1-2 miesiące.

Wnioski

MQL5 EA = auto-trading robot dla MT5. Use cases: 24/5 trading, mechanical execution, scalping, backtesting. 90% paid EA = unprofitable — curve-fit, scams, Martingale.

Best practice: 3-stage validation (backtest, forward test, live small). VPS recommended dla 24/5. Marek z otwarcia: curve-fit fail -€8k. Klasyczny error.

Best path: code own simple EA. Learn MQL5 (1-3 mo), customize, no scam risk. Free Codebase EAs dla learning baseline.

Match EA do strategy: mechanical/scalping/Asian-session = OK. Discretionary/counter-trend/news = manual. EA nie zastąpi strategy edge — amplifies edge.

Powiązane: Expert Advisors podstawy overview, MT5 zalety platform, execution time latency importance.

Głębsza analiza — MQL5 EA deep dive na ForexMechanics (~30 min, coding tutorials).

Jarosław Wasiński
O autorze

Jarosław Wasiński

Redaktor naczelny MyBank.pl · Analityk finansowy i rynkowy

Niezależny analityk i praktyk z ponad 20-letnim doświadczeniem w sektorze finansowym. Twórca i redaktor naczelny portalu MyBank.pl, działającego od 2004 roku. Analiza fundamentalna rynków walutowych i makroekonomicznych od 2007 roku.

Źródła i bibliografia

  1. MQL5 MetaTrader 5 documentation · official www.mql5.com ↗
  2. MetaQuotes MT5 Strategy Tester · backtesting tool www.metatrader5.com ↗
  3. MQL5 Community EA marketplace · codebase www.mql5.com ↗

Najczęstsze pytania

Co to MQL5 EA?

MQL5 EA (Expert Advisor) = auto-trading robot napisany w MQL5 language (C-like syntax) działający na MetaTrader 5 platform. Functions: monitor markets, identify setups according to coded rules, execute trades, manage positions, exit. Use cases: 24/5 trading bez human monitor, mechanical execution (eliminate emotions), scalping opportunities (sub-second decisions), backtesting strategies historical data. Marketplace: MQL5.com Market 30 000+ paid EAs (prices €30-2000), Codebase free community projects. MQL4 vs MQL5: MQL4 (MT4) older, simpler. MQL5 (MT5) newer, more powerful. New development w MQL5.

Free vs paid EA?

Free options: (1) MQL5 Codebase — community shared EA (basic strategies). (2) Built-in MT5 examples (MACD Sample, Moving Average Sample). (3) GitHub open-source repositories. Paid options: MQL5.com Market — 30 000+ EA, $30-2000. Reality check: 90% paid EA są unprofitable. Powodów: (a) curve-fitted dla historical data (backtests look great, live performance fail), (b) ponzi scams (sellers pump returns artificially), (c) Martingale-based (high win rate, blow account during drawdown). Best practice: avoid paid EA dla beginners. Learn MQL5 self, code own simple EA. Free Codebase EAs dla learning.

Backtesting workflow?

3-stage validation: (1) Backtest 5+ years data w MT5 Strategy Tester. Use „Every tick" mode (most accurate). Visualize trades on chart. Check: total return, max drawdown, profit factor, win rate. Profit factor > 1.5 = potential edge. (2) Forward test 3 months demo: live market conditions, no money risk. Compare wyniki z backtest. Drift > 30% = curve-fit, reject. (3) Live small €500-1000 account: real money emotions, slippage, spread differences. 6 months. Avoid: skip stages, big deposit z untested EA, paid EA bez verification. Most retail buy EA, deposit €10k, blow account w 1-2 miesiące. Math nie wybacza shortcut'ów.

VPS dla EA?

VPS (Virtual Private Server) = mały server hostowany blisko broker servers, działający 24/5 bez przerwy. Reasons: (1) EA wymaga 24/5 uptime — twój computer zamknięty/sleep = EA nie działa. (2) Internet outage = EA disconnected, missed signals. (3) Latency reduction (1-50 ms) — better execution. (4) Power outages don't affect VPS. Cost: €15-50/miesiąc (ForexVPS, BeeksFX, NYC Servers). Niektóre brokers offer free VPS dla €5k+ deposit. Setup: rent VPS, install MT5, connect broker, run EA, log out — keeps running. Best dla: scalping EAs (latency-sensitive), 24/5 strategies. Position trading EAs less critical.

Pogłębij temat · pełny przewodnik