거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
귀하의 MetaTrader 5 터미널에서 CodeBase에 액세스 해보세요
올바른 코드를 찾을 수 없습니까? 프리랜싱 섹션에서 주문하세요
Expert Advisor 또는 지표 작성 방법

MQL4 및 MQL5 소스 코드 라이브러리

icon

MQL5 또는 MQL4 프로그래밍 언어를 어디서부터 배워야 하는지 모르시겠나요? MetaTrader 터미널을 위한 다양한 프로그램을 이용할 수 있습니다. 게시된 코드 예제를 다운로드하고 연구하며, 자신만의 지표와 Expert Advisor를 개발하십시오. 최대 MQL5 및 MQL4 코드 라이브러리에 응용 프로그램을 게시하면 모든 MetaTrader 터미널 및 MetaEditor에서 사용할 수 있습니다.

MQL4 및 MQL5의 코드 예제는 전 세계에 배포될 것이며 수천 명의 거래자가 귀하에 대해 알게 될 것입니다!

코드를 제출하세요

마켓 워치에 있는 모든 종목에 대해 SYMBOL_TRADE_TICK_VALUE, SYMBOL_TRADE_TICK_VALUE_LOSS 및 SYMBOL_TRADE_TICK_VALUE_PROFIT을 비교하는 진단 스크립트입니다. 각 심볼을 네 가지 범주(ALL_EQUAL, TV_MATCHES_PROFIT, TV_MATCHES_LOSS, ALL_DIFFER) 중 하나로 분류하고, 집계된 요약 정보와 해석 팁을 제공합니다. EA에서 위험 기반 로트 크기 조정을 구현할 때 어떤 틱 값 속성을 기준으로 삼아야 할지 확인하는 데 유용합니다. 심볼별 전체 보고서를 MQL5/Files의 CSV 파일로 내보낼 수 있습니다.

계좌 통화로 표시된 목표 손실액(예: 포지션당 50달러)을 기준으로 모든 오픈 포지션에 손절매를 설정하는 스크립트입니다. 모든 입금 통화와 모든 외환 종목에서 작동합니다. 브로커의 스탑/프리즈 레벨을 확인합니다. 통화 변환은 자동으로 처리됩니다.

A lightweight educational MetaTrader 5 indicator that maps Premium, Equilibrium and Discount areas from a selected market range.

모든 버퍼를 시계열로 설정한 헤이켄 아시

Open-source MT5 script that records XAUUSD/GOLD symbol settings, spread, tick value, contract size, volume step, stop/freeze levels, swap, and account context to the log and optional CSV.

A native MQL5 script that measures how concentrated a strategy's profit is — whether the edge is broad or rests on a few lucky trades. It reads a per-trade CSV (Date,Profit) and reports the share of net profit from the largest trades, the Gini coefficient of the winners, a concentration profile, a survival test that removes the best few trades and recomputes net profit and profit factor, and the largest single day versus a configurable consistency limit, combined into a concentration-and-consistency score (A+ to F) with recommendations. If no file is found it generates a sample set, so it runs out of the box. No external libraries, no Python, no AI. The helper ExportTrades.mq5 writes the file from your trade history.

A native MQL5 script that analyzes the structure of an account's drawdowns, not just the single "maximum drawdown" figure. It reads a daily equity curve (Date,DailyPnL CSV), rebuilds the underwater curve, and splits it into individual drawdown episodes with their depth, duration and recovery time. It then reports the Ulcer Index, Pain Index, Recovery Factor and time spent underwater, and combines them into a single resilience score (A+ to F) with recommendations, printed in the Experts tab. No external libraries; if no file is found it generates a sample curve so it runs out of the box.

트리플 배리어 라벨링 파이프라인은 종종 임의의 상수(0.5–1.0%)나 기존의 스프레드 가정을 min_ret 임계값으로 사용합니다. 실제 왕복 거래 비용보다 낮게 설정된 임계값은 파이프라인이 비용에 의한 잡음을 거래 가능한 신호로 오인하게 만듭니다. 이렇게 라벨링된 데이터셋은 에지를 체계적으로 과대평가하게 되며, 해당 라벨을 기반으로 훈련된 모델은 진정한 시장 구조가 아닌 라벨링 방식에서 비롯된 인공적 현상에 과적합하게 됩니다. TransactionCostCollector.mq5는 이 문제의 데이터 수집 단계를 해결하는 독립형 스크립트입니다.

