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

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

Eğitim Amaçlı Uzman Danışman: Günlük aralık kırılmaları için BuyStop/SellStop bekleyen emirleri, risk-getiri oranına göre kar alma ve işlem günleri. Teminat ve stop seviyesi kontrolleri içeren, açıklamalı ve düzenli MQL5 kodu. Yalnızca Demo ve Strateji Testçisi için.

Spread Monitor, grafiğe renk kodlu bir panel çizen bir MQL5 Uzman Danışmanıdır. Bu panel, izlenen sembolün mevcut spreadini puan cinsinden gösterir; buna ek olarak, kayan bir geçmişe ait ortalama, minimum ve maksimum değerleri de sunar. Ayrıca, uyarı seviyesini aşan kayıtlı örneklerin sayısını sayar ve mevcut spread bu seviyenin üzerine çıktığında durum satırını kırmızıya çevirir. Bu yardımcı program emir vermez. Girişler, uyarı seviyesini, geçmiş verilerinin boyutunu, yenileme aralığını ve panelin konumunu kontrol eder. EA ayrıldığında panel nesneleri kaldırılır.

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 24-hour clock of typical H1 ranges for XAUUSD (and any other symbol) versus the range of the current hour. The profile uses closed hours only. Display only — it does not trade.

A clean on-chart map of psychological 00/50 figures, prior day and week extremes, and the average daily range, with honest bounce/break statistics. Display only — it does not trade.

A lightweight MetaTrader 5 Expert Advisor that records new-bar events and terminal connection-state changes to a local CSV file. Designed for developers and traders who need reliable event logging, diagnostics and monitoring without executing trades.

Marks every opening gap on the chart, measures its size in ATR units and follows it until price trades back to the fill level (previous close by default). A panel reports the fill rate, the median and 90th-percentile number of bars to fill, and the same figures for weekend gaps and for three gap-size buckets. Gaps that are still undecided are reported separately and never counted as filled.

Converts session hours given in London, New York, Tokyo or Sydney time into broker server time, including US and EU daylight saving and the weeks when the two are out of step. Comes with a check script that verifies 15 hand-calculated cases.

Free Expert Advisor that watches a basket of open positions (all, by Magic number or by symbols) and closes the whole basket when floating loss or profit reaches a set percent of balance. Works next to any EA or manual trading.

Part 4 of the regression-testing series. An Expert Advisor that builds a fixed matrix of 20 valid and invalid trade requests (stops at and inside the stops level, wrong-side stops, volume outside the symbol rules, oversized and unknown closes, unchanged and wrong-side modifications), checks each one with OrderCheck() without sending anything, and reports PASS, FAIL or INCONCLUSIVE per row with a digest you can compare between runs.

MT5 için, tek bir tıklamayla Alım Limit, Satış Limit, Alım Stop ve Satış Stop bekleyen emirleri veren bir grafik paneli. Hacim, mesafe ve isteğe bağlı SL/TP, panele ayarlanır; OCO, zıt emri otomatik olarak iptal eder. Toplu silme, canlı emir listesi ve brokerın STOPS_LEVEL ile doldurma modunun otomatik olarak yönetilmesi özelliklerini içerir. Yalnızca işlem aracıdır - sinyal yoktur, garantili sonuç yoktur.

Grafiğin kendi geçmişine dayanarak, yükseliş ve düşüş çubuklarının ardından bir çubuğun önceki en yüksek veya en düşük seviyeyi ne sıklıkla aştığını, ortalama aralıkla aralıklı en fazla beş seviyede ölçer. Her seviye bir olasılık çubuğu içerir ve bir tablo, tüm çubuklar ve son 200 çubuk üzerinden hangi tarafın daha olası olduğunu puanlar.

Utility EA that moves the stop loss of positions you already have open: break-even with locked profit and trailing stop in points or ATR. It never opens trades.

Utility EA that closes all positions (and optionally deletes pending orders) when the total floating profit reaches your target or the total floating loss reaches your limit, in account currency. It never opens trades.

News trading EA for Gold (XAUUSD) and forex: places a Buy Stop and a Sell Stop seconds before each release of the MT5 economic calendar, one cancels the other, stop loss, take profit and trailing in points. Open source code.

Previous day high and low indicator for MT5 on Gold (XAUUSD), forex and indices: PDH, PDL, previous week high and low, day and week open, and an arrow when a closed candle sweeps a level and closes back inside. Open source code.

Daily loss limit EA for MT5 on prop firm and funded accounts, Gold (XAUUSD), forex and indices: closes every position at the daily loss or profit limit, deletes pending orders and locks trading until the next day. Open source code.

Premium and discount zones for MT5 on Gold (XAUUSD), forex and indices: dealing range from confirmed swings, equilibrium 50 percent, 25 and 75 percent lines and the OTE band of the last leg. Open source code.

