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

icon

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

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

코드를 제출하세요

Records every fill on the account and shows how it was executed: slippage against the requested price on entries and on stop-loss and take-profit exits, the spread at the fill and the execution delay. Per-symbol panel, hour-by-hour heatmap, CSV log and a side-by-side broker comparison. It does not trade.

MQL5 include library (#include) for classifying trade server retcodes into retryable transient conditions versus stop-level, margin, volume, or permission rejections. Provides structured diagnostics, suggested retry delays, and formatted log summaries with zero DLLs or WebRequest calls.

MQL5 include library (#include) for R-multiple Break-Even+ protection and dynamic or step trailing stop management on open positions. Normalizes Stop Loss levels to SYMBOL_TRADE_TICK_SIZE, enforces broker stops/freeze and spread buffers, supports magic-number and symbol filtering, and requires zero DLLs or WebRequest calls.

MQL5 include library (#include) for equity risk % lot sizing, broker volume limit and free-margin checks, tick-size price normalization, and minimum stop distance validation across Forex, Gold, Oil, Crypto, Indices, and Stocks on Hedging or Netting accounts. Includes URM_CalculateSafeLot(), URM_NormalizePrice(), URM_GetMinStopDistance(), URM_DetectAssetClass(), URM_IsCentAccount(), and URM_IsNettingAccount() with zero DLLs and zero WebRequest calls.

Finds and plots the highest high and lowest low over a specified lookback period Includes a vertical lookback boundary line, price labels, and optional push notifications

금(XAUUSD), 외환 및 모든 종목용 외환 세션 박스: 브로커 서버 시간을 기준으로 아시아, 런던, 뉴욕 세션을 표시하며, 각 세션의 고점과 저점이 오른쪽으로 확장되고 포인트 단위의 변동폭이 표시됩니다. 오픈 소스 코드입니다.

금(XAUUSD), 외환 및 모든 종목에 대한 자동 피보나치 되돌림 도구: 가장 최근에 완료된 스윙 구간을 자동으로 분석하여 각 되돌림 수준을 표시하며, 61.8% 수준은 별도의 색상으로 표시되고, 각 수준별 가격 정보와 선택 가능한 알림 기능을 제공합니다. 오픈 소스 코드입니다.

Estimates, month by month and for each symbol, where the broker's real tick history exists, so you can see which part of an "Every tick based on real ticks" test is likely real and which is modelled.

Lot Sentinel shows the exact lot size for the stop loss you drag on the chart. Drag one red line to your stop level: the panel instantly shows the position size for your risk (% of balance, % of equity or a fixed amount), the actual risk after rounding, and a take-profit level at your reward ratio. The loss per lot uses the broker's own tick size and tick value, so it is accurate on forex, gold, indices, stocks and crypto. The lot is always rounded down, so the real risk never exceeds your setting. The indicator never opens or modifies trades.

An include file that fills every field of a trade request on purpose, rounds prices to the tick grid, respects stops and freeze levels, and never removes a take profit by accident.

The NIST post-quantum standards in plain MQL5 with no DLL: ML-KEM to agree on a secret key, ML-DSA to sign and verify, and the SHA-3 and SHAKE functions they are built on. Every output matches NIST's official test vectors, OpenSSL and Go byte for byte.

Scans the broker's complete MT5 symbol catalogue, resolves common prefixes, suffixes and aliases, checks trading specifications and exports a compatibility report to CSV.

Seven candlestick patterns with exact rules, trend / swing / size filters against clutter, and a statistics table that compares every pattern with the base rate of the same chart. Closed candles only, no repaint, buffers for EAs.

Average Daily Range from finished days, ADR high / low projected from today's low and high or from the open, range used in percent, a small panel and alerts at 80 / 100 percent. Day from broker or New York time. No repaint.

The panel prints the broker's server clock, your local clock with its GMT zone, the offset between the two to the minute, and the countdown to the close of the chart's current candle. The offset is measured from the terminal's own clocks on every pass, so nothing is typed in and no broker zone is assumed. If you set a lead in seconds and enable a channel, it sends one alert per candle while a bid is available, with the seconds left and the bid; its eight objects stay out of the object list and cannot be selected.

One function call checks the terminal, account, program permission, symbol, trading session, quotes, spread, volume and margin, and tells you in plain words why a new trade cannot be opened. No order is ever sent.

Spread monitor for Gold (XAUUSD) and any symbol on MT5. Shows the spread now, its average and the highest of the day in a small panel and alerts when the spread opens above your limit or above twice the average. Open source code.

Pivot points for Gold (XAUUSD) and any symbol on MT5. Classic or Fibonacci P, R1 to R3 and S1 to S3 from the previous day, week or month, one set per period, with an optional alert when a candle closes across a level. Open source code.

ATR stop loss and take profit levels for Gold (XAUUSD) and any symbol on MT5. Draws the stop and two targets from the ATR for a buy at the ask and a sell at the bid, with the lot for your risk in percent of the balance. Open source code.

Shuffles your closed trades thousands of times to show how deep the drawdown can realistically get (p50/p95/p99), and checks whether your account size can carry it. Reads the account history or a CSV file and writes a readable HTML report.

A custom OnTester() criterion that ranks optimisation passes by net profit factor, number of trades, drawdown and equity-curve linearity. Includes simulated commission, trade export to CSV and a readable HTML report.

선형 MT5 차트에서 일정한 비율로 상승하거나 하락하는 추세는 곡선 형태를 띠지만, 직선 채널은 이를 제대로 포착하지 못합니다. 이 지표는 종가 바를 기준으로 19개의 룩백 윈도우 중 가장 깔끔한 데이터에 맞춰 실제 지수 곡선을 그리며, 편차 구역, 향후 전망, 그리고 적합도, 추세 속도, 가격 위치를 표시하는 카드를 제공합니다.

차트상에서 포지션 규모, 위험 금액, 위험 대비 수익 비율을 시각적으로 계산해 주는 무료 MT5 스크립트입니다.

Smart Money Concepts MT5 — BOS / CHoCH structure, Order Blocks, Equal Highs/Lows, Fair Value Gaps and Premium/Discount zones. MT5 adaptation of the MAJID Smart Money Concepts indicator, free for non-commercial use under CC BY-NC-SA 4.0.

High-performance JSON library for MQL5: single-pass tape parser, DOM, SAX streaming, builder, JSON Pointer, JSONPath-like query VM and typed struct mapping. No DLL required.

Plots daily Asia Session High/Low range boxes, extends session liquidity levels through London and New York sessions, and marks non-repainting closed-bar liquidity sweeps (BSL/SSL) with a live HUD.

Account-wide MT5 prop firm risk monitor that tracks daily and maximum loss headroom, current stop-loss exposure, projected equity and remaining risk capacity.

Summarises the account's closed trades per symbol and shows how much of the gross result was taken by commission, swap and fees.

On-chart panel that sizes your trade: lot size from your risk % and a stop in points or ATR, with spread, broker-minimum, minimum-lot and margin checks. Calculation only - it never trades.

Displays live symbol specifications, broker trading conditions, account information, spread, trading permissions, session status and margin properties directly on the MT5 chart.

A WebRequest-only (no DLL) Telegram library: text and chart screenshot messages with queue and retry, plus ready trade reports (open, close with profit and reason, SL/TP changes, pending orders, daily summary). Includes a ready EA.

This is a free, execution only EA for gold on M15. It compares gold with the Hang Seng (HK50). When gold has split far away from it, the EA trades in the direction of that split, but only while gold itself is calm and hasn't already made the move.

마우스 스크롤로 확대/축소

Tick Scalper Helper는 매우 짧은 시간대를 중심으로 거래하며 모든 가격 변동을 확인하고 싶어 하는 트레이더를 위한 수동 거래 보조 도구입니다.

Closes all positions, deletes pending orders and blocks new trades when the daily loss, drawdown-from-peak or daily profit target is reached. Works with manual trading and any other EA. State survives terminal restart.

Moves the stop loss to break-even (with locked profit) and trails it by a fixed distance or an ATR multiple. Never opens or closes trades, the stop loss only moves forward.

Shows the real cost of a trade on the current symbol (spread, commission, swap) and which share of your risk (R) it takes on every timeframe from M1 to D1.

An include file for calculating the size of a position to be opened. It turns a risk figure (percent of the balance, percent of the equity or money), a stop and a commission per lot into a lot size whose loss at the stop never goes over that risk. The lot is always rounded down to the volume step and a risk below the minimum volume returns 0 lots with a reason.

A clean information card for your EA or indicator: rows, progress bars and a status pill on one anti-aliased CCanvas bitmap, light or dark to match the chart, and foldable with a click.

Broker server time, UTC and the local time of London, Frankfurt, New York, Tokyo and Sydney, with daylight saving time on any date, live and in the Strategy Tester.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222