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

icon

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

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

코드를 제출하세요

The probe prints the values a symbol specification supplies: digits, point, trade tick size, trade tick value, contract size, volume minimum, volume maximum, volume step and the stops level. Trade tick size is the smallest price change the instrument can make, trade tick value is the money one tick is worth for one lot, and the stops level is the minimum distance in points the reference gives for a stop away from the current price. It then prices a stop at the volume you enter, taking the pip as ten points on a 3- or 5-digit symbol and one point on every other symbol: the pip count times the pip gives a price distance, the distance over the trade tick size gives ticks, and ticks times trade tick value times volume gives the money.

Trend-following breakout EA using a Gaussian-filtered channel, ATR bands, risk-based lot sizing, and an R-multiple trailing stop.

프로프 펌 계좌를 위한 실시간 일일 드로우다운 버퍼 모니터 및 정확한 위반 가격선 지표. 서버 시간 기준 00:00 시점의 거래 내역 재구성(매수 수수료 포함), 00:00 시점의 HWM 스냅샷 고정, 2단계 OrderCalcProfit 교차 환율 보정, 그리고 Expert Advisors용 iCustom() 데이터 버퍼 기능을 제공합니다.

종료된 막대 차트에서 재그리기되지 않는 공정가치 격차, 구역 상태(활성, 접촉, 완화됨) 및 EA용 iCustom 버퍼를 표시합니다.

Manual one-click trading panel for MetaTrader 5. Calculates the lot size from your risk % and stop loss (always rounded down), places SL/TP by pips and reward:risk, and manages trades with breakeven, trailing stop and Close All (only its own trades). Shows balance, equity, spread, floating P/L and an Asia / London / New York session tracker. No trading strategy inside: trades open only when you click BUY or SELL.

계좌 전체를 모니터링하며, 일일 손실 한도나 최대 드로우다운 한도가 초과되기 전에 모든 포지션을 청산한 뒤, 블록이 종료될 때까지 계좌 잔고를 일정하게 유지합니다. 거래는 하지 않습니다.

단일 패널에서 스왑, 수수료, 실시간 스프레드와 함께 변동 마진 단계 등을 포함한 모든 마켓워치 종목의 실제 레버리지를 확인하세요.

Zero-DLL on-chart execution monitor tracking genuine tick-only Min/Avg/Max spread, Spread-to-ATR ratio, decoded broker swap modes, 3x rollover day, and 1.0-lot all-in cost.

Zero-DLL intraday session box indicator (Asia, London, New York) with 14-day Average Daily Range exhaustion tracking and dynamic ADR Upper/Lower target lines.

JPN225 Yen Check is a free, fully open EA for the Nikkei 225 on M30. It buys when the Nikkei is holding near the top of its recent range, but only if it hasn't run too far ahead of GBPJPY. Everything is closed by 17:00 server time. Four conditions, long only, one trade at a time, a stop loss on every trade.

Zero-DLL on-chart HUD that calculates ATR-based Stop-Loss/Take-Profit distances and broker-normalized lot sizes across 3 configurable risk tiers.

Donchian channel breakout Expert Advisor with EMA trend filter, ATR stop, ATR trailing stop, break-even and position size from risk % of balance.

A library for MetaTrader 5 that declares rules between the inputs of an Expert Advisor once in the code. OnInit rejects a combination that breaks a rule, with the reason in the Journal; before an optimization starts, OnTesterInit estimates which share of its passes the rules would reject and warns above a limit you set.

Protects prop firm challenge and funded accounts: watches equity in real time and closes all trades before the daily loss or maximum loss limit is broken, with an optional profit target lock and a live progress panel.

Puts the contract specification of the chart symbol on one sheet, including the money value of one point and the margin for one lot.

Structural Swing Migration BUY is an educational Expert Advisor for MetaTrader 5 that opens BUY positions when confirmed swing highs and swing lows move upward together. It evaluates closed M15 candles and combines structural confirmation with a volatility threshold and a bullish candle filter.

One include file that encrypts texts and bytes so only a program with the same key can read them. A wrong key or a changed message is refused instead of read as garbage, keys can come from a password, and the code is checked against the official NIST and RFC test vectors.

