Watch how to download trading robots for free
Find us on Telegram!
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

Top MQL4 and MQL5 source codes based on user ratings - 199

Submit your code

gnome sort is based on the technique used by the dutch garden gnome

This script draws Fibonacci Fan OBJ_FIBOFAN with options to add your own custom values

Smoothing the custom indicator 'Relative Momentum Index' using iMA

Volatility indicator

A professional object-oriented MQL5 library designed for quantitative developers. It provides asynchronous order execution and dynamic slippage control to prevent terminal freezing during high-frequency algorithmic trading.

Overview Channel Sun Signals plots an adaptive, triangular-weighted moving-average channel (a center line plus an upper and lower band) around price, and marks potential reversal points where price pierces a band and then closes back inside it. It is built on the same "band-break-then-reversal" logic used by classic TMA/CG-style channel indicators, but rewritten natively for MT5 — including its own multi-timeframe engine that does not rely on iCustom() or an external .ex5 file, so the indicator works standalone once compiled.

Marks non-repainting swing highs and lows using configurable LeftBars / RightBars pivots. Sends push and email alerts on each new confirmed swing.

The Hilbert Oscillator Indicator was created John Ehlers in "Rocket Science For Traders", pg.90-91

Trend Direction And Force Index with Alert derived from Mladen Rakic's version https://www.mql5.com/en/code/21869

Development of the first version. Added parameters 'Maximum number of positions' and 'Minimum step of positions'

Reversal strategy using Moving Average, Standard Deviation and RSI

Aquarium Canvas Background for Chart This script adds cool live canvas background on the chart like aquarium

A series of indicators 'Square' - shows the state of the indicators in the form of lines of squares. Displays two indicators: MACD and Stochactic

The Decycler: John Ehlers, "Cycle Analytics For Traders" by John Ehlers, pp. 40 - 41.

Shows Symbol name, percentage change of price from last day, and Time Time has input options, You can select GMT, LocalTime or TradeServerTime

'MACD' indicator with the same color scheme as the 'Awesome Oscillator' indicator

Cumulative candle, taking into account High and Low

Double smoothed EMA - floating levels (multi time frame)

Arrow trends by iBearsPower and iBullsPower indicator for MT5

Version 2. Indicator based on 'Chaikin Oscillator, CHO'. Line intersection of 'CHO' and 'smoothed CHO'

Two 'Main' lines from two iStochastic (Stochastic Oscillator, STO) indicators with filled areas between the lines. Line crossing notifications (Sound, Alert, mail, push)

iVIDYA (Variable Index Dynamic Average) indicator with levels for N bars

Aroon - multi time frame version

this expert opens trade in the direction of the trend when specific rate of average daily range has been passed.

Trading strategy based on the iAMA (Adaptive Moving Average, AMA) and iRSI (Relative Strength Index, RSI) indicator. Doubling the position at a loss (not Martingale!)

Trend Follower Range Breakout System with Martingale.

This is an utility which allows you to list all open charts, indicators, expert advisers, and scripts in alphabetic order, and switch between them.

Trend Rider is a combination of several indicators eg super trend, rsi, and macd to assist in spotting and riding trends by showing direction inform of color candles and also showing trailing stop levels, It can be used independently or with additional filters.

Parmis les 5% des traders les plus performant du desk ''Options Dérivées'' de la Société Générale. PnL 22MEUR entre 01/01/2022 au 27/12/2022

Momentum deviation bands

Assistant - works on the current symbol, has the 'Trailing activate if profit is >=' parameter in the trailing parameters. Sets the initial Stop Loss and Take Profit. Closes all positions when target profit is reached

RMA

RMA average

Histogram between price and indicator or between two indicators

MyRsi - by John Ehlers

Fractals based on the iOBV indicator (On Balance Volume, OBV)

Strategy based on custom indicator 'RSI Dual Cloud'. Four types of signals

iDeMarker (DeMarker, DeM) indicator smoothed with iMA (Moving Average, MA).

Советник-утилита. Показывает суммарную прибыль за несколько периодов (сумму и в %), количество сделок за несколько периодов. Расчёт по заданному символу и magic number

Average trend

MyRsi with Noise Elimination Technology - by John Ehlers

1...192193194195196197198199200201202203204205