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

icon

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

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

코드를 제출하세요

Auto Fibonacci retracement for Gold (XAUUSD), forex and any symbol: draws the levels on the last completed swing leg by itself, with the 61.8 in its own colour, prices on each level and an optional alert. Open source code.

Forex session boxes for Gold (XAUUSD), forex and any symbol: draws the Asian, London and New York sessions with their high and low extended to the right and the range in points, in your broker server time. Open source code.

An all-in-one Smart Money Concepts (SMC) indicator that automatically identifies Swing & Internal Market Structure (BOS/CHoCH), Order Blocks, Premium/Discount zones, and Equal Highs/Lows. It features a real-time multi-timeframe bias dashboard to help traders make informed decisions.

MetaTrader 5용, 프로프 펌 리스크 가드 기능이 내장되어 있고 숨겨진 지지선/저항선 탐색기가 탑재된 수동 거래 패널입니다.

스마트 색상 매칭, 독립적인 가격 눈금, 캔들 카운트다운 타이머 기능을 갖춘 실시간 다중 시간대 사이드 패널 미니 차트.

브로커의 세션 테이블을 M1 시계열 데이터와 대조하여 확인합니다. 주중 매 분마다, 해당 종목이 지난 N일 중 실제로 바(bar)가 존재하는 날의 수를 집계하고, 그 결과를 SymbolInfoSessionQuote 및 SymbolInfoSessionTrade 옆에 기록합니다. 여기에는 일반적으로 비어 있는(롤오버 공백) 선언된 분, 테이블에서 ‘종가’로 처리된 분 단위의 바, 거래 및 호가 테이블 간의 불일치, 조기 휴장 같은 일회성 중단 사항 등을 집계합니다. 평일별 실제 세션 수를 출력하고, 모든 결과를 CSV 파일로 저장하며 계산 과정을 출력합니다. 읽기 전용: 거래 기능, DLL, 네트워크 사용 없음.

Expert Advisor에서 열린 포지션을 관리합니다: 손익분기점, 트레일링 스톱, 두 차례의 부분 청산, 그리고 해당 설정이 없는 포지션에 대한 스톱 및 목표가 설정 등이 포함됩니다. 이 Expert Advisor는 절대 매매를 개시하지 않습니다.

A free MT5 script to calculate position size, risk amount, and risk-to-reward ratio visually on the chart.

On a linear MT5 chart, a trend that grows or falls by a steady percentage is a curve, and a straight channel misses it. This indicator draws the real exponential curve, fitted on closed bars to the cleanest of 19 look-back windows, with deviation zones, a projection ahead and a card with the fit, the trend pace and the price position.

Real-time tick spread monitor that plots Maximum and Average spread curves per bar with points/pips display and local CSV persistence.

Lightweight Expert Advisor combining Scalp & Swing logic with an "Always-ON" position-securing layer. Includes a fully interactive on-chart panel with manual trade buttons, risk- based lot sizing, partial close, break-even, trailing stop, swing SL/TP switching, and a one-click "Secure All" tool.

Countdown to the next high-impact news from the MT5 economic calendar, with a red NEWS WINDOW warning for prop-firm news rules. Display and alerts only - it never trades.

Drag the MetaTrader 5 chart freely in any direction and stretch the price and time scales with the mouse, the way TradingView does it. One click on ON/OFF returns the normal chart. A small indicator that draws nothing, never trades and works next to any Expert Advisor.

프로프 펌 챌린지 규칙을 위한 하나의 패널: 일일 손실, 최대 손실(고정 또는 추적형), 수익 목표, 최소 거래 일수, 그리고 최고 실적일(일관성) 규칙. 각 항목에 대해 현재 사용된 금액과 남은 여유가 얼마인지 금액 단위로 표시됩니다. "One more trade"는 오늘 남은 한도 범위와 최대 손실 한도 범위 내에서 스톱아웃을 피할 수 있는 최대 랏 크기를 알려줍니다. 읽기 전용: 거래를 개설, 변경 또는 청산하지 않습니다. 사전 설정에는 일반적인 값이 포함되어 있습니다. 회사마다 규칙이 다를 수 있으므로, 해당 회사의 규칙을 확인하고 ‘사용자 지정’ 사전 설정을 사용하십시오. ATS Risk Library(ATS_RiskLib.mqh, 포함)를 기반으로 제작되었습니다.

