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

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

Submit your code

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.

Simplified version of the popular ZigZag indicator. The algorithm runs significantly faster, does not use intermediate calculation buffers, does not contain nested cycles and, therefore, does not redraw itself.

The Expert Advisor averages losing positions based on a particular algorithm.

Extended swing line indicator

VR---SETKA---3 - MetaTrader 5 Expert Advisor. This is a continuation of VR---SETKA . The EA is based on the martingale principle. Grid. Martingale. Use only on hedge accounts.

The Expert Advisor trades inside a channel, reversing positions at the channel borders.

Measuring the net performance of MetaTrader 4/5 strategy testers.

Laguerre filter - without the usage of gamma parameter

Trend composed by a series of averages

Indicator ZigZag Oscillator

Demonstration of Canvas's capabilities using 3D spiral quotes as an example.

The Relative Strength Index Indicator (RSI) is a price-following oscillator that varies between 0 and 100.

The Universal Moving Average, it allows to select any type of moving average, included in the MetaTrader 5 client terminal.

The DRAW_LINE style is used for plotting the values of the indicator's buffer as a line.

The DRAW_FILLING drawing style plots the filled area between the values of two indicator buffers. In fact, it plots two lines and fills the area between them with the specified color.

The DRAW_BARS drawing style is used to plot the bars using the values of 4 indicator buffers with Open, High, Low and Close prices.

Instantaneous Trendline shows buy and sell signals, while crossing the moving averages.

CG Oscillator basic and signal lines crossing generates buy and sell signals.

The indicator builds a candlestick chart consisting of floating spread current values in online mode.

iGDR_Fractal_Levels shows the fractals average values over a certain period of time.

MPC

The MPC indicator plots a simple channel using extermums of the specified period. It can be used for additional visual control of trading system (channel breakout), based on HighestLowestRange (HLR) indicator.

Trading signals module for MQL5 Wizard. BykovTrend indicator's color arrow serves as a market entry signal.

Trading signals module for MQL5 Wizard. The moment, when ColorJFatl indicator changes its color, indicates the time for market entry.

Advaptive Exponential Moving Average - ATR Volatility Adjusted by Jose Silva.

CCI smoothed by Tilson algorithm.

The indicator demonstrates the example of using the FileReadDatetime() function

The indicator shows the method of drawing gradient semitransparent areas with independent update rate.

Creates a synthetic from two selected pairs.

Expert Advisor based on the ColorZeroLAG_MA indicator change of direction.

The indicator shows Moving Averages (MA) values, difference between values and difference between MA.

The Expert Advisor looks for a negative spread and trades using it.

Indicator of price change speed.

The Exp_i-CAi Expert Advisor is based on change of direction of the i-CAi indicator.

PFE

Oscillator with calculations using an algorithm similar to Kaufmann's AMA.

An oscillator to help you confirm your Elliott waves counting (doesn't count the waves automatically)

Trading system based on the signals of the RSI_Slowdown indicator.

1...323334353637383940414243444546...188