Alım-satım robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Facebook üzerinde bulun!
Fan sayfamıza katılın
MetaTrader 5 terminalinizden Kod Tabanına erişin
Doğru kodu bulamadınız mı? Freelance bölümünden sipariş edin
Bir Uzman Danışman veya Gösterge Nasıl Yazılır?

MQL4 ve MQL5 Kaynak Kodu Kütüphanesi

icon

MQL4 veya MQL5 programlama dilini öğrenmeye nereden başlayacağınızı bilmiyor musunuz? MetaTrader terminaliniz için çeşitli programlar burada mevcuttur. Yayınlanmış kod örneklerini indirin ve onlar üzerinde çalışın, kendi göstergelerinizi ve Uzman Danışmanlarınızı geliştirin. Uygulamalarınızı en büyük MQL4 ve MQL5 kod kütüphanesinde yayınlayın; uygulamalarınız her MetaTrader terminalinde ve MetaEditor'da kullanıma sunulacaktır.

MQL4 ve MQL5 kod örnekleriniz tüm dünyaya dağıtılacak ve böylece yüz binlerce yatırımcı sizi tanıyacaktır!

Kod ekle

AttachExpert.mqh attaches an Expert Advisor to a chart from MQL5 code, with the inputs you choose and with "Allow Algo Trading" on or off.

Short description (for the "Short description" field) Shows economic news events directly on your chart as colour-coded vertical lines with tooltips, plus a draggable event panel with upcoming and recent releases. Works on every symbol and timeframe, with filters for impact level and instrument groups (Gold & Silver, Forex Majors, Indices, Oil & Gas).

Read-only panel that shows the distance to margin call and stop out in money, percent of equity and points, plus adverse price and equity shock scenarios. Hedge-aware, does not trade.

Draws the last candles of one or two higher timeframes (auto: M15 -> H4 + D1, H1 -> D1 + W1) next to your chart at real prices, with a countdown, lines to the live candle's open, high and low, alerts and EA buffers.

ICT dealing range from confirmed swings: premium and discount zones, equilibrium, the OTE band (62 - 79 %, 70.5 %), standard deviation targets and the IPDA 20 / 40 / 60-day ranges. No repaint. Alerts and EA buffers.

Measures, on the chart's own history, how often a bar takes out the prior high or the prior low after bullish and after bearish bars, at up to five levels spaced by the average range. Each level carries a probability bar, and a table scores the favored side over all bars and over the last 200.

Piyasayı ADX, Hurst eksponenti ve 1 gecikmeli otokorelasyon ile sınıflandırır, her bir çubuğu bir kırılma modülüne veya ortalama geri dönüş modülüne yönlendirir ve her rejim için Wilson %95 alt sınırı ile ayrı bir kazanma oranı kaydı tutar; böylece hangi yarısının gerçekten işe yaradığını görebilirsiniz.

Risk yüzdesi ve stop mesafesine göre lot büyüklüğünü hesaplar, ardından stop loss ve take profit seviyeleri önceden ayarlanmış olarak işlemi açar. Asla kendi başına işlem yapmaz.

A chart panel for MT5 that places Buy Limit, Sell Limit, Buy Stop and Sell Stop pending orders with one click. Volume, distance and optional SL/TP are set on the panel; OCO cancels the opposite order automatically. Includes bulk delete, a live order list and automatic handling of broker STOPS_LEVEL and filling mode. Execution tool only - no signals, no guaranteed results.

Highlights potential buy zones in uptrends and sell zones in downtrends on closed candles (no repainting), with automatic lot size for your balance and a daily loss guard.

Read-only panel showing per-magic net P/L, account drawdown, daily-loss breaker progress and freeze/liquidate thresholds. Does NOT trade.

Non-repainting three-bar Fair Value Gap detector for MetaTrader 5. Closed-bar detection, the 50% Consequent Encroachment level, mitigation as an explicit state machine, incremental scanning, and a built-in self-audit that re-checks the stored gap levels against the closed-bar series on attach. Pure native MQL5, no DLLs, no external dependencies.