아시아 세션의 가격 변동 범위를 표시하고, 런던 세션에서 발생한 돌파 지점을 화살표, 스톱 및 목표 가격 수준, 알림으로 표시합니다.

Tick Scalper Helper is a manual trading utility for traders who work on very short time frames and want to see every price change.

'실제 틱을 기반으로 한 모든 틱' 백테스트가 재현하는 틱 내역을 감사합니다. 지난 N일 동안 종목당 5가지 항목을 점검합니다: 불가능한 호가 및 교차 호가, 역방향으로 흐르거나 반복되는 타임스탬프, 해당 종목의 중앙값 스프레드의 배수로 측정된 1틱 가격 반전, 브로커가 선언한 호가 세션 내의 데이터 공백, 그리고 틱 데이터와 M1 바 데이터가 일치하지 않는 분 단위 구간. 모든 검사 결과는 밀리초 단위 타임스탬프와 함께 CSV 파일로 저장되며, 도구는 보고서를 재검토할 수 있도록 자체 계산 과정을 출력합니다. 읽기 전용: 거래 기능, DLL, 네트워크 연결 없음.

M15 차트용 무료 완전 오픈 소스 JPN225(닛케이 225) EA입니다. 가격이 상승세를 보이고, 모멘텀이 과도하지 않으며, 거래량이 적은 시점에 매수합니다. 2022년부터 2026년까지의 백테스트 결과: 수익률 1.68, 연평균 +18.5%, 15회의 스트레스 테스트 통과. 17:00 기준 손익은 제로입니다.

Draws the daily opening range and its breakout levels, with a dashboard showing how the range resolved over your lookback: broken up, down, both ways or not at all, and how often a breakout hit its target before the opposite side.

Prop Firm Guard Panel is an on-chart panel for prop firm challenges and funded accounts. It shows in real time the daily loss used and the room left, the max loss room and equity floor, and the progress toward the profit target. The start-of-day balance is rebuilt from today's closed deals, so the values stay correct after a restart. Colors change from green to orange to red as limits get closer, with optional popup and push alerts. Auto, dark or light theme. Display only: it never opens, modifies or closes trades.

Mouse Scroll Zoom in Zoom Out

Trending up, trending down or ranging: a verdict for every bar, and how long it has held. Each stretch of one regime is boxed on the price chart, ADX columns below show how strong it is, and a one-line panel gives the regime, its age and the ADX. Values for Expert Advisors and an alert on closed bars.

Reads your closed positions and the M1 bars after each exit. Shows how many stopped-out trades later reached their take profit, how far take-profit trades kept running and how much move was left after manual or EA exits. Summary panel, per-position log table and CSV.

Free educational EA — a single-position trend-following EMA crossover system for XAUUSD M30, released as open source for beginners to study trade ownership guards, preflight order validation, risk-based lot sizing, and server-time session filtering. This code demonstrates how a strategy - identifies and manages only its own positions and orders through MagicNumber and comment tags, - wraps CTrade with an OrderCheck preflight that blocks invalid or margin-breaking requests, - sizes each trade from a fixed stop-loss and risk percentage, - and restricts entries to a configurable broker session window with a daily close-all — all evaluated on completed bars only, so signals never repaint.

아시아, 런던, 뉴욕 세션의 범위 박스를 표시하고 유동성 스윕을 표시합니다: 유동성 스윕이란, 완료된 세션의 고점 또는 저점을 넘어 촛대 심지가 뻗어 나갔다가 다시 그 범위 안으로 돌아와 마감된 캔들을 말합니다. 재그리기되지 않는 화살표, 확장된 세션 수준, 알림 및 iCustom 지원 버퍼 기능을 제공합니다.

