Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Accédez à la CodeBase depuis votre terminal MetaTrader 5
Vous n'avez pas trouvé le bon code ? Commandez-le dans la section Freelance
Comment rédiger un Expert Advisor ou un indicateur

Bibliothèque de code source MQL4 pour MetaTrader 4

icon

La plus grande bibliothèque comprend des codes de Expert Advisors, d'indicateurs techniques et de scripts de trading gratuits. Grâce aux applications disponibles, vous pouvez effectuer des transactions en mode automatisé et analyser la dynamique des prix. Utilisez la bibliothèque de codes pour en savoir plus sur les sentiments des marchés financiers.

Téléchargez des applications gratuites, testez-les et exécutez-les dans votre MetaTrader 4. Vous pouvez y accéder depuis la plateforme MetaTrader 4 et l'environnement de développement MetaEditor.

Soumettre votre code

Draws Fibonacci from multiple swing points and finds overlap zones where multiple Fib levels cluster. Confluence zones are dramatically stronger than single levels.

Maps all Draw on Liquidity targets: previous day/week/month highs-lows, equal levels, untested FVGs. Shows WHERE price is heading next.

Detects breaker blocks — order blocks that failed and flipped polarity. Bullish OB broken down becomes bearish breaker (and vice versa).

Exports your complete trade history to a CSV file with comprehensive performance statistics. Ready to import into Excel or Google Sheets for detailed analysis.

Stoch_Cross monitors the %K and %D lines of the Stochastic Oscillator and provides instant confirmation when a bullish or bearish crossover occurs in the zone.

This RSI applied to Kalman filter indicator,This RSI applied to Kalman filter indicator

A professional trade management Expert Advisor for MT4. It replaces static trailing stops with a dynamic, volatility-based ATR Trailing logic, and includes an automated Breakeven feature to protect funded prop firm accounts.

Automatically identifies key psychological "Round Numbers" where institutional liquidity and bank orders are concentrated. Essential for spotting high-probability reversal zones and magnet price targets.

The ultimate institutional benchmark tool for MT4. It accurately plots the Volume Weighted Average Price (VWAP) anchored to daily, weekly, or monthly sessions, including standard deviation bands for high-probability mean-reversion setups.

An essential time-and-price indicator for SMC and ICT traders on MT4. It automatically highlights the Asian Range, London Killzone, and New York Killzone, featuring a built-in Broker GMT Offset adjustment for perfect session timing.

An essential on-chart dashboard for MT4 prop firm traders. It tracks real-time daily drawdown to protect your funded accounts and provides an instant risk-to-lot-size calculator based on your exact stop loss.

Seulement deux timeframes — H1 et D1 — travaillent en synergie pour filtrer le bruit et capturer uniquement les forts retournements du RSI depuis les zones de surachat et de survente. Pas d'entrées aléatoires, seulement une confirmation claire de la direction par le "grand frère".

The current bar volatility is measured to previous 100 bars in Standard Deviations statistical measure. That may serve as a minimum requirement for trade entry or exit. Indicator can also show divergences.

Automatically draws Fibonacci retracement and extension levels based on the most recent ZigZag swing high and low. Updates dynamically as new swing points form.

Draws colored rectangular boxes for the Asian, London, and New York trading sessions with high/low range extension lines.

Average True Range input to the RSI formula adds direction to ATR.

Stratégie de trading basée sur la simple rupture des niveaux précédents de plus haut ou plus bas

Fonctionne à l'aide d'un verrou positif ; le robot de trading crée un verrou positif, et le trader décide lui-même quoi en faire.

La version classique de la stratégie de négociation Pile ou Face avec l'analyse du code du bloc de signal.

A modification of the ZigZag indicator, where the reversal moment is determined by a specified coefficient.

Utility MT4 EA that sends BUY/SELL deal notifications to Telegram via Bot API (WebRequest)

RiskSizer Panel Lite is a simple MT4 trading panel that calculates an estimated lot size based on your risk percent. Drag two chart lines to set SL/TP, then use one-click BUY/SELL for fast manual execution.

