MQL5 MetaTrader용 Expert Advisor의 소스 코드 5 - 2

icon

Expert Advisor는 가격 차트를 분석하고 기본 규칙에 따라 자동으로 거래합니다. 여기서 다양한 문제를 해결하는 MQL5 소스 코드를 찾을 수 있습니다. 이동 평균 교차점과 복잡한 시그널 생성 알고리즘 및 거래 오류에 대한 보호와 관련된 복잡한 교차점을 기준으로 간단한 Expert Advisor 모두를 선택할 수 있습니다.

MetaTrader 5에서 제공되는 Expert Advisor를 다운로드하여 시작할 수 있습니다. 거래용 로봇을 사용하기 전에 Strategy Tester에서 테스트하고 최적화하는 것이 좋습니다. 또한 Expert Advisors 라이브러리는 MetaTrader 5 플랫폼과 MetaEditor 개발 환경에서 직접 사용할 수 있습니다.

코드를 제출하세요

Free educational EA — a single-position trend-following EMA crossover system for XAUUSD M30, released as open source for beginners to study trade ownership guards, preflight order validation, risk-based lot sizing, and server-time session filtering. This code demonstrates how a strategy - identifies and manages only its own positions and orders through MagicNumber and comment tags, - wraps CTrade with an OrderCheck preflight that blocks invalid or margin-breaking requests, - sizes each trade from a fixed stop-loss and risk percentage, - and restricts entries to a configurable broker session window with a daily close-all — all evaluated on completed bars only, so signals never repaint.

계정 보호 기능이 내장된 ‘개장 범위 돌파(Opening Range Breakout)’ EA 템플릿입니다. 세션 개장 후 첫 N분 동안의 고점과 저점을 표시하고, 해당 범위 상단과 하단에 OCO 스톱 주문을 설정합니다. 위험 기반 포지션 크기 조정, 일일 손실 한도, 최대 드로다운 한도, ATR 범위 필터, 거래 방향 필터, 그리고 익일 이월 포지션에 대한 보호 기능이 포함되어 있습니다. 모든 세션 시간은 사용자 정의가 가능한 입력값입니다. 본 템플릿은 교육용이며, 수익을 보장하는 시스템이 아닙니다. 실거래에 사용하기 전에 반드시 데모 계좌에서 테스트하십시오.

See the real leverage of every Market Watch symbol, including floating margin tiers, with swap, commission and live spread in one panel.

Watches the whole account and closes everything before the daily loss or max drawdown limit is breached, then keeps the account flat until the block ends. Does not trade.

Expert Advisor template that shows safe execution practices: closed-bar signals once per bar, no duplicate entries after an MT5 or VPS restart, spread and stop-level checks, normalised volume and a log line for every decision.

Trailing stop and breakeven manager for Gold (XAUUSD), forex and any symbol: moves the stop to breakeven with an offset, then trails it in points or ATR multiples on manual trades and on any EA, filtered by magic and symbol. Open source code.

WaveMaster 오실로스코프용 신호 기반 자동화. WaveMaster 오실로스코프용 자동 실행 엔진입니다. 신호 버퍼를 실시간으로 읽어들입니다. 포괄적인 리스크 관리, 트레일링, 손익분기점 기능이 내장되어 있습니다.

터미널에 실제로 저장된 바(bar) 내역을 감사합니다. 이 내역은 모든 백테스트와 지표가 참조하는 데이터입니다. 심볼당 6가지 항목을 점검합니다: 비정상적인 OHLC 값, 바 시간 오류, 브로커의 세션 테이블에 호가 제공 중으로 표시된 시간대에 바가 누락된 경우, 빈 바 및 평평한 바, 브로커의 M1 시리즈와 일치하지 않는 바, 스프레드 타당성 등입니다. 가장 중요한 지표는 세션 커버리지이며, 주로 감사 대상에 주말이 얼마나 포함되었는지를 측정하는 그리드 비율이 아닙니다. 모든 검사 결과는 바 시간과 함께 CSV 파일로 저장되며, 감사된 바 데이터와 세션 테이블을 추출할 수 있으므로 이 도구 이외의 다른 방법으로 전체 보고서를 재검토할 수 있습니다.

Utility Expert Advisor that watches the account equity against two limits: a maximum daily loss and a maximum total drawdown. Each limit can be set as a percentage or as a money amount, and the daily loss can be measured from the balance or from the equity at the start of the day, as many prop firms do. When a limit is touched the EA closes all positions, deletes all pending orders and keeps the account locked until the next trading day: anything opened in the meantime, by another EA or by hand, is closed again. Optional early warning at a percentage of the limit (Alert and push), a small on-chart panel, a magic number / symbol filter, a configurable day-reset time and retries when a close fails. The state is stored in terminal global variables, so a restart does not unlock the account. Works on hedging and netting accounts. No DLLs, no web requests. It never opens trades (only the optional Strategy Tester demo mode does).