Opening range breakout EA for MT5 on Gold (XAUUSD), forex and indices: trades the first candle that closes outside the opening range, stop at the range, target in multiples of the stop, lot by risk, end of day close. Open source code.

Read-only panel with the numbers a prop-style challenge is judged on: today's result from server midnight (closed plus floating), room to your daily loss limit, static or trailing overall floor, profit target and trading days.

A library for MetaTrader 5 that writes every pass of an optimization to a SQLite file: result, test statistics, your own metrics and the inputs of the pass. A demo Expert Advisor optimizes the Rosenbrock function in the mode "Math calculations".

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.

Typical range of each time of day (median of the previous N days) versus the actual range of the bar. Shows when the market really moves. No look-ahead, no repainting. M1 to H1.

An MQL5 indicator that draws a table on the chart with one row per open position and shows what one more night of holding it costs, in the deposit currency where the symbol's swap mode allows it. The swap mode and the two rates come from the symbol's own specification, and so does the triple-swap weekday; no rate is typed into the code. Where the symbol charges in points, a horizon column turns that night into the number of normal nights needed to repay one round turn, and a figure the terminal cannot supply is a dash with a reason, never a zero.

Trails the stop loss of open positions with one of seven methods plus a break-even that includes the commission. Moves a stop only on a real improvement, never back, respects stop and freeze levels, limits requests. Restart-safe.

An Expert Advisor for MetaTrader 5 that prints one line each time one of its event handlers runs, on a chart, in the Strategy Tester and during an optimization. It never trades.

Volume profiles per day, week, month or year with POC, value area high and low (classic two-rows method), naked POC lines that stay until price trades through them, and a developing POC. Built from M1 bars. 8 buffers for EAs.

Free XAUUSD MT5 indicator with Asian session High/Low, closed-bar liquidity sweeps, swing structure breaks, EMA trend context and a manual lot-size risk planner. No automatic trading or guaranteed profit.

Bugün ortalama günlük aralığın (ADR) ne kadarının kullanıldığını gösterir ve gün ortalama aralıkla kapanırsa bugünkü en yüksek ve en düşük seviyelerin ulaşabileceği iki fiyatı çizer. Ortalama günlük aralığın (ADR) bugün ne kadarının kullanıldığını gösterir ve gün ortalama aralıkla sona ererse bugünkü en yüksek ve en düşük seviyelerin ulaşabileceği iki fiyatı çizer.

“Session Range Breakout” göstergesi, en fazla üç gün içi seansın (varsayılan olarak Asya, Londra ve New York) en yüksek ve en düşük seviyelerini çizer ve her bir seviyeyi, isteğe bağlı H/L etiketleri ve bir aralık dikdörtgeni ile sağa doğru uzatır. Seans saatleri, adları ve renkleri sunucu saatine göre yapılandırılabilir. Bir çubuk bir seans aralığının dışında kapandığında isteğe bağlı açılır pencere, ses ve push uyarıları tetiklenir. Seans kapandığında seviyeler sabitlenir, bu nedenle çizim yeniden çizilmez. Gösterge yalnızca grafik nesnelerini çizer ve asla işlem açmaz.

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.

Classifies the current market volatility as Low, Normal or High by ranking the ATR against its own recent history. The percent rank is shown as a color-coded histogram in a subwindow, with optional alerts when the regime changes.

Donchian Channel (highest high and lowest low of the last N bars) with a middle line, breakout arrows on the chart and alerts by pop-up window, push notification or e-mail when price breaks out of the channel.

Squeeze Momentum indicator: detects periods of volatility compression, when the Bollinger Bands move inside the Keltner Channel, and shows the direction and strength of the momentum that builds up during and after the squeeze.

Part 3 of the indicator regression-testing series. Compares the value an indicator had when each bar closed with the value recomputed on the later history, flags every bar that changed (look-ahead or repainting), and measures how many future bars each value needed before it settled.

Ranks the current ATR against its own recent history and colours each bar as a LOW, NORMAL or HIGH volatility regime, with a panel showing ATR in price and points, ATR vs its median and how long the regime has held.

Standalone MQL5 library for storing custom settings separately for each trade and following a verified pending-order-to-position lifecycle. It supports double, ulong and price-unit fields, terminal-local Global Variables, safe cleanup gates and an offline self-test. Includes a demo EA, source archive, and installation guide. A different-ticket transition, reconnection as a separate scenario, and netting behavior remain untested.

Free source code included: a DST-aware Market Sessions + PVSRA vector-candle indicator, 5 preset files and a printable confluence cheat sheet.

A compact on-chart dashboard that shows the trend strength of up to four timeframes using the ADX: value, strength bar, strength class and +DI/-DI direction, plus a summary row with the average ADX and the agreement of the directions.

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.

123456789...218