Farklı işlevlere sahip üç pozisyon büyüklüğü koruma mekanizması; bunların birbiriyle karıştırılması, pek çok hesabın tamamen silinmesine neden olmaktadır: - merdiven: bakiyenin her X birimi başına bir kontrat; manuel lot belirleme durumunda bile her zaman bir üst sınır (CAP) olarak uygulanır; - floor: minimum sermayenin altına düştüğünde işlem yapmaz; yeni bir para yatırımı gerekir; - breaker: hesap büyüklüğü ne olursa olsun, zirvenin X% altına düştüğünde durur ve kendi kendine yeniden etkinleşmez. Bu kütüphanenin çözdüğü ve neredeyse hiçbirinin çözemediği sorun: para yatırımı kâr değildir ve para çekme işlemi de zarar değildir. Breaker, düşüşü bakiye zirvesine göre ölçer. Bu durum dikkate alınmazsa, bir düşüş SIRASINDA yapılan para yatırma işlemi hem bakiyeyi hem de zirveyi yükseltir ve koruma, tam da yardımcı olacağı anda düşüşü algılamayı durdurur. Burada para yatırma ve çekme işlemleri, zirveyi aynı miktarda kaydırır. Zirve değeri bir dosyaya kaydedilir: terminal yeniden başlatıldığında zirve değerini unutan bir kırıcı, gerçek bir kırıcı değildir. Demo, düşüşün en dip noktasında yapılan bir para yatırma işlemini simüle eder. Para yatırma seçeneğini açık ve kapalı olarak çalıştırın ve "düşüş" sütununu karşılaştırın.

Pozisyon büyüklüğü, varsayılan bir pip değeri yerine, sembolün gerçek tik değeri, tik büyüklüğü ve hacim adımı temel alınarak hesaplanan risk tutarına göre belirlenir. Hacim her zaman aşağı yuvarlanır; risk tutarınız minimum lot büyüklüğünden daha küçükse bunu belirtir ve söz konusu lotun gerçek maliyetini bildirir. Terminal durumu bulunmadığından, pozisyon büyüklüğü hesaplama mantığı çevrimdışı olarak test edilebilir; 41 onaylamadan oluşan bir test komut dosyası dahildir.

Session Range Breakout draws the high and low of up to three intraday sessions (Asia, London and New York by default) and extends each level to the right with optional H/L labels and a range rectangle. Session hours, names and colours are configurable in server time. Optional popup, sound and push alerts fire when a bar closes outside a session range. The levels are fixed once the session closes, so the drawing does not repaint. The indicator draws chart objects only and never opens trades.

Calculates the Strategy Tester report statistics from the deal history, including Z-Score, AHPR, GHPR, LR Correlation and LR Standard Error, which TesterStatistics() does not return. Checked value by value against the tester.

ICT kill zones (Asian, London, New York, London Close) at the right New York hours on any broker, with US and EU summer time. High / low boxes, levels until price takes them, midnight open. Alerts and buffers for EAs.

Marks the order block behind each break of market structure (the last opposite candle before the move), tracks when it is used and turns failed blocks into breaker blocks. No repaint. Alerts and buffers for EAs.

An include file that writes real Excel workbooks (.xlsx) from MQL5 without DLLs: several sheets, numbers, text and real Excel dates, a frozen bold header and filters. Example script: the account deals and the daily results to Excel.

Marks breakouts of the recent trading range and the breakouts that fail (price closes back inside within a few bars). Closed bars only, alerts, buffers for iCustom.

Closes all trades and blocks new ones when your prop firm daily loss or maximum drawdown limit is reached.

Reads your closed trades, converts each to an R-multiple and simulates many future runs at a chosen risk per trade. Reports the probability of hitting a drawdown floor, the probability of ending profitable, the median ending balance and the 95% range. Read-only.

An educational MetaTrader 5 Expert Advisor with four RSI and MACD signal modes calculated on completed Renko bricks. Fixed-size Renko is built internally from Bid ticks. No external indicators, DLLs, custom symbols or offline charts are required.

Stop loss emrinizi istediğiniz yere sürükleyin, “Al” veya “Sat” düğmesine basın; lot büyüklüğü zaten doğru ayarlanmış olur — hesap makinesine ya da elektronik tabloya gerek kalmaz. Başabaş noktasını ve takip eden stop emrini yönetir; zarar limitinize ulaşırsanız o günkü işlemleri sonlandırır.

