MQL5 MetaTrader 5용 소스 코드 스크립트

icon

스크립트는 MQL5 프로그램을 사용하여 MetaTrader 5에서 일회성 동작을 수행하고 그 직후 차트에서 삭제됩니다. 샘플 기능으로는 거래 내역 업로드, 보고서 생성, 이메일 발송, 파일에서 데이터 다운로드 및 처리 등이 있습니다. 또한 스크립트를 사용하여 그래픽 인터페이스를 만들거나 단일 유형의 거래 작업을 신속하게 실행할 수 있습니다. 예를 들어, 모든 포지션을 즉시 닫을 수 있습니다.

MetaTrader 5에서 제공되는 스크립트를 다운로드하여 시작할 수 있습니다. 스크립트 라이브러리는 MQL5 프로그래밍을 학습할 수 있는 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.

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

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.

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.

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.

A script that reads an MT5 Strategy Tester report (HTML) — and, if you give it one, the tester log — and writes a short verification memo: the key figures in one place, each compared against pass/check criteria that you set yourself, plus a count of problem-like lines in the log with samples.

Read-only script that shows the real statistics of your trade history per symbol: win rate, net result, profit factor, average win/loss and longest losing streak.

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.

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

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.

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

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.

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.

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.

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

Script that closes positions in one click: all, only profitable, only losing, only buys or only sells, for this symbol or all symbols, with a magic filter and optional pending order delete.

A script that reads a tick CSV into a custom symbol and builds its M1 bars, so the Strategy Tester can run "Every tick based on real ticks" over a period the broker's server does not keep. It finds the columns by name and moves UTC times to server time.

A script that shows how far back your broker's server keeps real ticks for a symbol. It samples a few short windows over the last four years, asks for each one until its ticks arrive or the time is up, and prints the oldest one that has ticks.

이 스크립트는 EA가 처리해야 할 사항, 즉 헤징 또는 네팅, 거래 권한, 체결 모드, 스톱 및 프리즈 레벨, 거래량 규칙, 스왑, 그리고 해당 종목에서 이미 개설된 포지션에 대한 정보를 보고합니다. 이 보고서를 파일로 저장하여 프리랜서 주문에 첨부할 수 있습니다.

A script that turns candles into a MIDI file: one instrument per symbol, meter detected from the data, pitch from the move, duration from the candle body.

Dynamically export customizable historical bar data (OHLC, Tick Volume) and selected technical indicators (RSI, MACD, ATR, ADX, Stochastic, CCI, MFI, Momentum) directly to a clean .csv file with automatic header generation.

Exports the closed positions of the account to a CSV file (one row per position) and shows a summary: trades, win rate, profit factor, net result, max drawdown and results per symbol. Read-only.

Exports closed trades to a CSV file, one row per closing deal: partial closes, close-by and netting reversals are split, each row with the position's open time, volume-weighted open price and its share of the entry commission.

A read-only script that works out a lot size from the cash you accept to lose and the stop distance, and shows how many such losses fit inside your own daily loss limit. Uses the symbol tick value, so it works for gold, FX and indices.

A script for MetaTrader 5 that exports the raw values of all buffers of every indicator on a chart to one CSV file, without changing any code.

Small label on the chart. the symbol is open or closed now, the time left to the close or to the next open, and the sessions of today. It reads the trade sessions of your broker. Display only.

Read-only forensic script that audits historical broker Bid/Ask ticks in 15-day RAM-safe chunks: computes session spread percentiles (P50/P95), 23:00-00:15 rollover widening ratios, weekday feed blackout gaps, and exports clean millisecond CSV files.

금요일 장 마감 전: 시장이 갭을 보이며 재개될 경우 미결제 포지션에서 발생할 수 있는 손실액을 추정하고, 이를 다음 거래일의 일일 손실 한도 내에서 남은 여유분과 비교합니다. 자체 자금 운용사 및 펀딩 계좌용입니다. 이 기능은 계좌 정보만 조회합니다.

Script that calculates the lot size for a given risk percent and stop loss. Places no orders.

Execution-safe utility script to close open positions in one click with configurable slippage deviation, spread guard protection, symbol/P&L/Magic filters, and automatic retry handling.

M1/M15/H1 시간대의 깔끔하고 결정론적인 OHLC + 틱 거래량 + 4가지 지표(MA, RSI, MACD, ATR)를 CSV 파일로 내보내는 무료 스크립트입니다. 마감된 봉만 포함하며, 룩어헤드(lookahead)가 없습니다. 분석 및 머신러닝 데이터셋에 이상적입니다.

Historical spread statistics by hour for many symbols at once (median, 75th percentile, mean), exported to CSV. Does not trade.

Drop the script on the chart at your stop loss price and it opens a market order with the lot size calculated from your risk percentage and take profit placed at your reward:risk ratio.

A script that closes open positions in one click, with filters for chart symbol, magic number, buy/sell direction and profit/loss state. Works on netting and hedging accounts.

Static safety scan of EA/indicator source: DLL imports, programs started, account data sent online, hidden text, martingale, SL = 0.

Script that exports the closed trades of your account to a CSV file and prints a short summary: trades, win rate, net result and profit factor.

A small script that turns "risk in % of the account" and "stop loss in pips" into a lot size. It only calculates and prints; it never opens, modifies or closes trades.

Shows the risk every past trade really took (the loss at its stop loss as a % of the balance at entry) and how far a fixed lot drifted from the tested risk. Read-only.

1234567891011