MetaTrader 5 için MQL5 Kaynak Kodu Kütüphanesi

icon

Bu, MetaTrader 5 platformu programlarının en büyük ücretsiz kaynak kodu kütüphanesidir. Burada hazır Uzman Danışmanlar, teknik göstergeler, komut dosyaları ve kütüphaneler bulabilirsiniz. MQL5 dilini öğrenirken kod kütüphanesini kullanın ve sağlanan kodlara dayalı olarak kendi otomatik alım-satım uygulamalarınızı geliştirin.

Yayınlanan kodları ücretsiz olarak indirebilir, MetaTrader 5'te test edebilir ve başlatabilirsiniz. Kütüphaneye ayrıca doğrudan MetaTrader 5 platformundan ve MetaEditor geliştirme ortamından da erişebilirsiniz.

Kod ekle

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.

Trend-following breakout EA using a Gaussian-filtered channel, ATR bands, risk-based lot sizing, and an R-multiple trailing stop.

Prop firma hesapları için gerçek zamanlı günlük değer kaybı tampon izleme ve kesin ihlal fiyat çizgisi göstergesi. Özellikleri arasında sunucu saatine göre 00:00’da işlem geçmişinin yeniden oluşturulması (giriş komisyonları dahil), 00:00’da HWM anlık görüntüsünün kilitlenmesi, iki aşamalı OrderCalcProfit çapraz kur kalibrasyonu ve Expert Advisor’lar için iCustom() veri tamponları bulunmaktadır.

Kapanmış çubuklarda yeniden çizilmeyen gerçeğe uygun değer farkları; bölge durumları (aktif, temas edildi, hafifletildi) ve EA’lar için iCustom tamponları.

Manual one-click trading panel for MetaTrader 5. Calculates the lot size from your risk % and stop loss (always rounded down), places SL/TP by pips and reward:risk, and manages trades with breakeven, trailing stop and Close All (only its own trades). Shows balance, equity, spread, floating P/L and an Asia / London / New York session tracker. No trading strategy inside: trades open only when you click BUY or SELL.

Hesabın tamamını izler ve günlük zarar veya maksimum değer kaybı sınırı aşılmadan önce tüm pozisyonları kapatır; ardından blok sona erene kadar hesabı sabit tutar. İşlem yapmaz.

Değişken teminat kademeleri dahil olmak üzere her bir Market Watch sembolünün gerçek kaldıraç oranını, swap, komisyon ve gerçek zamanlı spread ile birlikte tek bir panelde görüntüleyin.

Zero-DLL on-chart execution monitor tracking genuine tick-only Min/Avg/Max spread, Spread-to-ATR ratio, decoded broker swap modes, 3x rollover day, and 1.0-lot all-in cost.

Zero-DLL intraday session box indicator (Asia, London, New York) with 14-day Average Daily Range exhaustion tracking and dynamic ADR Upper/Lower target lines.

JPN225 Yen Check is a free, fully open EA for the Nikkei 225 on M30. It buys when the Nikkei is holding near the top of its recent range, but only if it hasn't run too far ahead of GBPJPY. Everything is closed by 17:00 server time. Four conditions, long only, one trade at a time, a stop loss on every trade.

Zero-DLL on-chart HUD that calculates ATR-based Stop-Loss/Take-Profit distances and broker-normalized lot sizes across 3 configurable risk tiers.

Donchian channel breakout Expert Advisor with EMA trend filter, ATR stop, ATR trailing stop, break-even and position size from risk % of balance.

A library for MetaTrader 5 that declares rules between the inputs of an Expert Advisor once in the code. OnInit rejects a combination that breaks a rule, with the reason in the Journal; before an optimization starts, OnTesterInit estimates which share of its passes the rules would reject and warns above a limit you set.

Protects prop firm challenge and funded accounts: watches equity in real time and closes all trades before the daily loss or maximum loss limit is broken, with an optional profit target lock and a live progress panel.

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

Structural Swing Migration BUY is an educational Expert Advisor for MetaTrader 5 that opens BUY positions when confirmed swing highs and swing lows move upward together. It evaluates closed M15 candles and combines structural confirmation with a volatility threshold and a bullish candle filter.