A small educational MetaTrader 5 indicator that marks simple three-candle bullish and bearish Fair Value Gaps on the chart.

A small educational MetaTrader 5 indicator that marks confirmed swing highs and lows and labels market structure as HH, HL, LH and LL.

가중 조화 평균(Weighted Harmonic Mean) 수학적 원리를 활용하여 산술적 이상치를 제거하고, 기관 투자자의 실제 유동성 중심을 파악하는 정량적 거래량 밀도 분석 엔진.

Daily Range Tracker — Live Today's Range vs Average Daily Range. Daily Range Tracker shows you, at a glance, how much of the symbol's typical daily movement has already happened today — helping you judge whether the day still has room to run or is already exhausted.

Swap Meter displays the live SELL and BUY swap rates for your current chart symbol in a clean, color-coded panel — and instantly alerts you the moment your broker changes either rate.

Spread Meter — Live Single-Symbol Spread Tracker with Max/Min Record Spread Meter by Fox Wave is a sleek, single-symbol dashboard that displays the live spread of your current chart symbol in real time, while permanently recording the widest and tightest spread ever seen — with exact timestamps.

Open source MT5 spread logger with average, p50, p90, p95, p99, maximum spread, alerts and CSV export.

이익이 난 포지션 청산

Open-source Expert Advisor for testing day-of-week reversal and continuation effects. Built for systematic research, strategy validation, and further development by the MQL5 community.

A simple Expert Advisor based on the crossover of two EMAs (fast and slow), with configurable Stop Loss, Take Profit, lot size, and Magic Number.

Asian Range Breakout day-trading EA. Multi-symbol, M15/M30/H1. Places pending stop orders during the London session outside the pre-London Asian range, using PSAR + MACD + Stochastic signals, with automatic London/NY DST handling, structural stops, trailing and break-even.

이 지표는 차트상에서 불균형 구간(Fair Value Gap)을 찾아내고, 가격이 해당 구간으로 되돌아올 때 화살표로 신호를 보냅니다. 금(Gold), 외환(Forex) 및 M5에서 H4까지의 시간대에서 거래되는 모든 유동성 높은 상품에 적합합니다.

Session Boxes is a custom indicator for MetaTrader 5 that draws color-coded rectangular boxes on the chart representing the high-low range of the Asia, London, and New York trading sessions. The indicator uses H1 data internally and supports configurable session hours in GMT along with a broker server offset parameter

López de Prado의 『Advances in Financial Machine Learning』(제5장)에 소개된 고정 폭 분수 차분(FFD) 기법의 MQL5 구현체입니다. 최대 역사적 기억을 유지하면서 비정상적인 가격 시계열을 정상적인 시계열로 변환하며, 출력값은 Python afml 라이브러리와 교차 검증 시 1e-12 이내의 오차를 보입니다.

이중 TRIX 및 LWMA 필터링을 기반으로 한 장기 모멘텀 및 추세 오실레이터.

미분법을 가격 변동에 적용하여 진정한 시장 속도(1차 미분)와 시장 가속도(2차 미분)를 도출함으로써, 추세 소진이 발생하기 전에 이를 예측하는 정량적 물리 엔진입니다.

This Expert Advisor combines an ADX-based trend strength filter with an EMA pullback entry technique, using ATR for dynamic stop loss and take profit sizing. It is designed for trading a single symbol with one position open at a time.

Expert Advisor for testing the Inside Bar continuation hypothesis. The EA places pending orders in the direction of the Main Bar after a valid Inside Bar pattern is detected, with optional ATR and pattern quality filters.

A state engine to provide geometric signal validation for indicator signals

Instead of having to analyze each pair individually, you can see at a glance what are the most promising pairs according to your own criteria.

