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

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

icon

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

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

코드를 제출하세요

각기 다른 기능을 하는 세 가지 포지션 규모 조정 보호 기능; 이들을 혼동하는 것이 수많은 계좌가 전액 손실을 입는 주된 이유입니다: - 래더(ladder): 잔고의 X당 1계약으로, 수동 로트 조정 시에도 항상 상한선(CAP)으로 적용됩니다; - 플로어(floor): 최소 자본금 미만이면 거래가 중단되며, 새로운 입금이 필요합니다; - 브레이커(breaker): 계좌 규모와 관계없이 최고점 대비 X% 아래로 떨어지면 거래가 중단되며, 자동으로 재설정되지 않습니다. 이 라이브러리가 해결하는 문제이자, 다른 라이브러리들은 거의 다루지 않는 점: 입금은 이익이 아니며, 출금은 손실이 아닙니다. 브레이커는 잔고 최고치를 기준으로 하락폭을 측정합니다. 이를 처리하지 않으면, 드로우다운 중에 이루어진 입금은 잔고와 최고치를 동시에 끌어올리게 되며, 보호 기능은 도움이 될 바로 그 시점에 하락을 감지하지 못하게 됩니다. 이 경우 입금과 출금은 최고치를 동일한 만큼 이동시킵니다. 최고점은 파일에 저장됩니다. 터미널 재시작 시 최고점을 잊어버리는 브레이커는 진정한 브레이커가 아닙니다. 이 데모는 드로우다운 최저점에서 입금이 이루어지는 상황을 시뮬레이션합니다. 입금 기능을 켜고 끈 상태로 실행하여 “하락” 열을 비교해 보십시오.

위험 금액을 기준으로 한 포지션 규모는, 가정된 핍(pip) 값이 아닌 해당 종목의 실제 틱 값, 틱 크기 및 거래량 단위를 바탕으로 계산됩니다. 거래량은 항상 아래로 반올림되며, 위험 금액이 최소 랏보다 작을 경우 이를 알리고 해당 랏의 실제 비용을 보고합니다. 터미널 상태가 아니므로 포지션 크기 산정 로직을 오프라인에서 테스트할 수 있으며, 41개의 어설션으로 구성된 테스트 스크립트가 포함되어 있습니다.

Session Range Breakout draws the high and low of up to three intraday sessions (Asia, London and New York by default) and extends each level to the right with optional H/L labels and a range rectangle. Session hours, names and colours are configurable in server time. Optional popup, sound and push alerts fire when a bar closes outside a session range. The levels are fixed once the session closes, so the drawing does not repaint. The indicator draws chart objects only and never opens trades.

Calculates the Strategy Tester report statistics from the deal history, including Z-Score, AHPR, GHPR, LR Correlation and LR Standard Error, which TesterStatistics() does not return. Checked value by value against the tester.

ICT kill zones (Asian, London, New York, London Close) at the right New York hours on any broker, with US and EU summer time. High / low boxes, levels until price takes them, midnight open. Alerts and buffers for EAs.

Marks the order block behind each break of market structure (the last opposite candle before the move), tracks when it is used and turns failed blocks into breaker blocks. No repaint. Alerts and buffers for EAs.

An include file that writes real Excel workbooks (.xlsx) from MQL5 without DLLs: several sheets, numbers, text and real Excel dates, a frozen bold header and filters. Example script: the account deals and the daily results to Excel.

Marks breakouts of the recent trading range and the breakouts that fail (price closes back inside within a few bars). Closed bars only, alerts, buffers for iCustom.

Closes all trades and blocks new ones when your prop firm daily loss or maximum drawdown limit is reached.

Reads your closed trades, converts each to an R-multiple and simulates many future runs at a chosen risk per trade. Reports the probability of hitting a drawdown floor, the probability of ending profitable, the median ending balance and the 95% range. Read-only.

An educational MetaTrader 5 Expert Advisor with four RSI and MACD signal modes calculated on completed Renko bricks. Fixed-size Renko is built internally from Bid ticks. No external indicators, DLLs, custom symbols or offline charts are required.

