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

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

icon

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

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

코드를 제출하세요

Single-header account lock for MT5 EAs: licensed account numbers, optional demo allowance, expiry date, tester bypass. Licence compiled in with #define. No DLL.

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.

Line Master is a trend-following indicator for MetaTrader 5 that displays fast and slow dynamic price lines to help traders identify market direction and potential trend changes. Blue represents a bullish trend, while red represents a bearish trend. Visual markers highlight changes in the indicator's trend state. The indicator includes adjustable Fast Length and Slow Length parameters, allowing traders to customize its sensitivity. It can be used on forex, gold (XAUUSD), indices, and other MT5-supported markets. For better results, combine its signals with price action, support and resistance levels, and proper risk management. Signals are not guaranteed and should be confirmed before entering a trade.

EA의 모든 진입 유형에 대해 하나의 순자산 곡선에 묶어두지 않고 각각의 기록으로 점수를 매깁니다. 초기화 시 계좌의 거래 내역을 바탕으로 자체적으로 재구성되므로, 재시작하더라도 기록이 지워지지 않습니다. 원시 승률 옆에 윌슨 점수 하한값을 표시하여, 3회 연속 승리로 인한 호조세가 우위처럼 보이지 않도록 합니다.

프랑크푸르트, 런던, 뉴욕 또는 도쿄의 현물 시장 개장 시간을 기준으로, 당일 거래일의 각 캔들에 번호를 매깁니다. 기준 시간은 거래소 현지 시간을 브로커 서버 시간으로 변환할 때 자동 일광 절약 시간제가 적용되므로, 개장 후 첫 번째 캔들은 여름과 겨울을 불문하고 항상 1번으로 표시됩니다.

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.

AttachExpert.mqh attaches an Expert Advisor to a chart from MQL5 code, with the inputs you choose and with "Allow Algo Trading" on or off.

Short description (for the "Short description" field) Shows economic news events directly on your chart as colour-coded vertical lines with tooltips, plus a draggable event panel with upcoming and recent releases. Works on every symbol and timeframe, with filters for impact level and instrument groups (Gold & Silver, Forex Majors, Indices, Oil & Gas).

Read-only panel that shows the distance to margin call and stop out in money, percent of equity and points, plus adverse price and equity shock scenarios. Hedge-aware, does not trade.

Draws the last candles of one or two higher timeframes (auto: M15 -> H4 + D1, H1 -> D1 + W1) next to your chart at real prices, with a countdown, lines to the live candle's open, high and low, alerts and EA buffers.

ICT dealing range from confirmed swings: premium and discount zones, equilibrium, the OTE band (62 - 79 %, 70.5 %), standard deviation targets and the IPDA 20 / 40 / 60-day ranges. No repaint. Alerts and EA buffers.

Measures, on the chart's own history, how often a bar takes out the prior high or the prior low after bullish and after bearish bars, at up to five levels spaced by the average range. Each level carries a probability bar, and a table scores the favored side over all bars and over the last 200.

ADX, 허스트 지수 및 1차 지연 자기상관도를 활용해 시장을 분류하고, 각 바를 돌파 모듈이나 평균 회귀 모듈로 분배하며, 윌슨 95% 하한선을 적용해 각 체제별로 별도의 승률 기록을 관리하므로, 실제로 효과가 있는 쪽이 어느 쪽인지 확인할 수 있습니다.

위험 비율과 스톱 거리를 바탕으로 포지션 규모를 산정한 뒤, 스톱 로스와 테이크 프로핏이 이미 설정된 상태로 거래를 개시합니다. 절대 스스로 거래를 진행하지 않습니다.

A chart panel for MT5 that places Buy Limit, Sell Limit, Buy Stop and Sell Stop pending orders with one click. Volume, distance and optional SL/TP are set on the panel; OCO cancels the opposite order automatically. Includes bulk delete, a live order list and automatic handling of broker STOPS_LEVEL and filling mode. Execution tool only - no signals, no guaranteed results.

Highlights potential buy zones in uptrends and sell zones in downtrends on closed candles (no repainting), with automatic lot size for your balance and a daily loss guard.

Read-only panel showing per-magic net P/L, account drawdown, daily-loss breaker progress and freeze/liquidate thresholds. Does NOT trade.

Non-repainting three-bar Fair Value Gap detector for MetaTrader 5. Closed-bar detection, the 50% Consequent Encroachment level, mitigation as an explicit state machine, incremental scanning, and a built-in self-audit that re-checks the stored gap levels against the closed-bar series on attach. Pure native MQL5, no DLLs, no external dependencies.

각기 다른 기능을 하는 세 가지 포지션 규모 조정 보호 기능; 이들을 혼동하는 것이 수많은 계좌가 전액 손실을 입는 주된 이유입니다: - 래더(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용 간단한 정보 지표입니다. 이 지표는 현재 스프레드를 펍 단위로, 색상 표시와 레벨 바가 포함된 간결한 그래픽 패널 형태로 표시합니다.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211