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

icon

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

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

코드를 제출하세요

프로프 펌 계좌를 위한 계좌 단위 보호 기능입니다. 계좌 내 모든 포지션을 모니터링하며, 일일 또는 최대 손실 한도에 도달하면 모든 포지션을 청산하고, 포지션당 위험 노출 금액을 제한하며, 스탑 주문이 설정되지 않은 포지션을 청산하고, 시장 변동성이 큰 뉴스가 발표될 때 포지션을 정리할 수 있습니다.

충동 캔들을 표시합니다: 캔들 몸통이 최소 ATR × 배수 이상, 캔들 몸통이 캔들 범위의 설정된 비율 이상, 종가가 극값 근처에 위치, 선택적으로 틱 거래량 확인. 강세 충동 캔들 아래에는 녹색 화살표, 약세 충동 캔들 위에는 빨간색 화살표가 표시됩니다. 마감된 봉만 표시하며, 재그림 현상은 없습니다. 신호는 두 개의 버퍼에 저장되어 있으므로, Expert Advisor가 iCustom을 통해 이를 읽을 수 있습니다.

슈퍼트렌드의 방향성과 ADX 및 DI 확인 신호를 결합한 MetaTrader 5용 추세 추종 전문가 자문가(EA)입니다. ATR 기반의 손절매를 사용하며, 거래당 최대 0.5%의 순자산 위험을 감수합니다.

Range boxes that are drawn when market trend strength weakens

Detects the broker's GMT offset and its daylight-time rule (fixed, US or European) from the weekly closes in the H1 history, the same way live and in the Strategy Tester, with functions that convert New York times to server time and back.

Partial close expert advisor for MetaTrader 5: closes a percent of the position at TP1, TP2, TP3, TP4 and TP5, moves the stop loss to breakeven and trails it. Works on manual trades and on positions of any EA, on any symbol, Gold (XAUUSD) included. Open source code.

Shows the broker's hidden financing markup and the carry for every symbol, as annual % of notional.

금(Gold)을 대상으로 한 터틀(Turtle) 방식의 돈치안(Donchian) 브레이크아웃 전략으로, ATR 트레일링 스톱, 터틀 청산 채널, 고정 목표가 등 세 가지 청산 방식이 동시에 적용됩니다. 2025년과 2026년 XAUUSD 1시간(H1) 및 4시간(H4) 차트에서 백테스트를 진행한 결과, 12가지 조합 모두에서 수익을 냈습니다. 리페인팅이 없으며, Expert Advisor용 버퍼가 포함되어 있습니다.

마크는 N개의 마감된 봉이 이를 확인한 후에야 스윙 고점과 저점을 표시하므로, 그려진 스윙은 절대 이동하거나 사라지지 않습니다.

Unit root and cointegration tests (ADF, Engle-Granger, Johansen) with MacKinnon p-values, hedge ratio, half-life and z-score of the spread, and a pair scanner.

Kalman filter and smoother with an exact diffuse start, missing values and maximum likelihood: local level, local linear trend and a regression whose hedge ratio drifts.

Gaussian hidden Markov model fitted by Baum-Welch: regime probabilities without look-ahead, most likely path, expected durations and regime forecasts.

Holidays and early halts of the CME equity index futures (S&P 500, Nasdaq-100, Dow, Russell 2000, E-mini and Micro), computed from the US holiday rules for any year, with a script that checks the calendar against your broker's own M1 history.

Include for EAs running 24/7 on an MQL5 VPS or PC: run-where switch, order send with OK/FAIL/UNKNOWN result (no duplicate orders after a timeout), restart-safe counters, positions closed while the EA was off, append-only log and optional Telegram. No trading logic inside.

Fits GARCH(1,1), GJR-GARCH and EGARCH with normal, Student t or GED shocks by maximum likelihood, with robust standard errors and variance forecasts.

Pine Script ATR 트레일링 스톱 지표의 MQL5 포팅 버전: nLoss = ATR-배수이며, 상승 추세에서는 스톱이 가격 아래로, 하락 추세에서는 가격 위로 단계적으로 조정되며, 가격이 해당 지점을 돌파하여 마감하면 (매수/매도 화살표와 함께) 방향이 전환됩니다. 이 포팅 버전에는 Python 참조 포팅본과, 두 구현이 파인 스크립트의 의미 체계(na/nz/시리즈 이력)를 바(bar) 단위로 문자 그대로 재현한 것과 일치하는지 확인하는 패리티 테스트가 포함되어 있습니다.

MT5에서 체결 및 청산된 포지션을 텔레그램 채팅방에 게시합니다: 포지션 방향, 종목, 진입 가격, 스탑 및 목표 가격(핍 단위), 랏 수, 그리고 청산 시 결과, 핍, R-배수 및 보유 시간. 재시도 대기열, 재시작 시 데이터 보존, 실제 거래는 수행하지 않습니다. MT5용 무료 텔레그램 및 디스코드 거래 알림 도구

리스크 조정, 스프레드 보호, 지속적인 일일 손실 제한, 손익분기점 및 추적 스탑 기능을 갖춘 교육용 MT5 헤징 계좌 거래 패널.

백테스트에서도 작동하는 진정한 경제 캘린더 뉴스 필터입니다. 스크립트를 통해 이벤트를 한 번만 내보내면, 실시간 환경과 전략 테스터 모두에서 뉴스 발생 시 새로운 진입을 차단할 수 있습니다. 과거 캘린더 시간의 1시간 일광절약시간제(DST) 변경 문제를 해결합니다.

Portfolio weights from the returns of symbols or Expert Advisors: inverse volatility, risk parity, hierarchical risk parity, minimum variance, maximum diversification, Ledoit-Wolf covariance.

Reads a Strategy Tester report saved as HTML into its deals, closed trades, net profit and balance drawdowns, for comparing, combining or exporting backtests.

Automated checks of an Expert Advisor on a live demo chart (restart, second copy, server history, chart button) with a PASS/FAIL report.

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번으로 표시됩니다.

교육용 MT5 EA: 클로즈드 바 EMA 크로스오버 진입, ATR 기반 손절매 및 익절, OrderCalcProfit을 통한 순자산의 고정 비율에 따른 로트 크기 설정, 스프레드 필터, 매직 넘버 분리 및 서버 반환 코드 확인 기능을 제공합니다. 리스크 관리가 가능한 EA를 구축하기 위한 깔끔한 템플릿입니다. 수익 보장 없음.

현재/평균/최대/최소 통계, 거래당 비용, 스캘퍼를 위한 임계값 알림이 포함된 히스토그램을 하위 창에 표시합니다.

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.

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

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

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.

1...5678910111213141516171819...220