One include file that encrypts texts and bytes so only a program with the same key can read them. A wrong key or a changed message is refused instead of read as garbage, keys can come from a password, and the code is checked against the official NIST and RFC test vectors.

Yapılandırılabilir bir seansın açılış aralığını (başlangıç saati ve dakika cinsinden süre; sunucu saat dilimine göre ayarlanmış), kutunun üstündeki ve altındaki 1R ve 2R seviyelerini ve seans VWAP’sini (tick hacmi veya aracı kurum tarafından sağlandığında gerçek hacim) çizer. Küçük bir panel, son N tamamlanmış seans boyunca kaç tanesinin sadece yukarı, sadece aşağı, her iki yönde veya hiç aralığı kırmadığını ve ilk kırılmadan sonra fiyatın 1R ve 2R seviyelerine ne sıklıkla ulaştığını sayar. İstatistikler geçmişe dayalı sayımlardır: geçmişi tanımlarlar ve herhangi bir tahminde bulunmazlar. Yalnızca kapanmış çubuklar kullanılır, bu nedenle hiçbir şey yeniden çizilmez; isteğe bağlı açılır pencere, push ve sesli uyarılar, kapanmış bir çubuk kutunun dışında kapandığında seans başına her yön için bir kez tetiklenir. Sekiz tampon (aralık, hedefler, VWAP, kırılma durumu) iCustom() ile bir Uzman Danışman'dan okunabilir. M1'den M30'a kadar çalışır, yalnızca yeni çubukları yeniden hesaplar ve kaldırıldığında grafik nesnelerini siler. Yalnızca okunur: asla işlem yapmaz. DLL yok, web isteği yok.

Önceki günün, önceki haftanın ve önceki ayın en yüksek ve en düşük seviyelerini, ayrıca mevcut fiyatın çevresindeki otomatik yuvarlak sayı seviyelerini çizer. Her seviyenin üzerinde, fiyatın bu seviyeye kaç kez dokunduğu ve bir çubuğun bu seviyeyi kaç kez aştığı (seviyeyi delip tekrar orijinal tarafta kapandığı) bilgisini içeren bir etiket bulunur. Sayımlar yalnızca kapanmış çubukları dikkate alır, bu nedenle yeniden çizilmez. Geçişler ve yeni temaslar için isteğe bağlı uyarılar (açılır pencere, push bildirimi, e-posta, ses). Temas toleransı, ATR'nin bir kısmı veya sabit bir puan sayısıdır. Önceki 6 döneme ait seviyeler ve bunlara dokunma sayıları, iCustom() işleviyle bir Uzman Danışman tarafından kullanılmak üzere 12 gösterge tamponunda gösterilir. H4'e kadar tüm zaman dilimlerinde çalışır. Salt okunur: hiçbir zaman bir işlem açmaz, değiştirmez veya kapatmaz. DLL dosyası ve web isteği içermez.

Checks the chart's history against the symbol's trading sessions and separates real holes from holiday short sessions and days without bars. Marks the holes on the chart, shows coverage and the largest hole, warns when the history stops short of now, and can write a CSV report.

Prop Firm Equity Guard protects prop-firm challenges and funded accounts. It monitors live equity against your daily loss and max drawdown limits, then closes all positions, deletes pending orders and locks trading before the firm's limit is hit. A safety buffer makes it act early, and anything opened while locked is closed instantly. It supports static and trailing drawdown, an optional profit target lock and alerts, saves its state through restarts, and shows an on-chart dashboard with room left and a reset countdown. It works alongside manual trading and other EAs.

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.

Drag a stop line on the chart and see the volume for a given risk, the real risk after rounding, and a warning when even the minimum volume risks too much.

Higher-timeframe EMA (fast and slow) on a lower-timeframe chart, using only higher-timeframe bars that are already closed. Values never change after the bar closes.

Round number levels for Gold (XAUUSD) and any symbol on MT5. Draws major and minor round levels around price plus Asia, London and New York session open lines, with an optional alert when a candle closes across a major level. Open source code.

