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

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

Draws the Asian, London and New York session ranges as colored boxes with their high and low, plus dotted extension lines for breakout trading. Same ranges on every timeframe up to H1.

Closes all trades and blocks new ones when the daily loss limit, maximum loss or profit target is reached. Built for prop firm challenges. Works with manual trading and any other EA.

A lightweight, non-trading Expert Advisor that writes a JSON health heartbeat (connection, AutoTrading state, equity, daily P/L) and an equity log, so a VPS watchdog can detect frozen or disconnected terminals and alert you.

A rolling, Katz-style fractal dimension of price that collapses toward 1.0 during directional moves and rises toward 2.0 during choppy, range-bound action, giving traders a single number for how "trendy" the current market is.

Position size calculator for MT5. Drag the SL and TP lines on the chart and the panel shows the lot size for your risk %, the real risk after rounding, the reward and R:R. Never trades.

A momentum oscillator that relaxes back toward zero at a speed set by the current ATR relative to its own moving average, so decay speed adapts automatically to whether the market is calm or volatile.

Clean and efficient Anchored VWAP (AVWAP) indicator for MetaTrader 5. Calculates volume-weighted average price from a user-defined anchor date with optional volatility standard deviation bands.

Smart Money Concepts market structure on pullback swings: trend, BoS, CHoCH, IDM and liquidity sweeps. A level counts as taken only on a close — a wick through it is marked as a sweep (x) and relocates the swing. Self-contained, closed bars only.

QCL Heikin Flow applies two-stage smoothing to Heikin Ashi candles, helping traders filter price noise and visualize trend direction. Features adjustable smoothing periods, four moving average methods, and customizable candle colors.

Jakarta seansı filtresine sahip, M15 zaman diliminde XAUUSD için EMA(10) x EMA(30) scalper stratejisi. Eğitim amaçlı örnek: sabit lot, puan cinsinden SL/TP, en fazla 1 pozisyon, spread filtresi. %100 gerçek tick verileriyle test edilmiştir.

Bu eğitici Uzman Danışman, MetaTrader 5’te Renko blokları üzerinde momentum ticareti yapmanın basit bir yolunu göstermektedir. Momentum, en son tamamlanan Renko kapanış fiyatı ile N blok önceki kapanış fiyatı arasındaki farkın, blok büyüklüğüne bölünmesiyle elde edilir. Pozitif eşiğin üzerine çıkılması bir AL sinyali oluşturur; negatif eşiğin altına inilmesi ise bir SAT sinyali oluşturur. Eşik değerinin üzerinde kalınması, tekrarlanan sinyallere yol açmaz. EA, Bid tiklerinden dahili olarak klasik sabit boyutlu Renko oluşturur ve iki blokluk bir tersine dönüş kullanır. Emirler, sentetik blok fiyatları yerine mevcut piyasa Bid/Ask fiyatlarını kullanır. Bir tikte birden fazla blok oluşursa, yalnızca son bloktaki geçiş girişi tetikleyebilir. Aynı anda tek bir pozisyon bulunur; bu pozisyonda sanal kar alma, sanal stop loss, maksimum tutma süresi, bekleme süresi ve spread filtresi mevcuttur. Harici gösterge, DLL, özel sembol veya çevrimdışı grafik gerekmez.

Support and resistance channels built from price pivots and ranked by strength: each pivot inside a channel and each bar that touched it adds to its score. The strongest channels run across the whole chart, colored by where price is, with break arrows, pivot marks, two averages and alerts.

Exports bars to a CSV file that pandas.read_csv() loads without encoding, separator or date-format arguments: ISO 8601 timestamps, prices at the symbol's own digits, single-byte encoding. Two modes (last N bars or a date range) and a switchable separator for Excel.

Shows the range of every bar in points, its moving average (SMA or EMA) and a suggested stop distance (average x factor). A stop tighter than the typical bar range gets taken out by ordinary noise; the indicator makes that threshold visible in points, the same unit a stop loss is set in.

Shows what every buffer of an indicator holds - arrows, a line or a colour index - and labels the arrows on the chart with their buffer numbers. Works with compiled indicators without source code.

Asian, London and New York session high/low boxes with ICT killzone shading, breakout alerts and average-range statistics panel.

open-source grid trading EA with on-chart control panel

Shows the prices of the current symbol at which the account reaches margin call and stop out, with a what-if mode for extra volume, the maximum volume you can add and pending orders that trigger on the way.

Tüm enstrümanlarda doğru pip değeri hesaplaması ve dinamik lot büyüklüğü belirleme için tasarlanmış, otomatik çapraz döviz kuru dönüştürme ve broker hacim normalizasyonu özelliklerine sahip, hafif ve OOP uyumlu bir MQL5 başlık sınıfı (.mqh).

MT5 için gerçek zamanlı risk hesaplayıcı ve lot büyüklüğü koruma HUD’si. Hesap bakiyesi, hedef risk yüzdesi ve dinamik ATR Stop Loss değerlerine göre kesin lot büyüklüğünü hesaplar; ayrıca minimum lot aşımı uyarısı da sunar.

MetaTrader 5 için Klasik ve Fibonacci yöntemlerini kullanan Günlük Pivot Noktaları göstergesi. Önceki tamamlanmış günlük mum çubuğunu kullanarak PP, R1-R3 ve S1-S3 değerlerini gösterir.

MSNR KeyLevels MultiTF, açık olan herhangi bir grafikte M5, M10, M15, H1, H4 ve D1 zaman dilimlerinden Malezya SNR anahtar seviyelerini aynı anda çizer. Yerleşik kontrol paneli sayesinde her zaman dilimini tek bir tıklamayla açıp kapatabilirsiniz; böylece bir saniye içinde temiz bir grafikten tam bir üst zaman dilimi bağlamına geçebilir ve aynı hızla geri dönebilirsiniz.

