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

icon

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

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

코드를 제출하세요

캔들이 극단적인 가격 경계를 돌파한 시점을 알려주는 지표

실제 현지 시간과 일광 절약 시간제 규정을 적용하여 아시아, 런던, 뉴욕 세션과 런던/뉴욕 세션의 중첩 시간을 강조 표시하므로, 어떤 브로커에서든 세션 박스가 정확하게 표시됩니다.

이 스크립트는 EA가 처리해야 할 사항, 즉 헤징 또는 네팅, 거래 권한, 체결 모드, 스톱 및 프리즈 레벨, 거래량 규칙, 스왑, 그리고 해당 종목에서 이미 개설된 포지션에 대한 정보를 보고합니다. 이 보고서를 파일로 저장하여 프리랜서 주문에 첨부할 수 있습니다.

모든 차트에서 일간 및 주말 개장 갭을 표시하고, 각 갭이 메워지는 시점을 추적하며, 새로운 갭 발생 시 알림을 보내고, 갭 하나당 CSV 행 하나를 기록하며, 해당 갭 정보를 iCustom에 노출합니다.

Classifies each bar into trend, exhaustion, compression or noise regimes using Fractal Efficiency, ATR compression and a time-of-day adjusted volume Z-Score.

MT5용 읽기 전용 워치독: 알 수 없는 매직 넘버, 재연결 후 중복 포지션, SL 미설정, 스톱아웃, 그리고 워치독이 비활성화된 동안 발생한 상황에 대한 알림을 제공합니다. 절대 거래를 하지 않습니다.

이 지표는 가격 파동을 찾아내어, 세 가지 수준의 화살표로 고점과 저점을 표시하고, 이를 바탕으로 저항선과 지지선을 자동으로 그립니다.

Draws the previous day, week or month high, low and close, the current period open and Classic, Fibonacci, Camarilla or Woodie pivots for each period, with a panel showing the nearest level above and below price.

Shows the relative strength of USD, EUR, GBP, JPY, CHF, CAD, AUD and NZD, plus an optional gold (XAU) line, built from the 28 major pairs, with a strongest-to-weakest ranking panel.

Volume-weighted average price that resets every day, week or month, with two pairs of standard-deviation bands, the previous period's final VWAP and a panel showing how far price is from VWAP in price, points and sigma units.

A script that turns candles into a MIDI file: one instrument per symbol, meter detected from the data, pitch from the move, duration from the candle body.

Dynamically export customizable historical bar data (OHLC, Tick Volume) and selected technical indicators (RSI, MACD, ATR, ADX, Stochastic, CCI, MFI, Momentum) directly to a clean .csv file with automatic header generation.

A real-time CCanvas on-chart utility for MetaTrader 5 that calculates net lot exposure per currency across all open positions and simulates the exact margin, Margin Level (%), and Stop-Out buffer impact of a new Buy or Sell order—automatically accounting for your broker's hedged margin rules.

Free panel indicator for funded / prop-firm accounts: shows the room left before the daily loss limit and the static maximum drawdown, and alerts when you get close. Monitor only: it never opens, closes or blocks trades.

Exports the closed positions of the account to a CSV file (one row per position) and shows a summary: trades, win rate, profit factor, net result, max drawdown and results per symbol. Read-only.

A compact on-chart scanner that shows the RSI of the Market Watch symbols (or of a custom list) in a sorted, color-coded dashboard, marks overbought and oversold symbols, and can send alerts when a symbol enters one of these zones.

Devil Trader AI Lite is an automated Smart Money & Liquidity Expert Advisor engineered exclusively for GOLD (XAUUSD) on M30 and H1 timeframes. It maps Major Demand and Supply Order Blocks, waits for confirmed rejection candles, and applies dynamic ATR Stop-Loss, auto-lot sizing, and trailing stop protection with zero Martingale.

Break-even and trailing stop for open positions, measured in R (distance to the first stop loss). Respects stops level and freeze level, only moves the stop in profit direction.

조합 대칭 교차 검증을 통한 MT5 최적화의 백테스트 과적합 확률(PBO). 각 패스는 일별 결과를 프레임 형태로 전송하며, 최적화가 종료되면 PBO가 계산됩니다.

차트 상에 표시되는 패널로, 위험 설정을 랏 크기로 변환하고, 브로커의 거래량 단위 및 최소 랏 크기가 해당 위험에 어떤 영향을 미치는지 보여줍니다. 이 기능은 표시 전용이며, 주문을 체결, 수정 또는 청산하지 않습니다.

Seven-Bar Pressure Flip (SBPF) is a sell-only Expert Advisor for MetaTrader 5, provided as a research example for XAUUSD on the M15 timeframe. It looks for a bearish reversal candle following positive average candle-body pressure and manages positions using ATR-based stops, a fixed reward-to-risk setting, and a bar-count exit.