Exports your closed trade history to a CSV file with one row per position (not per deal), ready for Excel, Python or any journal. Each row has ticket, symbol, magic number, comment, side, volume, entry and exit time and price, duration, initial SL and TP when known, gross profit, commission, swap, net result and R multiple. It also calculates MFE and MAE (best and worst price reached while the trade was open, in points and in money) from the M1 bars between entry and exit, plus the entry session (Asia, London, New York) and weekday. Filter by magic number (lists and ranges) and symbol (wildcards), pick the period, the column separator (; or ,) and the decimal mark, and save to MQL5\Files or the common folder. Tested on hedging accounts and in the Strategy Tester (netting logic included; feedback welcome), where the file is written when the test ends. Read-only: it never opens, modifies or closes a trade. No DLLs, no web requests.

XAUUSD grid EA that opens a basket when RSI leaves oversold or overbought on a closed candle, adds levels with a lot multiplier and closes the basket at a money or points target. Open source code.

매직 넘버를 기준으로 동일한 헤징 계좌에서 다른 EA가 개설, 수정 및 청산한 거래를 미러링합니다. 기본적으로 거래 방향(매수↔매도, SL↔TP)이 반전되므로, 실제 스프레드, 슬리피지 및 체결 조건을 반영하여 전략의 반대 방향에 대한 포워드 테스트를 수행할 수 있습니다.

올슨 그룹의 알파 엔진(Alpha Engine)을 포팅한 버전으로, 8명의 리미트 오더 에이전트가 헤징 계좌에서 내재 시간에 따른 방향 전환을 거래합니다. 이들은 가격이 과도하게 움직일 때 포지션을 추가하고, 반전 시 이익이 발생하면 포지션을 축소합니다.

Manages positions that are already open: it adds a missing SL/TP, moves the stop to break even, trails it, caps the position count and applies daily equity limits. It never opens trades.

Close all positions panel for MT5: seven buttons to close all, buys, sells, winners, losers, the chart symbol or delete pending orders, on Gold (XAUUSD), forex or any symbol, for manual trades and any EA. Open source code.

주장 자체를 그대로 믿기보다는 지표가 재그리기(repaint)되는지 여부를 측정합니다. 이미 마감된 봉에 대해 사용자 정의 지표의 버퍼를 다시 읽어들이고, 변경되거나 나타나거나 사라지는 모든 값을 집계하며, 이러한 현상이 여전히 발생하는 가장 먼 과거 시점을 파악합니다. 차트 패널의 각 버퍼에 대한 판정 결과가 표시되며, 모든 이벤트는 CSV 파일에 기록됩니다.

Push notifications when the connection drops, algo trading is switched off, an EA leaves its chart, the account changes, a position has no stop, equity or margin hit a limit - plus a daily heartbeat.

Closes all trades when your daily loss reaches your limit.

ZoneUS30은 가격 상승 후 매도 기회에 초점을 맞춘 간단한 US30 전문가 자문가(EA)입니다. 이 전략은 평균 회귀 개념과 캐리 트레이드 아이디어를 결합한 것으로, 숏 포지션에 양의 오버나이트 스왑이 발생할 때 EA는 가격 조정과 장기 포지션 보유 모두에서 이익을 얻을 수 있습니다. US30을 위해 설계되었으며, 실험 및 교육용으로 사용될 것을 권장합니다. 역추세 거래는 특히 큰 로트 규모에서 상당한 위험을 수반합니다.

EURUSD EA that trades both directions: when the Awesome Oscillator turns against a weighted moving average filter, it places a stop order at the daily low or high of three days ago, with an ATR stop. Self-contained, no custom indicators. Backtest on EURUSD H1, October 2021 to October 2026: +209% on a 1,000 USD deposit with a fixed 20 USD risk per trade, 15.55% maximum equity drawdown.

간단한 데모용 Expert Advisor: EMA 고속/저속 교차 진입(마감된 봉만 평가, 리페인팅 없음), ATR 기반 손절매 및 익절, 스프레드 필터, 헤징 및 네팅 계좌 모두에서 작동하는 포지션 관리 기능을 포함합니다. 호환성 테스트를 위한 Python 참조 구현본이 포함되어 있습니다. 이 예제는 실제 결과물을 보여주기 위한 것이며, 거래 권장 사항이 아닙니다. 첨부된 자산 곡선은 시뮬레이션 데이터로 생성된 것으로, 이 방법의 원리를 보여주기 위한 것이지 수익 우위를 입증하기 위한 것이 아닙니다.

RSI 고갈 신호, ATR 기반 청산 및 변동성 조정 스프레드 필터링을 기반으로 한 MetaTrader 5 전략 테스터용 오픈소스 EURUSD 전문가 자문가입니다.