손절매를 원하는 위치로 드래그한 뒤 ‘매수’ 또는 ‘매도’를 클릭하기만 하면, 랏 크기가 자동으로 정확하게 설정됩니다. 계산기나 스프레드시트가 필요 없습니다. 손익분기점 및 추적 손절매 기능을 지원하며, 손실 한도에 도달하면 당일 거래를 자동으로 종료합니다.

Spread Monitor — MetaTrader 5용 간편한 정보 지표입니다.

Market structure in the way of Smart Money Concepts: swing highs and lows with HH / HL / LH / LL labels, BOS (break of structure) and CHoCH (change of character) lines. Swings count only after their right candles close, so nothing repaints. Alerts and a trend buffer for EAs.

Draws the fair value gaps (three-candle imbalances) that price has not filled yet, follows how much of each gap is filled and ends the box when it is. Closed candles only, no repaint. Alerts and buffers for EAs.

GDS Renko Liquidity Sweep Lab is a free educational indicator for studying what happens after price crosses a confirmed Renko swing level.

Spread Monitor는 MetaTrader 5용 간단한 정보 지표입니다. 이 지표는 현재 스프레드를 펍 단위로, 색상 표시와 레벨 바가 포함된 간결한 그래픽 패널 형태로 표시합니다.

헤이켄 아시 ATR 블렌드는 매끄럽게 처리된 헤이켄 아시 캔들, ATR 기반의 변동성 필터링, 그리고 고속/저속 EMA 추세 확인 기능을 결합하여 잠재적인 추세 전환 신호를 식별합니다.

이 전략은 두 이동평균선(Fast와 Slow)이 교차할 때 포지션을 진입합니다. 모든 종목과 시간대에서 작동합니다.

MarketInfo는 MetaTrader 5용 간편한 정보 스크립트입니다. 이 스크립트는 현재 거래 종목에 대한 주요 데이터(가격, 스프레드, 변동성(ATR), 바 마감까지 남은 시간, N바에 대한 통계, 추세 분석)를 수집하여 로그에 출력합니다.

Before the Friday close: estimates how much your open positions could lose if the market reopens with a gap, and compares it with the room left under the daily loss limit of the next trading day. For prop firm and funded accounts. It only reads the account.

A compact MetaTrader 5 indicator that classifies five selected timeframes as Bullish, Bearish, Neutral, or N/A using price and EMA alignment, then summarizes whether the timeframes are aligned or mixed. This is a market-context indicator, not a standalone trading signal

Running several EAs on one account? This script groups the closed trades by magic number and shows the score of each EA: win rate, profit factor, net profit and drawdown. Read-only, writes a CSV file.

A small include file that tells your Expert Advisor when it is inside a news window, using the economic calendar built into MetaTrader 5. No web requests and no DLL.

Finds volatility compressions as they form, boxes each one as a channel with ATR edge bands and marks the bar that breaks out of it. Inside the live channels: buy and sell volume split from M1 bars, drawn as candles and text, plus a gauge of the current volume delta. Breakout arrows in buffers for EAs.

Free script exporting clean, deterministic OHLC + tick volume + 4 indicators (MA, RSI, MACD, ATR) for M1/M15/H1 to CSV. Closed bars only, zero lookahead — ideal for analysis and ML datasets.

ATR을 기반으로 한 포지션 규모 결정과 고시간대 추세 필터를 적용한 유동성 스윕/주문 블록 스캘핑 전략입니다. 모든 거래는 차트 상에서 해당 설정 유형의 실시간 과거 승률과 함께 표시됩니다. 이는 단순한 박스 표시가 아닌, 실시간으로 업데이트되는 성과 기록표입니다.

규칙에 따라 거래가 회복될 가능성이 없다고 판단될 경우(N × ATR을 초과하는 불리한 가격 변동, 손실 기간이 너무 길어짐, EMA 추세 반전, 포지션과 반대되는 RSI, 또는 자금 한도 초과 등), 손절매 한도에 도달하기 전에 손실 포지션을 조기에 청산합니다. 이익이 나는 포지션은 절대 건드리지 않습니다. ‘관찰 전용 모드’에서는 실제로 청산하지 않고, 청산되었을 포지션에 대한 내역을 기록만 남깁니다. 모든 청산 내역은 규칙, 보유 기간, 최대 불리한 변동폭과 함께 CSV 파일에 기록되므로, 데이터를 바탕으로 규칙을 미세 조정할 수 있습니다.

