거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
귀하의 MetaTrader 5 터미널에서 CodeBase에 액세스 해보세요
올바른 코드를 찾을 수 없습니까? 프리랜싱 섹션에서 주문하세요
Expert Advisor 또는 지표 작성 방법

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

icon

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

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

코드를 제출하세요

Writes the trading specification of every symbol to a CSV file: volume step, filling modes, stops level, tick value and more.

DailyLossGuard — Hard Daily Loss Protection (Prop-Firm Challenge Essential) The #1 reason funded challenges fail is breaking the daily loss rule. DailyLossGuard enforces it automatically: it tracks your daily P/L every tick against your limit (% of day-start balance or a fixed amount). On breach, it closes ALL positions instantly (optional), fires an Alert + push notification, and shows a red BREACHED panel till next day. Features: Magic Number filter (guard one EA or the whole account), live top-center dashboard (daily P/L, limit, ARMED/BREACHED status) that self-heals on timeframe changes and resizes. Built for: prop-firm challenge & funded accounts, multi-bot EA traders, and manual traders who want a hard, emotion-free daily stop. Honest note: no EA can force other EAs to stop opening trades (MetaTrader API limitation) — this guard closes positions and alerts you instantly so you stay in control. Free. No DLLs. No profit promises — it manages risk, it doesn't generate signals

Reads the server clock from the symbol's own H1 history. The forex and CME week closes at 17:00 New York, so the server time of every weekly close gives the server's UTC offset for that week. Over 60 weeks it flags irregular closes, dates every clock change and tests it against the US and European daylight saving calendars, cross-checks TimeTradeServer minus TimeGMT, and lists the server time of the London, New York, Tokyo and Sydney opens for the coming weeks. Writes every close to CSV. Read only: no trade function, no DLL, no network.

모든 M1 바에서 가상 브래킷 거래를 개설하고, 실제 틱 기록에 따라 시나리오를 진행하며, 다양한 스탑 거리 범위에 대해 1분 OHLC 모델링이 해당 거래를 잘못된 방향으로 판단하는 빈도를 보고합니다.

브로커가 어떤 명칭으로 부르든 상관없이 ‘골드’ 심볼을 감지하고, 계약 사양을 임의로 가정하지 않고 터미널에서 직접 읽어오며, 계좌 통화로 표시된 위험 금액을 해당 브로커에 맞는 정확한 랏 크기로 변환합니다.

청산된 거래 건당 한 줄의 CSV 파일을 내보내며, 여기에는 거래 내역서에는 포함되지 않는 수치들이 포함됩니다: 해당 거래에서 나타난 최대 미실현 이익(MFE), 견뎌낸 최대 미실현 손실(MAE), MFE 중 실제로 실현된 금액, 거래가 진행된 바(bar) 수, 그리고 보유 기간입니다. ‘Trade Excursion’ 지표와 동일한 측정 기준이지만, 차트에 표시하는 대신 파일로 출력됩니다. 이 데이터에 대해 물어볼 가치가 있는 질문들은 차트만으로는 답할 수 없기 때문입니다. 예를 들어, 포착 비율은 진입 시각에 따라 달라지는가? 조기 청산한 거래가 가장 오래 보유한 거래인가? 월요일에 발생한 손실 거래의 MAE는 금요일과 다른가? CSV 파일이 생성되면 피벗 테이블 하나로 이러한 질문에 대한 답을 얻을 수 있습니다. 출력 결과는 헤더 행이 포함된 세미콜론으로 구분된 형식으로, MQL5\Files 폴더에 저장되며 어떤 스프레드시트 프로그램에서도 열 수 있습니다. 측정 한계: 편차는 선택한 시간대의 봉 고점과 저점에서 산출되며, 봉 내부의 가격 변동 경로는 알 수 없습니다. ‘봉’ 열은 각 거래의 해상도를 나타내며, 요약 값은 단일 봉 거래를 평균화하지 않고 별도로 집계합니다.