설정 가능한 세션의 개장 범위(시작 시간 및 분 단위의 지속 시간, 서버 시간대 조정 포함), 박스 상하방의 1R 및 2R 수준, 그리고 세션 VWAP(틱 거래량 또는 브로커가 제공하는 경우 실제 거래량)을 표시합니다. 작은 패널은 최근 N개의 종료된 세션 중, 가격이 범위 상단만 돌파했는지, 하단만 돌파했는지, 양쪽 모두 돌파했는지, 아니면 전혀 돌파하지 않았는지를 집계하고, 첫 번째 돌파 후 가격이 1R 및 2R에 도달한 빈도를 표시합니다. 이 통계는 과거 데이터를 기반으로 한 집계로, 과거를 설명할 뿐 미래를 예측하지 않습니다. 마감된 봉만 사용되므로 재그리기 현상이 발생하지 않습니다. 선택 가능한 팝업, 푸시 및 소리 알림은 마감된 봉이 박스 범위 밖에서 마감될 때 세션당 방향별로 한 번씩 발동됩니다. iCustom()을 통해 Expert Advisor에서 8개의 버퍼(범위, 목표치, VWAP, 돌파 상태)를 읽을 수 있습니다. M1부터 M30까지 작동하며, 새로운 바만 재계산하고 제거 시 차트 객체를 삭제합니다. 읽기 전용: 절대 거래를 수행하지 않습니다. DLL이나 웹 요청이 필요하지 않습니다.

전일, 전주, 전월의 고점과 저점을 표시하며, 현재 가격 주변의 자동 반올림 가격 수준도 함께 표시합니다. 각 수준에는 가격이 해당 수준을 몇 번 터치했는지, 그리고 바가 해당 수준을 몇 번 스윕(수준을 뚫고 다시 원래 쪽으로 마감)했는지를 나타내는 라벨이 붙어 있습니다. 집계는 종가 봉만 반영하므로 재그리기(repaint) 현상이 발생하지 않습니다. 스윕 및 새로운 터치 발생 시 선택 가능한 알림(팝업, 푸시, 이메일, 소리) 기능을 제공합니다. 터치 허용 오차는 ATR의 일정 비율 또는 고정된 포인트 수로 설정할 수 있습니다. 지난 6개 기간의 레벨과 해당 터치 횟수는 iCustom()을 사용하는 Expert Advisor에서 활용할 수 있도록 12개의 지표 버퍼에 노출됩니다. H4까지의 모든 시간대에서 작동합니다. 읽기 전용: 거래를 개설, 수정 또는 청산하지 않습니다. DLL이나 웹 요청이 필요하지 않습니다.

Checks the chart's history against the symbol's trading sessions and separates real holes from holiday short sessions and days without bars. Marks the holes on the chart, shows coverage and the largest hole, warns when the history stops short of now, and can write a CSV report.

Prop Firm Equity Guard protects prop-firm challenges and funded accounts. It monitors live equity against your daily loss and max drawdown limits, then closes all positions, deletes pending orders and locks trading before the firm's limit is hit. A safety buffer makes it act early, and anything opened while locked is closed instantly. It supports static and trailing drawdown, an optional profit target lock and alerts, saves its state through restarts, and shows an on-chart dashboard with room left and a reset countdown. It works alongside manual trading and other EAs.

Shows the closed trades of the account in R (net profit divided by the money at risk at entry): expectancy, win rate, drawdown in R, losing streak, per-symbol summary and CSV export.

Drag a stop line on the chart and see the volume for a given risk, the real risk after rounding, and a warning when even the minimum volume risks too much.

Higher-timeframe EMA (fast and slow) on a lower-timeframe chart, using only higher-timeframe bars that are already closed. Values never change after the bar closes.

Round number levels for Gold (XAUUSD) and any symbol on MT5. Draws major and minor round levels around price plus Asia, London and New York session open lines, with an optional alert when a candle closes across a major level. Open source code.

Multi timeframe trend dashboard for Gold (XAUUSD) and any symbol on MT5. Shows up, down or flat for up to 6 timeframes from a fast and slow EMA on the last closed bar, with the distance in points and an alert when all line up. Open source code.