Several buys and sells open on one symbol? The indicator draws where all buys, all sells and the whole basket break even, and the price for a profit target. Planned entries can be added to see the break-even before you trade.

Sends every opened and closed position, pending orders and a daily account summary to your Telegram chat. It never trades on your account.

Closes all trades and keeps the account flat when the daily loss limit, the maximum drawdown or a daily profit target is reached. Prop-firm style rules, an on-chart panel, and a state that survives terminal restarts.

This Expert Advisor trades fair value gaps in the direction of market structure, the way Smart Money Concepts describes it. It is the third step of a series that has been built one piece at a time: In previous shared codes, the SMC Pullback Indicator decided which highs and lows matter, the SMC Market Structure indicator turned those swings into a trend with BoS, CHoCH, IDM and liquidity sweeps, and this EA trades the result.

GDS 렌코 리플레이 트레이너는 MetaTrader 5에서 과거 렌코 차트를 바탕으로 수동 결정을 연습할 수 있는 무료 교육 도구입니다. 과거 기간을 불러와 앞으로 재생하며 가상 매수 또는 매도 주문을 넣을 수 있습니다. 일시 정지하거나, 틱 하나씩 앞으로 이동하거나, 다음 완성된 렌코 브릭으로 이동할 수 있습니다. 각 가상 포지션에는 손절매와 익절매가 설정되어 있으며, 트레이너는 세션 결과를 기록합니다. 이 도구는 과거 매수/매도 틱을 기반으로 고정 크기의 렌코 브릭을 생성하며, 고전적인 2브릭 반전 방식을 따릅니다. 미래의 틱은 표시되는 차트를 그리거나 가상 거래를 실행하는 데 사용되지 않습니다. 매수 거래는 진입 시 호가(Ask)를, 청산 시 매수 호가(Bid)를 사용하며, 매도 거래는 그 반대의 호가를 사용합니다. 패널에 입력된 주문은 다음 재현되는 유효한 틱을 기다립니다. 스톱 및 목표가는 가격 갭을 포함하여 매 틱마다 확인됩니다.

24개의 MQL5 클래스로 구성된 라이브러리로, 특정 계좌에 대해 프로프 펌의 규칙집(드로우다운, 일일 손실, 수익 지급 일관성, 최소 거래 일수, 뉴스 블랙아웃 등)을 모니터링하며, 규칙 위반 시 자체 포지션을 개설하지 않고 즉시 거래를 중단합니다.

현재 기간의 누적 변동폭을 과거 변동폭의 전체 역사적 분포와 비교하여 순위를 매깁니다. 이는 ADR%와 같이 단순히 평균과의 비교가 아닌 진정한 백분위수이며, 백분위수 게이지가 포함된 간결한 실시간 패널을 통해 통계적 압축 또는 확장을 표시합니다.

EMTOrdersUtility는 여러 금융 상품에 걸친 미결제 포지션을 실시간으로 파악하고자 하는 적극적인 트레이더들을 위해 설계된 실시간 거래 모니터링 및 종목 변경 유틸리티입니다.

PulseStrike Scalper - 통계적 버스트 감지 EA

지속적인 추세를 찾아내는 신속한 시장 스캐너입니다. 이 스크립트는 ‘시장 개요’에 포함된 모든 종목을 1초 만에 분석하여, 선형 회귀 R²와 ADX 지표를 활용해 가장 명확하고 강력한 움직임을 보이는 상품을 찾아냅니다.

AurumNeuro Vanguard는 XAUUSD/금 거래를 위해 특별히 설계된 지능형 전문가 자문가(EA)로, 하이브리드 신경망 리스크 아키텍처와 통합 시장 역학 엔진(UMDE)을 결합한 제품입니다.

진정한 통계적 이상치 가격 변동만을 거래하는 틱 기반 스캘퍼로, 실제 브로커의 체결 지연에도 견딜 수 있도록 포지션 규모를 조정하고 손실 방지 조치를 마련했습니다. 백테스트 결과는 아래에 포함되어 있습니다.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210