Overlay higher timeframe candles directly onto your lower timeframe charts with customizable body fills, independent borders, and precise wicks. Effortlessly spot macro bias, session openings, and liquidity ranges without switching screens. Ultra-lightweight engine featuring separated box bounds and rock-solid chart change auto-recovery.

Calculates the lot size for a chosen risk percent and stop loss distance, and shows the result in a clean panel on the chart.

Kapalı çubuklu ICT/SMC seansı – üç sembol için likidite tarayıcısı; onaylanmış MSS, FVG yeniden testleri, risk/getiri tahminleri ve isteğe bağlı makroekonomik bağlam.

Wyckoff Hacim Dağılım Analizi (VSA) ilkeleri üzerine geliştirilen bu sistem, akıllı paranın birikimi, dağıtımı, emilimi ve trend yönünü, sıfır yeniden çizim özelliği ve katı bir 2.000 çubukluk performans sınırı ile çözümler.

Before configuring a basket, see which target weights fit your broker's minimum lots. Portfolio Allocation Planner turns an explicit hypothetical notional budget and percentages into a chart table: minimum-lot notional, lots rounded down, calculated allocation, target shortfall and row status. Recalculate on demand, inspect row tooltips, paginate longer lists, and optionally export the displayed snapshot to CSV. No trades are sent and no account balance, equity or positions are read.

Read-only MT5 script for exact Market Watch symbols: contract and volume rules, quote age and spread, isolated BUY/SELL margin, one-tick price moves and spread-only results in account currency. MIT source; Experts journal output.

Independent Risk Guard for AI Agents in MetaTrader 5.

A lightweight manual trading panel for MetaTrader 5 with market order execution, risk-based position sizing, Break-Even, partial close and position management. Works in both live trading and the Strategy Tester.

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)

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.

Her M1 çubuğunda sanal bir parantezli işlem açar, bunu gerçek tik geçmişi üzerinde ilerletir ve çeşitli stop mesafeleri için 1 dakikalık OHLC modellemesinin işlemi ne sıklıkla ters yönde değerlendireceğini raporlar.

Aracı kurumun buna ne ad verdiği fark etmeksizin altın sembolünü algılar, sözleşme şartlarını varsaymak yerine terminalden okur ve hesap para birimindeki riski, o aracı kurum için doğru olan lot büyüklüğüne dönüştürür.

Kapanan her işlem için, hesap özetinde yer almayan rakamları içeren bir CSV satırı dışa aktarır: işlemin gösterdiği en yüksek gerçekleşmemiş kâr (MFE), atlattığı en kötü gerçekleşmemiş zarar (MAE), MFE’nin ne kadarının fiilen elde edildiği, kaç çubuk boyunca sürdüğü ve ne kadar süreyle açık kaldığı. Trade Excursion göstergesiyle aynı ölçümler, grafikte gösterilmek yerine bir dosyaya yazılır; çünkü bu verilerle ilgili sorulması gereken sorular, bir grafiğin cevaplayamayacağı sorulardır: yakalama oranı giriş saatine bağlı mıdır? Erken kapattığım işlemler, en uzun süre tuttuklarım mı? Pazartesi günleri gerçekleşen zararlı işlemlerin MAE değeri, Cuma günlerinkinden farklı mı? CSV dosyası hazır olduğunda, bu soruların yanıtlarını bir pivot tablo ile kolayca elde edebilirsiniz. Çıktı, MQL5\Files dizininde başlık satırı ile birlikte noktalı virgülle ayrılmış haldedir; herhangi bir elektronik tabloda açılabilir. Ölçüm sınırı: sapmalar, seçilen zaman dilimindeki çubukların en yüksek ve en düşük değerlerinden elde edilir; çubuk içindeki yol bilinmemektedir. Çubuklar sütunu, her işlemin elde ettiği çözünürlüğü bildirir ve özet, tek çubuklu işlemleri ortalamak yerine ayrı ayrı sayar.

CME’de altın için günlük bakım arası vardır. 11 yıllık bir örneklemdeki her takvim yılında, bu aradan sonraki ilk saatte fiyat, şansın açıklayabileceğinden daha fazla yükselirken, günün geri kalan saatlerinde fiyat sabit kalmaktadır. Her seans için tek bir işlem, volatiliteye göre ölçeklendirilmiş sunucu tarafında stop emri, ortalama alma veya grid stratejisi kullanılmamaktadır. Sonra maliyet modelimin yanlış olduğu ortaya çıktı. Gerçek fiyat verileriyle yapılan bir geriye dönük test, piyasanın yeniden açılışındaki gerçek gidiş-dönüş maliyetinin, araştırmamda hesapladığım 19 değil, yaklaşık 60 puan olduğunu gösterdi; M1 çubuk spread alanı, çubuk başına bir özet olduğundan, bu rakamı yaklaşık üç kat daha düşük gösteriyor. Düzeltilmiş maliyetle 11 yıllık verileri yeniden hesapladığımızda: +3,34 baz puan, t 7,40, %59,3 kazanç oranı -> +1,60 baz puan, t 3,42, %50,8 kazanç oranı Avantaj, orijinal gücünün yarısından az bir seviyede de olsa devam ediyor. İkinci rakam gerçek olanıdır. Ne olmadığı: yılda yaklaşık %3,3 getiri ve %4,6 düşüş oranı, yaklaşık dokuz yılda bir negatif sonuç. 0,01 lot ile bu, yılda ~130'dur — bu rakam pozisyon büyüklüğünü gösterir, stratejiyi değil.

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.