Engulfing and inside bar scanner for Gold (XAUUSD) and any symbol on MT5. Marks bullish and bearish engulfing candles and inside bars on closed bars, draws the mother bar range as a box and can alert on each pattern. Arrow buffers for iCustom. Open source code.

One include file that gives your EA or indicator keyboard shortcuts the user types into the inputs, such as Shift+B. Each press fires one action, Shift+B never fires on a plain B, and a shortcut that cannot work is refused at start with the reason.

Watches the equity like a prop firm does: daily loss limit and max loss limit, static or trailing, floating profit included. Stops new trades at a warning level, closes everything on a breach and remembers it after a restart.

선택한 시간 창 내의 고점과 저점을 표시하고, 각 방향에서 첫 번째 돌파가 발생하면 알림을 제공합니다. 해당 수준은 iCustom을 통해서도 확인할 수 있습니다.

이미 개설된 포지션을 관리합니다: 설정되지 않은 SL/TP를 추가하고, 스탑을 손익분기점으로 이동시키며, 트레일링 스탑을 적용하고, 포지션 수를 제한하며, 일일 자산 한도를 적용합니다. 이 시스템은 절대 새로운 거래를 개설하지 않습니다.

Measures how long price takes to come back to its moving average. The histogram shows the distance of the close from an EMA in ATR. Every time that distance first reaches a stretch level (1, 2 and 3 ATR by default), the indicator follows the stretch until the close is back at the average, runs further, or the wait is over. A panel shows, for each level, how often price came back, how often it ran further first, and the median and 80th-percentile number of bars the return took. One line can be pasted into a comment to compare symbols. It is a statistics tool and gives no trade signals.

Account guard for prop-firm challenges. It does not open trades: it watches the whole account (manual trades and any EA) and closes everything before the firm's limits are broken. - Daily loss limit: closes all and blocks trading until the next day. - Max drawdown: static or trailing (can lock at the start balance); closes all and locks the account. - Optional profit-target lock, max lots / max positions, Friday close. - On-chart panel (equity, today's P/L, daily and drawdown room left) and push alerts. - Equity peak and lock are saved per account, so a restart does not reset the protection. Main inputs: StartBalance, DailyLossUSD, DDMode, MaxDDUSD, LockAtStart, safety buffers, TargetUSD, MaxOpenLots, MaxOpenPositions, FridayCloseOn, ResetLock. Attach to any one chart, any symbol and timeframe, with Algo Trading enabled.

Draws a live heatmap of two optimised inputs while the Strategy Tester optimises your EA, and scores every cell by its neighbourhood: the plateau score is the mean minus k times the standard deviation of the surrounding cells. It shows whether your best parameters sit on a stable plateau or on a single lucky cell, and writes an HTML report, a CSV and a picture of the map. Includes a Monte Carlo drawdown criterion and a small demo EA. Part of the free Robustness Lab set.

Takes the closed trades of your account (all, or filtered by magic number and symbol), reshuffles or resamples them thousands of times and shows how deep the drawdown could realistically get. You get drawdown percentiles, the probability of a drawdown above your limit, the spread of final equity, an equity fan chart and a drawdown histogram, on the chart and as an HTML report. Part of the free Robustness Lab set.

Classifies the market as trend, mean-reversion or noise using three public measures: the Hurst exponent by rescaled range with small-sample bias correction, Kaufman's efficiency ratio and the percentile of the current ATR. A colour strip shows the regime bar by bar, and a panel shows the regime on M15, H1, H4 and D1 at the same time. Part of the free Robustness Lab set.

Shows how a symbol has behaved in every hour of every weekday, as a heatmap on the chart. Colour the cells by t-statistic, mean return, hit rate or average range. Cells that pass a significance threshold get a gold frame, and the panel tells you how many cells would pass that threshold by chance alone, so a single lucky hour is not mistaken for an edge. Hover any cell for its full numbers. Part of the free Robustness Lab set.

Calculates the lot size for a risk % and a stop distance on any symbol, using the broker's own profit calculation, so the result is exact for forex, gold, indices, stocks and crypto.

Builds H2 to D1 candles from H1 on the New York close clock, so your indicators see the same candles on every broker, no matter which server time it uses. Detects the server clock automatically.

One call before you send an order: is the session open, how long until it closes, are quotes still coming in, is trading allowed. Gives you the reason when the answer is no.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220