계정 보호 기능이 내장된 ‘개장 범위 돌파(Opening Range Breakout)’ EA 템플릿입니다. 세션 개장 후 첫 N분 동안의 고점과 저점을 표시하고, 해당 범위 상단과 하단에 OCO 스톱 주문을 설정합니다. 위험 기반 포지션 크기 조정, 일일 손실 한도, 최대 드로다운 한도, ATR 범위 필터, 거래 방향 필터, 그리고 익일 이월 포지션에 대한 보호 기능이 포함되어 있습니다. 모든 세션 시간은 사용자 정의가 가능한 입력값입니다. 본 템플릿은 교육용이며, 수익을 보장하는 시스템이 아닙니다. 실거래에 사용하기 전에 반드시 데모 계좌에서 테스트하십시오.

Non-repainting fair value gaps on closed bars, with zone states (active, touched, mitigated) and iCustom buffers for EAs.

Real-time daily drawdown buffer monitor and exact breach price line indicator for prop firm accounts. Features 00:00 server-time deal history reconstruction (including entry commissions), 00:00 HWM snapshot locking, two-stage OrderCalcProfit cross-rate calibration, and iCustom() data buffers for Expert Advisors.

현재 ATR의 백분위 순위에 따라 차트 배경을 변동성 구간(압축, 정상, 확장)별로 색상을 구분하여 표시합니다. 차트에 현재 구간을 표시하고, 구간 변경 시 알림을 제공하며, Expert Advisors용 버퍼를 노출합니다.

현재 ATR의 백분위 순위에 따라 차트 배경을 변동성 구간(압축, 정상, 확장)별로 색상을 구분하여 표시합니다. 차트에 현재 구간을 표시하고, 구간 변경 시 알림을 제공하며, Expert Advisors용 버퍼를 노출합니다.

한 번의 클릭으로 모든 마켓워치 종목 또는 사용자 지정 종목 목록의 차트를 모든 시간대에서 열 수 있으며, 각 차트에 원하는 템플릿을 적용할 수도 있습니다. 이미 열려 있는 차트는 건너뛰며, 한 번에 열리는 차트의 수를 제한합니다.

이 기능은 M1 거래 내역에서 계산된 포인트 및 금액 단위의 최대 부정적 편차(MAE)와 최대 긍정적 편차(MFE), 그리고 각 거래가 포착한 가용 변동폭의 비율을 포함하여 체결된 거래를 CSV 파일로 내보냅니다.

See the real leverage of every Market Watch symbol, including floating margin tiers, with swap, commission and live spread in one panel.

Watches the whole account and closes everything before the daily loss or max drawdown limit is breached, then keeps the account flat until the block ends. Does not trade.

Expert Advisor template that shows safe execution practices: closed-bar signals once per bar, no duplicate entries after an MT5 or VPS restart, spread and stop-level checks, normalised volume and a log line for every decision.

Shows the current spread next to its recent average and maximum and compares it with ATR, so you can see at a glance when trading costs are too high relative to the symbol's normal movement.

On-chart panel that calculates the lot size for a given risk (% of balance, % of equity or fixed money) and stop-loss distance, using the broker's tick size and tick value. Works on forex, metals, indices and crypto.

Trailing stop and breakeven manager for Gold (XAUUSD), forex and any symbol: moves the stop to breakeven with an offset, then trails it in points or ATR multiples on manual trades and on any EA, filtered by magic and symbol. Open source code.

Script that reads the deal history of your account and writes a plain note on how an Expert Advisor really trades: entries, stops and trailing, lot changes, martingale, averaging, trades at once, hours and holding time, plus what to watch out for. It never trades and says nothing about profit

WaveMaster 오실로스코프용 신호 기반 자동화. WaveMaster 오실로스코프용 자동 실행 엔진입니다. 신호 버퍼를 실시간으로 읽어들입니다. 포괄적인 리스크 관리, 트레일링, 손익분기점 기능이 내장되어 있습니다.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213