CME에서 금은 매일 유지보수 휴장 시간을 갖습니다. 11년간의 표본 데이터에 따르면, 휴장 후 첫 1시간 동안 금 가격은 우연으로 설명할 수 있는 수준을 넘어 상승하는 반면, 그날의 나머지 시간대에는 변동이 없는 것으로 나타났습니다. 세션당 1회 거래, 변동성에 비례하는 서버 측 스톱, 평균화나 그리드 전략 없음. 그러다 보니 제 비용 모델이 틀린 것으로 드러났습니다. 실시간 티크 백테스트 결과, 장 재개 시 실제 왕복 비용은 제 연구에서 산출한 19포인트가 아니라 약 60포인트인 것으로 나타났습니다. M1 바 스프레드 필드는 바당 요약값이므로 실제 비용을 대략 3배 정도 과소평가한 것입니다. 수정된 비용으로 11년 치 데이터를 재분석한 결과: +3.34 bps, t 7.40, 승률 59.3% -> +1.60 bps, t 3.42, 승률 50.8% 수익성은 유지되지만, 원래 강도의 절반 미만 수준으로 떨어졌습니다. 두 번째 수치가 실제 결과입니다. 다음은 사실이 아닙니다: 연간 약 +3.3%, 드로다운 4.6%, 약 9년에 한 번씩 마이너스 수익. 0.01 랏 기준 연간 약 130회 — 이 수치는 전략이 아닌 포지션 규모를 나타내는 것입니다.

Shows how much of the daily loss limit of a prop firm account is already used, and how much is left. Read-only indicator.

Measures how far your PC clock is from the trade server's clock, from the server time stamped on live ticks, and tells you how to fix it.

Regular and hidden divergences between price and ten oscillators calculated inside the indicator: MACD, MACD histogram, RSI, Stochastic, CCI, Momentum, OBV, VWMACD, Chaikin Money Flow and MFI. Lines on price, a box naming every oscillator that agrees, and alerts.

Session Levels draws the reference levels intraday traders watch most: Asian range, London and New York sessions, previous day and week high/low, daily VWAP, swing points and round numbers. Hover any level to read what it is and why it matters. Optional alerts when price breaks the Asian range or the previous day high/low.

Real-time multi-timeframe side panel mini-chart with smart color matching, independent price scale, and candle countdown timer.

차트에 적용하고 원하는 사용자 지정 지표의 이름을 입력하기만 하면, 해당 지표의 버퍼에 따라 팝업, 소리, 휴대폰 푸시 알림 또는 이메일로 알림을 받을 수 있습니다. 이 도구는 iCustom을 통해 지표를 읽기 때문에 소스 코드가 필요하지 않으며, 다운로드한 컴파일된 .ex5 파일만 있으면 충분합니다. 또한 더 높은 시간대의 차트에서 해당 지표를 읽어올 수 있으며, 마감된 바를 재확인하여 지표가 재그리기(repaint)되는지 아니면 단순히 지연(lag)되는지 알려줍니다. 이 도구는 EXPLORE 모드로 열리며, 지표가 가진 모든 버퍼와 각 버퍼의 내용을 나열해 줍니다. “어떤 버퍼에 신호가 들어 있는지”를 파악하는 것이 바로 대부분의 사용자가 iCustom 사용을 아예 포기하게 만드는 주된 이유이기 때문입니다.

iCustom을 통해 SuperTrend TV 지표를 기반으로 종가 봉만 대상으로 거래하는 전문가 자문가(EA)로, 모든 거래가 신호와 일치하며 단 하나의 신호도 놓치지 않았음을 입증하는 감사 보고서가 함께 제공됩니다.

Look after open positions in an Expert Advisor: break-even, trailing stop, two partial closes, and a stop and target for positions that have none. It never opens a trade.