PRO Day Trading Signals is a non-repainting M15 indicator for MT5 that finds trend-following pullback entries after a liquidity sweep. How it works: it trades only in the direction of the H4/H1 trend (EMA200, EMA20/50). It waits for an M15 candle to sweep the previous 10-bar high or low at the EMA20/50 zone and close back inside. It confirms with a strong candle body (≥0.30 × ATR) and RSI (≥52 for BUY, ≤48 for SELL). Signals appear only on closed bars.

An MQL5 indicator example that checks the latest closed candle and suppresses duplicate alerts.

Marks every weekend gap on the chart, measures it in price and in ADR, shows whether and how fast it was filled, and keeps fill statistics for recent weeks. Display only, it does not trade.

Shows where today's daily ATR stands against the last 1, 3 and 5 years, and translates an ATR stop into money, lot size and minimum-lot risk for your account settings. Completed bars only. Display only, it does not trade.

Builds a time-of-day profile from your own broker's history: the typical spread, the typical tick activity and the typical spread-to-range cost of every time slot of the trading day. Cheap and expensive slots are marked in the indicator window, the daily rollover window is flagged, and a panel lists the best and worst slots and ranks the current spread against its own slot.

Intraday momentum EA for the Nasdaq 100: trades breakouts of a noise band around the New York open (rules of Zarattini, Aziz and Barbon, 2024), exits inside the band or across the session VWAP, flat at 16:00 New York.

Tokyo, London and New York session boxes with high-low range, kept on the right hours through every clock change, plus a live clock panel.

Tracks live MQL5 economic calendar events and real-time Bid-Ask spread in a chart HUD, exposing three iCustom buffers for EA news and spread gating.

False breaks at an ATR envelope, drawn as trades: price pushes through a band, closes back inside, and a box runs from the entry to the moving midline, with the stop as a thick line. Each label prints the win rate of earlier signals in the same RSI zone, and a corner card charts it for every zone.

Detects swing highs and lows automatically and draws Fibonacci retracement levels on the latest completed swing leg. The levels move to the new leg as soon as a new swing is confirmed; the levels, their colors and the swing sensitivity are configurable.

Small include file that gives you the lot size from risk in percent (or fixed money) and the stop loss distance. Rounds always down, checks min/max lot and free margin.

교육용 전문가 자문가: 일일 등락폭 돌파 시 매수 스탑/매도 스탑 대기 주문, 위험 대비 수익률, 익절 및 거래일 설정 기능. 마진 및 스탑 레벨 검사가 포함된, 주석이 달린 깔끔한 MQL5 코드. 데모 및 전략 테스터 전용입니다.

스프레드 모니터(Spread Monitor)는 차트에 색상으로 구분된 패널을 표시하는 MQL5 전문가 자문가(Expert Advisor)입니다. 이 패널은 연결된 종목의 현재 스프레드를 포인트 단위로 표시하며, 롤링 기록에 따른 평균, 최소, 최대 값도 함께 보여줍니다. 또한 저장된 샘플 중 경고 수준을 초과한 횟수를 집계하며, 현재 스프레드가 해당 수준을 초과할 경우 상태 행을 빨간색으로 표시합니다. 이 유틸리티는 주문을 체결하지 않습니다. 입력 매개변수를 통해 경고 수준, 기록 크기, 갱신 간격 및 패널 위치를 제어할 수 있습니다. EA가 분리되면 패널 객체가 제거됩니다.

Exports closed trades to a CSV file, one row per closing deal: partial closes, close-by and netting reversals are split, each row with the position's open time, volume-weighted open price and its share of the entry commission.

A 24-hour clock of typical H1 ranges for XAUUSD (and any other symbol) versus the range of the current hour. The profile uses closed hours only. Display only — it does not trade.

A clean on-chart map of psychological 00/50 figures, prior day and week extremes, and the average daily range, with honest bounce/break statistics. Display only — it does not trade.

A lightweight MetaTrader 5 Expert Advisor that records new-bar events and terminal connection-state changes to a local CSV file. Designed for developers and traders who need reliable event logging, diagnostics and monitoring without executing trades.

Marks every opening gap on the chart, measures its size in ATR units and follows it until price trades back to the fill level (previous close by default). A panel reports the fill rate, the median and 90th-percentile number of bars to fill, and the same figures for weekend gaps and for three gap-size buckets. Gaps that are still undecided are reported separately and never counted as filled.

Converts session hours given in London, New York, Tokyo or Sydney time into broker server time, including US and EU daylight saving and the weeks when the two are out of step. Comes with a check script that verifies 15 hand-calculated cases.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218