This is a utility Expert Advisor required to fetch news data for the FFC Calendar indicator. It uses native WebRequest to download data safely without DLLs. Install this in MQL4/Experts folder and run on a separate chart.

This EA is intended to test a popular trading strategy. My own backtest shows that this strategy does not work as it was intended

Tester statistics in pips with an early filter. This is how it should be done.

VIDyA is only available by default in mt5, here is it's mt4 equivalent. Note if using it with an EA call it using the iCustom() function.

Relative Strength Deviation Histogram

MACD-v is a volatility-normalised variation of the classic MACD. It provides momentum, crossover and expansion/contraction signals with enhanced stability across multiple market conditions.

This indicator is an enhanced version of the standard ZigZag used in MetaTrader 4. It automatically detects and labels structural price points: Higher High (HH), Higher Low (HL), Lower High (LH), and Lower Low (LL). The indicator draws trend lines between ZigZag points and prints the market structure on the chart in real time. Useful for: • Market structure analysis (HH, HL, LH, LL) • Pattern recognition (Head & Shoulders, Quasimodo, Break of Structure) • Trend continuation / reversal confirmation • Dashboard scanners and multi-timeframe systems The code has been optimized to remove warnings, uses only MQL4-compatible functions, and ensures clean object management with timeframe tagging. Suitable for manual traders, system builders, and EA developers.

I wrote this indicator to compare two modes, timeframes and analyze the settings of my EA. You can make adjustments to suit your requirements or add something. The data collected is saved to a file every 5 minutes (one file per instance).

Macd is the first to indicate bearish or bullish direction, secondly SAR in correlation with price indicates a swing in direction (Sar Flip above or below price), third conformation is the sma 40 shifted 3 and the closed price above or below the sma.

Designed to trade using Heikin Ashi candles. By smoothing price action and filtering out market noise, this EA creates a clear map of market direction, allowing traders to catch strong trends, avoid false reversals, and manage trades with confidence.

Reverse Engineered RSI projects traditional RSI levels — 30, 50, and 70 — directly onto the price chart instead of the oscillator window. This lets traders see where RSI overbought, oversold, and equilibrium zones align with actual market prices, making it easier to spot precise support, resistance, and potential reversal levels without switching views or relying on hidden momentum data.

Displays price levels for simulated trades, including the set Take Profit (TP) and Stop Loss (SL) values, for the selected trading direction. It also shows brief statistics, including an hourly breakdown for entry.

Ichimoku Edge is based on the standard Ichimoku Kinko Hyo indicator with default settings. It generates Buy and Sell signals from the cross of the Chikou Span with the price, confirmed by the position of price and Chikou Span relative to the Kumo (cloud).

It’s a powerful moving average crossover indicator that instantly notifies you when two MAs cross, so you never miss a signal.

This Expert Advisor uses retail trader sentiment from the Ziwox API to implement a contrarian trading strategy, taking trades opposite to the majority of retail positions. By combining sentiment data with a moving average trend filter, it identifies potential market reversals and avoids crowded trades. The EA automatically fetches and parses sentiment in real-time, executes buy or sell orders based on contrarian logic, and displays clear visual indicators of retail long and short ratios directly on the chart, providing traders with both actionable signals and market insight.

Dollar Index Tracker displays the US Dollar Index (USDX / DXY) directly below the chart of your current trading pair. This makes it easy to compare the strength of the US Dollar against a basket of major currencies while analyzing your pair at the same time.

By identifying overbought and oversold conditions, it helps traders catch early reversals, ride strong momentum shifts, and filter false signals.

Trend Vision is a custom MT4 indicator that combines MACD momentum with Bollinger Bands volatility to give clear, reliable trading signals. MACD shows momentum shifts, divergence, and trend strength. Bollinger Bands measure volatility, expansion, and squeezes. By fusing these two, Trend Vision filters out false moves and highlights only the high-probability moments when both momentum and volatility agree.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105