Multi timeframe trend dashboard for Gold (XAUUSD) and any symbol on MT5. Shows up, down or flat for up to 6 timeframes from a fast and slow EMA on the last closed bar, with the distance in points and an alert when all line up. Open source code.

Engulfing and inside bar scanner for Gold (XAUUSD) and any symbol on MT5. Marks bullish and bearish engulfing candles and inside bars on closed bars, draws the mother bar range as a box and can alert on each pattern. Arrow buffers for iCustom. Open source code.

One include file that gives your EA or indicator keyboard shortcuts the user types into the inputs, such as Shift+B. Each press fires one action, Shift+B never fires on a plain B, and a shortcut that cannot work is refused at start with the reason.

Watches the equity like a prop firm does: daily loss limit and max loss limit, static or trailing, floating profit included. Stops new trades at a warning level, closes everything on a breach and remembers it after a restart.

Seçilen zaman aralığının en yüksek ve en düşük seviyelerini gösterir ve her iki yöndeki ilk kırılma anında uyarı verir. Bu seviyelere iCustom üzerinden de erişilebilir.

Halihazırda açık olan pozisyonları yönetir: eksik olan SL/TP değerlerini ekler, stop seviyesini başabaş noktasına taşır, stop seviyesini takip eder, pozisyon sayısını sınırlar ve günlük sermaye limitlerini uygular. Asla yeni işlem açmaz.

Measures how long price takes to come back to its moving average. The histogram shows the distance of the close from an EMA in ATR. Every time that distance first reaches a stretch level (1, 2 and 3 ATR by default), the indicator follows the stretch until the close is back at the average, runs further, or the wait is over. A panel shows, for each level, how often price came back, how often it ran further first, and the median and 80th-percentile number of bars the return took. One line can be pasted into a comment to compare symbols. It is a statistics tool and gives no trade signals.

Account guard for prop-firm challenges. It does not open trades: it watches the whole account (manual trades and any EA) and closes everything before the firm's limits are broken. - Daily loss limit: closes all and blocks trading until the next day. - Max drawdown: static or trailing (can lock at the start balance); closes all and locks the account. - Optional profit-target lock, max lots / max positions, Friday close. - On-chart panel (equity, today's P/L, daily and drawdown room left) and push alerts. - Equity peak and lock are saved per account, so a restart does not reset the protection. Main inputs: StartBalance, DailyLossUSD, DDMode, MaxDDUSD, LockAtStart, safety buffers, TargetUSD, MaxOpenLots, MaxOpenPositions, FridayCloseOn, ResetLock. Attach to any one chart, any symbol and timeframe, with Algo Trading enabled.

Draws a live heatmap of two optimised inputs while the Strategy Tester optimises your EA, and scores every cell by its neighbourhood: the plateau score is the mean minus k times the standard deviation of the surrounding cells. It shows whether your best parameters sit on a stable plateau or on a single lucky cell, and writes an HTML report, a CSV and a picture of the map. Includes a Monte Carlo drawdown criterion and a small demo EA. Part of the free Robustness Lab set.

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.

Classifies the market as trend, mean-reversion or noise using three public measures: the Hurst exponent by rescaled range with small-sample bias correction, Kaufman's efficiency ratio and the percentile of the current ATR. A colour strip shows the regime bar by bar, and a panel shows the regime on M15, H1, H4 and D1 at the same time. Part of the free Robustness Lab set.

Shows how a symbol has behaved in every hour of every weekday, as a heatmap on the chart. Colour the cells by t-statistic, mean return, hit rate or average range. Cells that pass a significance threshold get a gold frame, and the panel tells you how many cells would pass that threshold by chance alone, so a single lucky hour is not mistaken for an edge. Hover any cell for its full numbers. 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.

Builds H2 to D1 candles from H1 on the New York close clock, so your indicators see the same candles on every broker, no matter which server time it uses. Detects the server clock automatically.

One call before you send an order: is the session open, how long until it closes, are quotes still coming in, is trading allowed. Gives you the reason when the answer is no.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220