Checks the broker's session table against the M1 history. For every minute of the week it counts on how many of the last N days the symbol really has a bar, and sets that next to SymbolInfoSessionQuote and SymbolInfoSessionTrade: declared minutes that are usually empty (rollover holes), bars in minutes the table calls closed, trade and quote tables that disagree, and one-off outages such as an early holiday close. Prints the real sessions per weekday, writes every finding to CSV and prints its own arithmetic. Read only: no trade function, no DLL, no network.

A manual trading panel with a built-in prop-firm risk guard and a hidden Support/Resistance finder for MetaTrader 5.

A MetaTrader 5 utility that treats the bid and ask quote streams as two independent physical trajectories and fits a local quadratic to each, producing position, velocity, and acceleration with honest error bars and an out-of-sample forecast scoreboard.

Draws ICT structure on the chart (liquidity pools, sweeps, market structure shift, fair value gaps) from closed bars only, adds a trade plan for every confirmed setup and keeps an honest statistics panel of what those setups did on your symbol. Analysis only – it does not trade.

그리드 전략을 운영하는 모든 사람은 “내 계좌 잔고가 충분한가?”라고 묻습니다. 흔히 나오는 대답인 ‘마지막 그리드 단계에서의 손실액’은 잘못된 수치입니다. 계좌를 바닥내는 진짜 원인은, 포지션이 여전히 열려 있고 회복 가능해 보임에도 불구하고 마진 레벨이 브로커의 스톱아웃 수준에 도달하는 것입니다. 이 EA는 실제 수치를 계산한 뒤, 해당 종목의 M1 차트 기록에서 그 정도 규모의 가격 변동이 이미 몇 번이나 발생했는지 집계합니다. 이 EA가 바로잡는 세 가지 실수는 모두 투자자를 안심시키는 방향으로 오류를 범하는 것들입니다: N개의 레그로 구성된 체인은 단계 x N이 아니라 x N(N-1)/2에서 손실을 기록합니다(레그 10개일 경우, 손실 단계는 10이 아니라 45입니다); 미결제 포지션은 손실이 누적되는 동안에도 마진을 묶어두며; 스톱아웃은 0이 아닌 백분율로 계산됩니다. 즉, 50%에서는 자본의 절반을 잃는 것만으로도 충분합니다. "86달러의 여유가 필요합니다"라는 표현은 추상적인 개념입니다. "'100일 동안 71번, 즉 1.4일에 한 번씩 그 정도의 변동이 발생했다'는 것은 의사결정입니다. InpEquity를 아직 보유하지 않은 규모로 설정하여 해당 구성이 실제로 무엇을 필요로 하는지 확인해 보십시오. 엄격한 읽기 전용: 포지션을 개설, 청산 또는 수정하지 않습니다.

간단한 프롬프트 파일을 사용하여 언어, 성격, 메뉴 및 행동 방식을 선택해 MetaTrader 5 AI 어시스턴트를 나만의 취향에 맞게 설정하세요.

One panel for the rules of a prop firm challenge: daily loss, maximum loss (static or trailing), profit target, minimum trading days and the best-day (consistency) rule. For each one it shows how much is used and how much room is left, in money. "One more trade" tells you the largest lot size that still keeps a stop-out inside the room left today and in the max-loss room. Read-only: it never opens, changes or closes a trade. The presets hold typical values; firms change their rules, so check yours and use the Custom preset. Built on the ATS Risk Library (ATS_RiskLib.mqh, included).

A small include file for Expert Advisors and trade managers. It turns your risk rules into yes/no answers: how many lots does this stop allow, is the daily loss limit reached, is the maximum drawdown (static or trailing) reached, how much is at risk across all open positions, and are spread and session acceptable. The lot is never rounded up: if the broker minimum lot would risk more than allowed, the trade is skipped and the reason is returned. Limits survive a terminal restart. The library only measures: it sends no order. Includes a demo account guard (no trading by default) and a self-test with 78 checks.

The Trend BOSS Indicator identifies regimes such as trending, ranging or volatile using a Bag-of-SFA-Symbols (BOSS) classifier. Gate your strategies behind specific regimes or use the indicator to identify various market conditions.