Spread Monitor — MetaTrader 5 için basit bir bilgi göstergesi.

Market structure in the way of Smart Money Concepts: swing highs and lows with HH / HL / LH / LL labels, BOS (break of structure) and CHoCH (change of character) lines. Swings count only after their right candles close, so nothing repaints. Alerts and a trend buffer for EAs.

Draws the fair value gaps (three-candle imbalances) that price has not filled yet, follows how much of each gap is filled and ends the box when it is. Closed candles only, no repaint. Alerts and buffers for EAs.

GDS Renko Liquidity Sweep Lab is a free educational indicator for studying what happens after price crosses a confirmed Renko swing level.

Spread Monitor, MetaTrader 5 için basit bir bilgi göstergesidir. Mevcut spread’i puan cinsinden, renkli göstergeler ve seviye çubuğu içeren kompakt bir grafik paneli şeklinde görüntüler.

Heiken Ashi ATR Blend, potansiyel trend değişikliği sinyallerini tespit etmek için yumuşatılmış Heiken Ashi mum çubuklarını, ATR tabanlı oynaklık filtrelemesini ve hızlı/yavaş EMA trend teyidini bir araya getirir.

Danışman, iki hareketli ortalamanın (Fast ve Slow) kesiştiği anda işlem açar. Herhangi bir hisse senedi ve zaman diliminde çalışır.

MarketInfo, MetaTrader 5 için basit bir bilgi betiğidir. Mevcut sembole ilişkin temel verileri toplar ve günlüğe kaydeder: fiyatlar, spread, oynaklık (ATR), çubuğun kapanmasına kalan süre, N çubukluk istatistikler ve trend belirleme.

Before the Friday close: estimates how much your open positions could lose if the market reopens with a gap, and compares it with the room left under the daily loss limit of the next trading day. For prop firm and funded accounts. It only reads the account.

A compact MetaTrader 5 indicator that classifies five selected timeframes as Bullish, Bearish, Neutral, or N/A using price and EMA alignment, then summarizes whether the timeframes are aligned or mixed. This is a market-context indicator, not a standalone trading signal

Running several EAs on one account? This script groups the closed trades by magic number and shows the score of each EA: win rate, profit factor, net profit and drawdown. Read-only, writes a CSV file.

A small include file that tells your Expert Advisor when it is inside a news window, using the economic calendar built into MetaTrader 5. No web requests and no DLL.

Finds volatility compressions as they form, boxes each one as a channel with ATR edge bands and marks the bar that breaks out of it. Inside the live channels: buy and sell volume split from M1 bars, drawn as candles and text, plus a gauge of the current volume delta. Breakout arrows in buffers for EAs.

Free script exporting clean, deterministic OHLC + tick volume + 4 indicators (MA, RSI, MACD, ATR) for M1/M15/H1 to CSV. Closed bars only, zero lookahead — ideal for analysis and ML datasets.

ATR tabanlı pozisyon büyüklüğü belirleme ve daha uzun zaman dilimlerine dayalı trend filtresine sahip bir likidite tarama / emir bloğu scalper stratejisi. Her işlem, grafikte o kurulum türünün gerçek zamanlı tarihsel kazanma oranıyla işaretlenir — bu sadece kutucuklardan ibaret değil, sürekli güncellenen bir performans tablosudur.

Bir kural, işlemin toparlanmayacağını gösterdiğinde, stop-loss seviyesinin tamamına ulaşmadan önce zararlı pozisyonları erken kapatır: N x ATR’nin ötesine geçen olumsuz hareket, zararda kalma süresinin çok uzun olması, EMA trendinin tersine dönmesi, RSI’nın pozisyona ters düşmesi veya sermaye sınırı. Kârlı bir pozisyona asla dokunmaz. Yalnızca gözlem modu, hiçbir şeyi kapatmadan hangi pozisyonların kapatılacağını günlüğe kaydeder. Her çıkış, kural, pozisyon süresi ve maksimum olumsuz sapma ile birlikte CSV dosyasına kaydedilir; böylece kurallar veriler temelinde ayarlanabilir.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210