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 - 40

Submit your code

This indicator is actually a combination of two values: it shows the crosses of fast and slow Zero Lag TEMA, and that cross determines the current market trend.

The Center of Gravity Channel indicator

CCI_Histogram_Vol indicator with additional averaging of the resulting histogram

Average from MA indicator

Expert Advisor based on iRSI (RSI) and iMA (Moving Average, MA).

Position volume calculation based on trading history. The Expert Advisor applies iCCI (Commodity Channel Index) and iMA (Moving Average) indicators. Trailing is present as well.

Stochastic volatility - on chart

Indicator Colored Middle Point of Candles

Indicator Fractal Channel

SAR Oscillator 2 indicator

The Fib_SR indicator with two additional support and resistance zones.

Two identical trading systems (for long and short deals) based on the ColorMaRsi-Trigger indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system.

Indicator of Murrey levels in indicator buffers with the added visual text information on those levels, calculating the levels on a timeframe specified in the inputs

A price channel based on a bar of user-defined duration (timeframe).

BB stops - Hull average based with multiple stops included

Adaptive ATR channel

TRIX (using fast EMA for calculation)

Compute the daylight saving time changes (start/end of the summer time).

Converts trendlines into horizontal lines.

DCC / Piercing

Envelopes beginner tutorial to learn how to code in MQL5

This script helps traders understand the distribution and range of candles in a specific period, which can be useful for making trading decisions such as determining which historical values to use for Take Profit or Stop Loss.

Negative Volume Index (NVI) is a free technical indicator for advanced chart analysis in MT4, MT5 platforms. It is based on tick volume (can be substituted with real volume in MT5) and has two useful features added: Support for multi-timeframe (MTF) operation. Can be switched to show Positive Volume Index.

Breakeven Line Indicator is a MetaTrader indicator that calculates breakeven level based on all open positions and displays it on your chart as a horizontal line. Additionally, it will calculate the total number trades, the total number of lots, and the distance to the breakeven line in points and profit/loss. The indicator is available for both MT4 and MT5.

3rd Generation Moving Average is an advanced version of the standard moving average (MA) indicator for MetaTrader. It implements a rather simple lag-reducing procedure based on the longer MA period. The method was first described by M. Duerschner in his article Gleitende Durchschnitte 3.0 (in German). The presented version uses λ = 2, which provides the best possible lag-reducing. Higher λ increases similarity with the classic moving average. The indicator is available for both MT4 and MT5. It does not require using any DLL

A script which when dragged onto the chart will print out in the experts window the number of bars that are on that chart - like magic.

This indicator reads the trade history and plots the Cumulative P & L over time, helping visual traders to see how much money they are making or losing over time. This current version has a difference of 0.02% marginal error, due to rounding floats, and calculation methods. It can be considered extremely precise with this marginal error.

The Accumulation/Distribution Indicator is determined by the changes in price and volume.

Calculates fractals and lets you specify the number of bars separately before and after the current High / Low (fractal).

The "Support and Resistance" indicator shows the support and resistance levels using the Fractals indicator by Bill Williams.

This trend indicator shows the current trend direction and moments for closing of the opened position.

CADXOnArray class is designed for calculation of ADX (Average Directional Movement Index) values on indicator buffers. The example of use of the class is provided.

The indicator draws (in a separate window) the Bollinger Bands relative to the moving average and projection of the price bars.

This Indicator is used for calculating trend.

Slightly modified history load function from MetaQuotes.

The indicator which fixes Pin Bars in the chart

The MA will automatically recalculate the period if there are any changes in time frame.

Trading system using the Digital_MACD indicator.

This script finds DeMark pivot points, displays them on the chart and indicates their dimensions.

1...333435363738394041424344454647...190