Measures market activity from the waits between quotes. An ACD model with the daily rhythm removed gives one ratio per tick: 1 is normal, 2 twice as busy.

Extrapolator fits a sum of sinusoidal harmonics to the recent price history and extends the fitted curve to the right of the last bar as a forecast.The forecast is a mathematical extrapolation of past cyclical behaviour, not a guarantee of future price movement. The last part of the line is redrawn while the current model bar is forming, and the fitted curve changes with each refit.

A free, fully open JPN225 (Nikkei 225) EA for M15. Buys when price leans up, momentum isn't stretched and volume is quiet. Backtest 2022 to 2026: profit factor 1.68, +18.5% a year, passed 15 stress tests. Flat by 17:00.

ATR 필터링, 스톱 거리 기반 포지션 크기 조정, 선택적 손익분기점/부분 청산 기능, 공유 차트 데스크를 갖춘 세션 범위 브레이크아웃 EA. 헤징 계정 지원; 실행 및 조정 한도가 문서화된 교육용 자료.

R 배수로 표시된 각 포지션의 최대 상승 및 하락 폭을 기록하고, 청산된 거래 건당 CSV 행 하나를 작성합니다.

Audits the tick history that 'Every tick based on real ticks' backtests replay. Five checks per symbol over the last N days: impossible and crossed quotes, timestamps that run backwards or repeat, one-tick price reversals sized in multiples of the symbol's own median spread, silences inside the broker's declared quote sessions, and minutes where the ticks and the M1 bars disagree. Every finding goes to CSV with its millisecond timestamp, and the tool prints its own arithmetic so the report can be recounted. Read only: no trade function, no DLL, no network.

A specified moment in time can be analyzed through multiple synced timeframes from 1 host chart for a symbol.

Opening Range Breakout EA template with built-in account protection. Marks the high and low of the first N minutes after the session open and places OCO stop orders above and below the range. Includes risk-based position sizing, daily loss limit, maximum drawdown limit, ATR range filter, trade direction filter, and protection against positions carried overnight. All session times are configurable inputs. Educational template, not a profit-guaranteed system. Test on demo before any live use.

시장 구조를 깨는 충동적인 움직임이 발생하기 직전의 마지막 반대 방향 캔들인 ‘주문 블록’을 감지하여, 가격이 되돌아와 이를 완화할 때까지 실시간으로 확장되는 구역으로 표시합니다. 구조의 붕괴와 완화는 모두 종가 기준 봉을 기준으로만 평가되므로, 표시가 다시 그려지는 현상은 발생하지 않습니다.

다른 브로커에서 동일한 EA가 다르게 작동하게 만드는 심볼 속성(거래 시간, 계약 규모, 틱 값, 스프레드 통계, 스왑 비용 및 실제 세션 적용 범위)을 출력합니다. 읽기 전용이며, 거래는 수행하지 않습니다.

Exports closed trades to CSV with Maximum Adverse Excursion (MAE) and Maximum Favorable Excursion (MFE) in points and money, calculated from M1 history, plus the percentage of the available move each trade captured.

Opens charts for all Market Watch symbols or a custom symbol list in one click, on any timeframe, with an optional template applied to each chart. Skips charts that are already open and limits how many are opened at once.

Shades the chart background by volatility regime (Compression, Normal, Expansion) based on the percentile rank of the current ATR. Shows the current regime on the chart, alerts on regime changes and exposes buffers for Expert Advisors.

Shades the chart background by volatility regime (Compression, Normal, Expansion) based on the percentile rank of the current ATR. Shows the current regime on the chart, alerts on regime changes and exposes buffers for Expert Advisors.

Draws Asian, London and New York session range boxes and marks liquidity sweeps: a closed bar that wicks beyond a completed session's high or low and closes back inside. Non-repainting arrows, extended session levels, alerts and iCustom-ready buffers.

Writes a CSV journal of every trade with the exit reason, and a report that shows how far each trade ran, in R. It never trades.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208