금(Gold)을 대상으로 한 터틀(Turtle) 스타일의 브레이크아웃 EA입니다. 상승 추세에서 H4 봉이 20봉 고점 위로 마감될 때 매수하며, 스톱은 2 ATR, 목표 수익은 2R로 설정됩니다. 2020년 1월부터 2026년 9월까지 XAUUSD를 대상으로 백테스트한 결과: 1% 리스크로 10,000을 투자했을 때 +9,029.72의 수익을 기록했으며, 수익 계수는 1.77, 최대 손실률은 11.38%, 7년 중 6년 동안 수익을 냈습니다.

다중 시간대 편향, ATR 손절/익절 제안, 추적 손절 기능, 원클릭 매수/매도/전체 청산 기능을 갖춘 차트 내 드래그 가능한 수동 거래 패널입니다.

프로프 펌 계좌를 위한 계좌 단위 보호 기능입니다. 계좌 내 모든 포지션을 모니터링하며, 일일 또는 최대 손실 한도에 도달하면 모든 포지션을 청산하고, 포지션당 위험 노출 금액을 제한하며, 스탑 주문이 설정되지 않은 포지션을 청산하고, 시장 변동성이 큰 뉴스가 발표될 때 포지션을 정리할 수 있습니다.

슈퍼트렌드의 방향성과 ADX 및 DI 확인 신호를 결합한 MetaTrader 5용 추세 추종 전문가 자문가(EA)입니다. ATR 기반의 손절매를 사용하며, 거래당 최대 0.5%의 순자산 위험을 감수합니다.

Tick Scalper Helper is a manual trading utility for traders who work on very short time frames and want to see every price change.

A Supertrend scalping EA with 14 switchable filters and a self-measuring panel that shows the actual win rate next to the win rate needed to break even after real spread, so you can see whether a setting has an edge or only a high percentage.

Partial close expert advisor for MetaTrader 5: closes a percent of the position at TP1, TP2, TP3, TP4 and TP5, moves the stop loss to breakeven and trails it. Works on manual trades and on positions of any EA, on any symbol, Gold (XAUUSD) included. Open source code.

Position manager for MT5 that closes the best winner together with the worst loser when their combined result reaches your minimum. Basket take profit and stop loss in money, magic filter, simple panel. Works with grid, martingale and manual trades. Open source code.

MT5에서 체결 및 청산된 포지션을 텔레그램 채팅방에 게시합니다: 포지션 방향, 종목, 진입 가격, 스탑 및 목표 가격(핍 단위), 랏 수, 그리고 청산 시 결과, 핍, R-배수 및 보유 시간. 재시도 대기열, 재시작 시 데이터 보존, 실제 거래는 수행하지 않습니다. MT5용 무료 텔레그램 및 디스코드 거래 알림 도구

Read-only watchdog for MT5: alerts on unknown magic numbers, duplicate positions after reconnects, missing SL, stop outs and what happened while it was off. Never trades.

리스크 조정, 스프레드 보호, 지속적인 일일 손실 제한, 손익분기점 및 추적 스탑 기능을 갖춘 교육용 MT5 헤징 계좌 거래 패널.

Automated checks of an Expert Advisor on a live demo chart (restart, second copy, server history, chart button) with a PASS/FAIL report.

Risk tool for prop firm accounts: closes all positions and blocks new trades when the daily loss or max loss limit is reached. Never opens trades on a live chart.

Spread Monitor is an MQL5 Expert Advisor that draws a colour-coded panel on the chart. The panel shows the current spread of the attached symbol in points, along with the average, minimum, and maximum over a rolling history. It also counts how many stored samples exceeded a warning level, and turns the status row red when the current spread is above that level. The utility does not place orders. Inputs control the warning level, the history size, the refresh interval, and the panel position. Panel objects are removed when the EA is detached.

교육용 MT5 EA: 클로즈드 바 EMA 크로스오버 진입, ATR 기반 손절매 및 익절, OrderCalcProfit을 통한 순자산의 고정 비율에 따른 로트 크기 설정, 스프레드 필터, 매직 넘버 분리 및 서버 반환 코드 확인 기능을 제공합니다. 리스크 관리가 가능한 EA를 구축하기 위한 깔끔한 템플릿입니다. 수익 보장 없음.

Educational Expert Advisor: daily range breakout with BuyStop/SellStop pending orders, risk-reward take profit and trading days. Clean, commented MQL5 code with margin and stop level checks. Demo and Strategy Tester only.

Educational Expert Advisor: Bollinger Bands return to the mean with an optional RSI filter and trading hours. Clean, commented MQL5 code with margin, volume and stop level checks. Demo and Strategy Tester only.

Educational Expert Advisor: moving average crossover with clean, commented MQL5 code – margin, volume, stop level and spread checks, order retries. Demo accounts and Strategy Tester only.

123456789...44