Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Access the CodeBase from your MetaTrader 5 terminal
Couldn't find the right code? Order it in the Freelance section
How to Write an Expert Advisor or an Indicator

MQL4 Source Code Library for MetaTrader 4

icon

The largest library features codes of free trading Expert Advisors, technical indicators and scripts. With the available applications you can trade in automated mode and analyze price dynamics. Use the library of codes to learn more about financial market sentiments.

Download free applications, test them and run in your MetaTrader 4. You can access them from the MetaTrader 4 platform and the MetaEditor development environment.

Submit your code

Geminis, Mistral, Claude & Perplexity UNITED!!

OpenAI Trend-Following Trading System

Algorithm by DeepSeek AI

Trend coloured candles - By Mistral AI

Perplexity AI beautiful Trading System

Good tendency estimator, coloured candlesticks, by Claude AI

A stylish design view of the markets prices. Surf the trend!!

Set the number of convergence indicators to a reversion occur.

From MultiIndicatorDivergence - Show all Time-Frames 5 bars ago & bar actual.

STRATEGY BASED ON RSI, SAR, HEIKEN-ASHI, STOCHASTIC, CCI, WPR AND BULLS & BEARS

Metatrader 4 version identical to Mql5 indi!

Quant 2nd Model, by Gemini AI

Quant Ultimate Momentum Pro, by Gemini AI

Show Align Mean optimum all chart profit.

Combination optimum of sloping native MT4 indicators.

Displays daily, weekly and monthly ATR, the current high–low range, the range as a percentage of ATR, and price movement from each period's open.

Good Trading System

Excellent Trend-Following system based on ATR.

MACD, OsMA, AC, AO & RVI same time slope growing/falling is the signal.

A Lightweight Manual Trading Panel for MetaTrader 4 — Live Trading and Strategy Tester

Awesome Expert Advisor for Metatrader 4

QCL Smoothed Heikin Ashi for MT4 applies two-stage smoothing to Heikin Ashi candles, helping traders reduce visual price noise and identify trend direction. It features independent smoothing periods, four moving average methods (SMA, EMA, SMMA, and LWMA), and customizable bullish, bearish, and neutral candle colors. Smoothed candles appear directly on the main chart. Candle values are calculated and do not represent actual market prices. The current candle may change until the bar closes.

Trading on Bitcoin in the Weekends. Scalper EA to VPS ~0ms low-latency

32 Indicators, signal is qtt number cross of buys & sells triggered as show superpassed a number assignment.

Hi bros, yesterday I had an idea, pick all the best trend following default indicators on TradingView and made a super TS with the conjunction. Claude from Anthropic did the excellent job.

Exports closed trades to CSV with Maximum Adverse Excursion (MAE) and Maximum Favorable Excursion (MFE) in points and money, calculated from M1 history, plus the percentage of the available move each trade captured.

Opens charts for all Market Watch symbols or a custom symbol list in one click, on any timeframe, with an optional template applied to each chart. Skips charts that are already open and limits how many are opened at once.

Shades the chart background by volatility regime (Compression, Normal, Expansion) based on the percentile rank of the current ATR. Shows the current regime on the chart, alerts on regime changes and exposes buffers for Expert Advisors.

Shades the chart background by volatility regime (Compression, Normal, Expansion) based on the percentile rank of the current ATR. Shows the current regime on the chart, alerts on regime changes and exposes buffers for Expert Advisors.

Draws Asian, London and New York session range boxes and marks liquidity sweeps: a closed bar that wicks beyond a completed session's high or low and closes back inside. Non-repainting arrows, extended session levels, alerts and iCustom-ready buffers.

Scalping Expert Advisor that reads a 3-period smoothed MA channel (High/Low), places pending stop orders either with the move (Trend) or behind it (Reversal), and trails the stop loss tick by tick. It includes broker-safe order handling for stop level, freeze level, retries and latency.(Inspired by Waygrow Ea)

A two-sided grid EA that lays a small symmetric ladder of pending stop orders around the current price, then escalates in two stages as fills accumulate: first a single opposite-side lot "bump," then a full martingale doubling sequence with two extra grid levels added. The whole basket is watched as one unit and closed the moment its combined floating profit reaches a target, after which a fresh grid re-arms automatically. Built with separate, auto-selected input profiles for XAUUSD and NAS100/US100, since the two symbols need very different lot sizes, grid spacing, and broker minimum-distance handling.

A complete, self-contained trend-reversal Expert Advisor for gold and silver. It waits for an averaged-bar colour flip to mark a possible reversal, then requires price to close back inside a volatility channel before committing to a trade. Stops are placed at real swing structure, position size is derived from your chosen risk, and the trade is closed early whenever the market prints an opposite-direction signal. No external indicators are required — all signal logic is built into the EA. Nothing repaints: every decision is made on closed bars only.

Free multi-timeframe Supertrend indicator for MetaTrader 4 with clear trend lines and Buy/Sell signal arrows.

Visual MT4 indicator that draws the current or selected H1 range and nested M30, M15, M5 and M1 boxes. An EA based on this logic is in development.

Professional open-source trade management utility for MetaTrader 4. Automatically applies Stop Loss, Take Profit, Break Even and Trailing Stop while providing a modern dashboard for efficient position management.

Swing-pivot support and resistance zones clustered by touch count with adaptive zone thickness and higher-timeframe context.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106