MQL5 MetaTrader 5의 소스 코드 라이브러리

icon

이것은 MetaTrader 5 플랫폼 프로그램을 위한 최대 규모의 무료 소스 코드 라이브러리입니다. 여기서는 미리 만들어진 Expert Advisor, 기술 지표, 스크립트 및 라이브러리를 찾을 수 있습니다. MQL5 언어를 배울 때 코드 라이브러리를 사용하고 제공된 코드를 기반으로 자신만의 자동화된 거래 응용 프로그램을 개발하십시오.

게시된 코드를 자유롭게 다운로드 및 테스트할 수 있으며, MetaTrader 5에서 코드를 실행할 수 있습니다. 이 라이브러리는 또한 MetaTrader 5 플랫폼과 MetaEditor 개발 환경에서 직접 사용할 수 있습니다.

코드를 제출하세요

매직 넘버를 기준으로 동일한 헤징 계좌에서 다른 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.

Draws the high and low of a chosen time window and alerts on the first break on each side. The levels are also available through iCustom.

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.

Auto Fibo Extended is a MetaTrader 5 indicator designed to automatically identify significant swing highs and swing lows and draw Fibonacci Retracement and Extension levels directly on the chart.

A stop distance in points is not money until the tick size and tick value make it one. This library turns four risk bases into a lot size, floors it to the volume step, caps it against free margin and tracks a daily loss limit. Two MQL5 headers, no DLL.

A one-file library that handles how an EA trades: pre-trade checks, normalisation to broker limits, safe retries, one order per signal, isolation by magic number and state recovery after a restart. Lot by risk, daily loss limit and equity floor included. Verified in the Strategy Tester.

A regime-classification oscillator that measures how far, and how persistently, price deviates from a rolling volume-weighted VWAP in standard-deviation units, separating trending conditions from ranging ones.

A small include class that stops indicator alerts from firing on every tick. One alert per event and bar, silent about history on start, popup, push, email or sound, and an optional log of every decision. Comes with a working range break indicator as an example

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

스탑이 어디에 위치해 있을 가능성이 높은지, 그리고 어떤 스탑이 방금 발동되었는지를 보여줍니다. 유동성 풀 = 가격이 아직 돌파하지 않은 확인된 스윙 고점과 저점, 동일한 고점/저점(더 큰 풀), 그리고 전날의 고점과 저점입니다. 봉이 풀을 넘어 거래되면 ‘스윕(swept)’으로 표시되며, 같은 봉이 다시 풀 내부로 마감되면 ‘잡혔다가 거부됨(grabbed & rejected)’으로 표시됩니다. 리페인팅 없음: 스윙은 양쪽에서 N개의 마감된 봉이 지난 후에만 사용됩니다. 이 패널은 CCanvas에 그려진 네온 도시입니다: 가격은 하늘을 나는 자동차, 매도 스탑은 그 아래의 타워, 매수 스탑은 그 위의 떠 있는 플랫폼, 어제의 수준은 황금색 광고판, 탐조등이 하늘을 비추고, 티커에는 오늘의 성과가 표시됩니다. 두 개의 버퍼는 전문가 자문가(Expert Advisor)에서 사용할 수 있도록 상하방에서 가장 가까운 활성 풀을 제공합니다. 지표 전용: 절대 매매를 수행하지 않습니다.

Tests "buy at hour X, exit Y hours later" on your broker's own history after spread, commission and swap, with an out-of-sample split, weekday/year breakdown and an all-hours baseline.

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.

Reads real tick history and reports average, median and 95th-percentile spread for every server hour and weekday, plus the cost in % of price.

On-chart table that shows how much each Expert Advisor (magic number) made or lost today, this week and this month, with closed and floating profit, number of closed trades today and the intraday drawdown. Manual trades (magic 0) get their own row and a TOTAL row sums the whole account. MT5 only shows one account-wide balance, so when several EAs trade together you cannot see which one is carrying the day or bleeding. Give your magic numbers readable names ("1001=Breakout;1002=Grid"), choose the corner and theme, and decide whether floating profit is included. Read-only: it never opens, modifies or closes a trade, and it works in the Strategy Tester too (it reads the tester's own deals), so you can try it before using it on a demo or live account. No DLLs, no web requests.

Splits all open positions into currencies and shows the net exposure per currency in account money, the effective leverage of the account and how much a 1% currency move would change your equity.

Draws Asia, London and New York session high/low boxes with each session's range in pips or price, plus a live spread and open-sessions panel.

계좌 통화로 표시된 포지션 규모와 거래 비용(포인트 가치, 스프레드 비용, 증거금, 스왑, 체결 규칙)을 결정하는 계약 사양 세부 정보를 보여주는 차트 패널로, 롯 크기 관련 코드를 은밀하게 위반하는 브로커 설정에 대해 경고하고, 마켓 워치(Market Watch)의 모든 종목에 대한 감사 내역을 CSV 파일로 내보낼 수 있습니다.

브로커 자체의 틱 기록에서 측정된 각 서버 시간당 실제 스프레드를 보여줍니다: 시간당 중앙값 및 90분위수, 스탑 가격 대비 비율 및 랏당 비용(선택 사항), CSV 내보내기 기능을 제공합니다.

Closes all trades when your daily loss reaches your limit.

Supply and demand zones for Gold (XAUUSD), EURUSD and any symbol: zones from swing highs and lows sized by ATR, fresh or tested, merged, broken ones removed, alerts and 5 buffers for EAs. Open source code.

신호가 포함된 iFVG 지표

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

Fits five bivariate copulas on ranks, with Kendall's tau, tail dependence, the probability of joint extreme days, AIC and the conditional probabilities of pairs trading.

Online detection of changes in the mean or volatility (Adams-MacKay): probability of a change in the last k bars, current segment length, forecast, and an indicator.

Exact maximum likelihood of an Ornstein-Uhlenbeck spread and Bertram's optimal entry and exit levels for a given cost, with the expected length of a trade cycle.

For every closed position the script measures how far the price went against it (MAE) and in its favour (MFE), and shows what that says about your stops and exits. Table, summary on the chart and a CSV file. Read-only, it never trades.

A table on the chart: the typical spread of the symbol for every hour and weekday, read from the history of your broker. Green is cheap, red is expensive. Hours in server time, UTC or a city with the right summer time. Read-only.

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.

A lightweight tab bar for chart panels, drawn with the standard CCanvas class. One include file, several independent instances per chart, click selection, resizing and safe cleanup. Includes a demo Expert Advisor.

Candle countdown timer for Gold (XAUUSD), EURUSD and any symbol: time left on the current candle next to price or in a corner, spread, color change and alert before the close. Server time, no ticks needed. Open source code.

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

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

Draws Asia, London and New York session boxes on the chart with each session's high and low.

Closes all open positions and optionally deletes pending orders with one click. Filter by symbol and magic number.

Parkinson, Garman-Klass, Rogers-Satchell and Yang-Zhang estimators, daily realized and bipower variance from intraday bars, and HAR volatility forecasts.

Five tests to tell a random walk from a mean-reverting series: KPSS, Phillips-Perron, DF-GLS, Zivot-Andrews with the break date, and the variance ratio.

Drag the stop-loss line and read the lot size that risks exactly your money or percent. The CRiskSizer class does the same in an EA: lot rounded down, minimum lot never forced, max lot, volume limit, stop level and margin checked.

CBrokerTime converts server time, UTC, New York, London, Sydney and Tokyo with the real summer time of every year and finds your broker's clock from the history (also in the tester). The indicator draws session lines and a clock panel.