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

icon

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

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

코드를 제출하세요

Shows, for each timeframe and symbol, how many bars an EA, indicator or script can read on a live chart and from what date, and flags the timeframes where "Max bars in chart" cuts off older history that the terminal already has.

Saves the closed trades of your MT5 account history to a CSV file, one row per trade, plus a second file with totals for each magic number.

A service that writes your balance, equity, floating result, margin and the drawdown from today's highest recorded equity to a CSV file every minute. Runs without a chart and never trades.

평균 또는 변동성의 변화를 온라인으로 감지하는 방법 (Adams-MacKay): 최근 k 바 동안의 변화 확률, 현재 구간 길이, 예측값 및 지표.

순위에 대한 5가지 이변량 코풀라를 적합시키며, 켄달의 타우, 꼬리 의존성, 공동 극값 발생일 확률, AIC 및 쌍별 거래의 조건부 확률을 포함합니다.

Include file with small functions to find the Gotobi days: the 5th, 10th, 15th, 20th, 25th and the last day of each month, moved back to the previous business day when they fall on a weekend or a holiday you list. Information only, no trading functions.

Free MT5 research EA with three closed-bar entry models, ATR stops, fixed-R targets and a tester cost ledger. Version 2.31 uses the chart symbol and timeframe. Historical research: XAUUSD M5. Educational source; published tests were loss-making.

Tracks every touch of a round "00" or "50" level and keeps a running scorecard of how often price rejects versus breaks through — then maps that history onto the levels nearest to current price.

A per-hour profile of when the day's range actually gets built, plus a live readout of whether today is running ahead of or behind its usual pace

An indicator that reads the broker's weekly trade-session schedule for the chart symbol and shows whether trading is open, when the next close or open happens and a live countdown to it. It also marks bars that lie completely outside the trade sessions.

Check the first and last available bars, gaps between bars, and available MT5 tick history for a date range before a backtest.

A library for MetaTrader 5 that puts trade management code behind an interface and tests it against a fake broker, without a trade server. The fake checks stops level, freeze level, tick grid and volume step, answers with retcodes chosen by the test and logs every request. An example break-even rule and 26 test cases come with it.

Starts a trailing stop when the price reaches the take-profit zone of a position you already have open. The take profit is removed, extended or kept. It never opens trades.

MACD regular and hidden divergences on closed bars with an honest first-touch statistics panel. Not a trading signal.

Closes only the open positions that match your filters and, if you choose, deletes matching pending orders. Shows a summary and asks before it acts.

Saves your closed trades to a CSV file for your spreadsheet: one row per trade with points, costs, net result, R multiple, MAE and MFE.

한 번의 클릭으로 모든 미결제 포지션을 청산하고, 원하는 경우 보류 중인 주문도 삭제합니다. 종목 코드와 매직 넘버로 필터링할 수 있습니다.

차트에 아시아, 런던, 뉴욕 세션의 박스를 각 세션의 고가와 저가를 표시하여 그립니다.

Finds every inside-bar pattern in the history of your chart and follows it to the end: which side of the mother bar broke first, whether the breakout held or failed within a few bars, and how many inside bars came before it. The histogram marks each breakout, boxes show the patterns on the chart, and a panel gives the statistics for your own symbol and timeframe, split by the number of inside bars and by the size of the mother bar, plus one line that can be pasted into a comment to compare symbols.

A simple account guard: once the day's loss (equity against the balance at the start of the day) reaches your limit, it closes all positions, deletes pending orders and keeps the account flat until the next day. Works on manual trades and on any EA. Never opens trades.

Moves the stop loss of open positions to break-even plus a small locked profit once they reach a profit trigger. Works on manual trades and on trades from any other EA (magic filter). Never opens or closes trades and never moves a stop backwards.

Counts run of bars of the same color and measures what the next bar did after a run of every length: how often the run continued, how often it reversed, and how far the next bar moved in ATR. The figures are built from the history of your own symbol and timeframe, each row is compared with the share of bars of that color, and the histogram shows the length of the run at every bar. A panel gives the table and one line that can be pasted into a comment to compare symbols.

A script that sets your own margin call and stop-out levels above the broker's. It alerts when the margin level falls below your margin call level and, below your stop-out level, closes positions one at a time, the worst net result first, until the level is back up, the way a broker stop-out works.

Free MT5 dashboard comparing eight major-currency strengths and ranking up to 28 FX pairs from completed candles. Includes broker-prefix/suffix detection, synchronization checks, chart navigation and eight output buffers. Independent MIT-licensed source; no trading operations.

One include file that reads and writes JSON in MQL5 and MQL4. It refuses broken JSON and tells you the line and column of the mistake, keeps numbers exact, reads and writes UTF-8 files, and saves your EA's settings to a file and loads them back.

Regular and hidden divergences between price and RSI, MACD, Stochastic, CCI or Momentum. Swings confirmed on closed bars, signal on the confirmation bar, lines on oscillator and price. No repaint, buffers for EAs.

Previous day, week and month high and low, New York midnight open, period opens and the Asian range, with sweep marks and one alert per level. Day from broker or New York time. No repaint, buffers for EAs.

An include file that makes the way an EA sends its orders safe: the same signal is never traded twice. It has no trading strategy inside and comes with a small example EA.

Shows US Pacific time on the chart, with the broker's time beside it, and the Pacific time of any candle under the mouse.

Calculates the correct lot size from your risk (% of balance, % of equity or a fixed amount) and stop-loss distance. Shows actual risk and margin. Never places trades.

Shows the time left until the current candle closes and the live spread in any chart corner. Keeps counting every second, even when no ticks arrive.

Closes open positions and deletes pending orders in one run, with filters for symbol, magic number, side and profit or loss. Asks for confirmation and retries failed closes.

14가지 전환 가능한 필터를 갖춘 슈퍼트렌드 스캘핑 EA로, 실제 스프레드를 반영한 손익분기점에 필요한 승률 옆에 실제 승률을 표시하는 자가 측정 패널이 있어, 특정 설정이 진정한 우위를 가지고 있는지, 아니면 단순히 승률이 높은 것뿐인지 확인할 수 있습니다.

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

Range Compression Zones Breakout draws range compression zones and marks breakouts that pass a higher-timeframe high/low filter and a volume filter. Inspired by the range compression idea in Domenico D'Errico's Accumulation/Distribution study (TASC, August 2018). Independent implementation, not a literal port of the published study.

Tick-Based Spread Distribution Profiler reads historical Bid/Ask ticks via CopyTicksRange() and plots 24h spread percentiles (P50, P90, P99) in a separate subwindow.

Execution & Slippage Forensics audits MetaTrader 5 account history (Orders vs Deals) to quantify real execution quality in points and currency.

Classifies volatility on closed bars using ATR(14), with three color-coded regimes and optional alerts.

Moves the stop loss to break-even and then trails it on trades that are already open. It never opens or closes a trade.

Dynamic Volume Profile indicator for MetaTrader 5 displaying horizontal volume distribution, Point of Control (POC), and Value Area (VAH/VAL) zones. Includes a layout switcher to anchor the histogram on either the right or left side of the lookback range.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219