Universal Breakout Study is a research-focused Expert Advisor for MetaTrader 5 designed to analyze and optimize range breakout strategies. It provides flexible parameter testing, fast optimization, and a structured framework for validating trading ideas using historical data and forward testing.

An econometric price-space indicator that utilizes the Ornstein-Uhlenbeck stochastic process to mathematically estimate the asset's true driftless equilibrium and its speed of mean reversion.

MSNR v5.31Plus AEU EA is an Expert Advisor for MetaTrader 5 based on Malaysian SNR body levels, Smart Money reaction logic, liquidity sweep, MISS, engulfing confirmation, trendline confluence, QML, CRT and DOL target projection. The EA is designed for XAUUSD and works best on the M5 timeframe. It scans higher timeframes such as W1, D1, H4 and H1 to build important support and resistance zones, then waits for price action confirmation on the execution timeframe. Main features: - Malaysian SNR body-level detection. - Higher-timeframe support and resistance scan. - Liquidity sweep, MISS and engulfing confirmation. - Trendline, QML, breakout-retest and CRT logic. - Confluence cluster system. - Session filter for Asia, Europe and US trading hours. - Risk management by account percentage. - Partial close at selected R multiple. - Break-even and safety guard options. Recommended settings: Symbol: XAUUSD Timeframe: M5.

Expert Advisor for testing the Turnaround Tuesday hypothesis. If Monday closes bullish, a Sell position is opened on Tuesday. If Monday closes bearish, a Buy position is opened. The EA supports an ATR-based filter, ATR-based Stop Loss and Take Profit levels, as well as position sizing using either a fixed lot size or percentage risk.

Breakout is a clean, automated MetaTrader 5 expert advisor designed to capture algorithmic breakout momentum in structural bull markets.

Multi-indicator EA for Gold (XAUUSD) and Silver (XAGUSD): RSI, ADX and MA signals, adaptive ATR trailing stop and built-in capital protection.

프라임 퀀텀 AI는 고전적인 사전 필터(ADX + Alligator)와 주요 AI 제공업체(Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, xAI Grok)의 AI 비전 기반 차트 확인을 결합한 MT5 전문가 어드바이저입니다. 사전 필터가 추세 설정을 감지하면 EA는 3개의 적응형 차트 스크린샷을 캡처하여 방향, 확신, 스톱로스 및 이익 실현을 반환하는 구성된 AI 제공업체에 보냅니다. AI가 충분한 확신을 가지고 사전 필터 신호를 확인한 경우에만 거래가 개시됩니다. 특징: 이중 표준 브로커/프롭 펌 위험 모드, 구성 가능한 로트 크기, 마틴 게일 옵션, 다중 SL/TP 모드, 추적손절, 부분 청산, 뉴스/시간/일/스프레드 필터, 드래그 가능한 차트 정보 패널, 완전 노출 보조지표 파라미터. MetaTrader 5, 공급자의 URL에 유효한 WebRequest 및 유효한 API 키가 있어야 합니다. 키 형식에서 공급자가 자동 감지됩니다.

A quantitative stochastic probability engine that utilizes Markov Chain transition matrices to mathematically forecast the percentage chance of bullish or bearish continuation on the next algorithmic execution cycle.

Dynamic Fair Value Gap (FVG) is an MQL5 indicator for MetaTrader 5 that automatically detects market price imbalances. This indicator is perfectly suited for traders utilizing the Smart Money Concepts (SMC) strategy.

IMR is a multi-layered quantitative reversal finder designed for discretionary price-action traders who refuse to trade blind. It helps traders understand what's the current market regime. Whether its an accumulation, distribution or continuation.

시장 데이터에 이산 푸리에 변환(DFT)을 적용하여 주요 주기적 주파수를 분리하여 전환점을 예측하고 위상 지연을 제거하는 디지털 신호 처리(DSP) 엔진입니다.

슈퍼트렌드 인디케이터는 메타트레이더 5 차트에 ATR 기반 동적 추세선을 표시하며, 추세 반전 시마다 매수/매도 화살표 신호와 함께 녹색 상승 추세선과 빨간색 하락 추세선 사이를 전환합니다.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199