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

Submit your code

ATR adaptive SMA (simple moving average)

Draw a Rectangle on chart to plot custom grids based on points value on input

The Fair Value Gap (FVG) Indicator identifies price gaps that occur when there is an imbalance between buying and selling pressure. It highlights areas where price is likely to return to fill the gap, providing potential trade entry points based on market inefficiencies.

The Trend Equilibrium Indicator TrendEQ dynamically analyzes market movements by combining momentum and volatility. By scaling momentum with the market’s volatility, the TrendEQ provides a reliable measure of trend strength and direction.

EXSR.mq5: A counter‑trend MT5 EA that catches reversals by combining RSI(14) extremes with Bollinger Band breakouts and a reversal candlestick, placing one trade per symbol with fixed SL/TP.

Adaptive Support & Resistance indicator that automatically detects, tracks, and updates the nearest valid S/R levels using configurable confirmation bars. Levels dynamically shift after confirmed breakouts and extend forward in real time.

The Volume Rate of Change (VROC) is an indicator of the direction where the volume trend moves.

Donchian Channels is a volatility indicator based on the calculation of the current price range with using the recent highest and lowest prices.

The indicator colors the candlesticks according to B. Williams.

MACD with possibility to choose between tick volume and real volume.

The MetaTrader 5 version of RSI of MACD double

Double stochastic of RSI.

Plotting up to 256 averages on chart.

Two colored filled rectangles with the display of channel levels. The rectangles are drawn between the values ​​of two channels on one bar of any timeframe of the GRFLeadingEdge indicator.

Slow Stochastic.

"This advisor uses the RSI indicator to determine optimal entry and exit points in the market. A unique feature of the advisor is its martingale strategy, which allows for position reversal with an increased lot size during market reversals. The advisor offers flexible trading time settings: you can set a working time range and disable trading during specific hours to filter out news events."

The Expert Advisor works with pending orders Buy Stop and Sell Stop according to the time specified in its input parameters.

Provides Bollinger Bands with calculating the range bandwidth as the difference in pips between the upper and lower Bands. Bollinger Bands appearance and behavior can be tailored by adjusting period, shift, deviation, and applied price, along with color and line style. The 'range/bandwidth information' label can be placed in the specified Sub-Window, allow to customize label positions. Overall, this indicator aids traders in visualizing market flexibility and volatility based on Bollinger Bands width.

The simplest Expert Advisor that analyses the price movement on a given number of bars and opens a corresponding position.

While manually adjusting the stop-loss of a single trade to match its open price is a relatively simple task, managing numerous positions individually can be cumbersome and time-intensive. The Titik Impas Breakeven script for MT4/MT5 streamlines this process, providing efficiency and convenience for traders dealing with multiple positions.

Hides Alone Candlesticks

Sample code to count consecutive no. of bull or bear bars.

A smoother line chart which cuts out a lot of the market noise and uses volume in the formula

Creating profit labels on deals (closed trades) which also show in the strategy tester

Profit Maximiser (PMax) Indicator is an indicator created by integrating the moving average of the Supertrend indicator.

Countdown is an advanced indicator designed for traders who want to track the time remaining until the next candlestick or the next market open clearly and efficiently. With three flexible display modes (commentary, chart borders or next to price), this indicator offers a customisable solution to suit your trading needs.

A machine-learning inspired approach towards trending regimes. Providing accurate signals and backtest confidence built-in

This library will allow you to tranfser realtime quotes from MetaTrader 5 to external server application.

Fisher RVI is an oscillator that modifies RVI (Relative Vigor Index) custom indicator values using Inverse Fisher Transform.

Laguerre RSI with Laguerre filter

Adaptive efficiency ratio EMA

The Moving Average of Oscillator (OsMA) is the difference between the oscillator and its smoothed value.

i-Regression Channel generates regression channel.

SuperTrend indicator.

ALGLIB math function library (v. 3.19) ported to MQL5.

Trading system based on XDPO_Histogram indicator signals.

The indicator is an example of smoothing a time series of the OsMA indicator by filtering harmonics of higher order.

Pivot Point indicator with an addition of 4 ways of calculating pivot points.

This version is using double smoothed ema, not some regular moving average.

RSI experiment with a simple addition of filled areas when floating levels are crossed.

1...91011121314151617181920212223...200