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

Submit your code

Trading by RSI and Moving Average. Moving Average is used as a trend filter on H1.

Trend Trigger Factor indicator ported to MQL5 from wrongly coded version for MetaTrader 4.

The MFI normalized indicator

The Expert Advisor uses four iMA (Moving Average, MA) indicators from two timeframes. Two indicators with averaging periods 1 and 8 are created on the H1 timeframe and two indicators with averaging periods 1 and 8 are also created on the H4 timeframe.

This indicator shows trend line and channels using the BSI Indicator. Original work of https://www.mql5.com/en/code/13615

This Expert Advisor allows you to save infomation about the ticks, actual or simulated in Strategy Tester.

This indicator is a combination of moving average and ATR indicators.

The indicator plots a channel using the linear regression model: y=b+a*x.

This Expert Advisor performs the synchronization of charts.

Trade signals based on "Dark Cloud Cover/Piercing Line" candlestick pattern, confirmed by Stochastic indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Stochastic Oscillator equivalent with a minimum lag.

Moving average indicator with the linear regression smoothing algorithm.

Center of gravity is the oscillator developed by John Ehlers and presented in the "Stocks & Commodities" magazine (May, 2002).

The variant of the ZigZag indicator optimized by its operation rate.

The indicator builds the trajectory of the front linear regression and standard deviation points.

BB XMACD is a simple MACD indicator variation.

This indicator is designed for measurement of a financial asset price change periodicity. Cycle Period allows to create adaptive versions of oscillators.

Non-linear regression with interpolation of a price chart future values.

The indicator displays trend power and direction.

Parkinson's historical volatility.

There's a lot of Fibonacci indicators out there but I decided to make my own indicator for you.

The classic CCI with the colored signal levels. For the moments of time, when the CCI indicator is in oversold and overbought zones, there are change of the indicator color corresponding to the trend direction. The growing trend colors the indicator in lettuce green, the falling into the red one.

A set of Fibo levels (pivot points) drawn on day candlesticks.

Ergodic Oscillator from the book "Momentum, direction and divergence" by William Blau, implemented in the form of a color histogram with a signal line implemented as a colored cloud.

Slow-Stoch_HTF_Signal shows information about trend direction based on the data of the Slow-Stoch indicator and generates alerts or audio signals and sends push notifications if trading signals appear.

This Expert Advisor is based on signals generated by the Simple Trading System semaphore arrow signal indicator.

The indicator draws candlesticks of a larger timeframe as color filled rectangles using the data provided by the TrendlessAG indicator.

The ColorZerolagRSIOSMA indicator with the timeframe selection option available in the input parameters.

The Exp_CronexCCI EA is based on signals generated by the CronexCCI oscillator.

The Ergodic_Ticks_Volume_Indicator indicator with the timeframe selection option available in the input parameters.

This file replaces the WndContainer.mqh original file. It prevents the chart from being affected when you click and hold the mouse inside a container area.

The Exp_ColorSchaffJJRSXTrendCycle Expert Advisor is based on the ColorSchaffJJRSXTrendCycle oscillator change of position relative to the overbought and oversold levels.

The Exp_ColorZerolagJJRSX Expert Advisor enters the market when the ColorZerolagJJRSX indicator cloud changes its color.

A variant of the DeMarkerTrend_x10 indicator with the option to individually customize the input parameters for each DeMarker oscillator which are used to display the current trends

The Exp_CHOWithFlat Expert Advisor is based on the change of color of the CHOWithFlat indicator.

The indicator draws FatlMacdCandle indicator candlesticks of a higher timeframe as color filled rectangles using DRAW_FILLING buffers.

This script closes all windows of selected symbol or all windows of any symbol.

The Expert Advisor transfers to break-even and/or trails positions on every currency pairs or only on the current one.

Semaphore signal indicator based on the METRO_DeMarker indicator cloud color change algorithm.

NRTR is a trend indicator calculated using the CLOSE prices.

1...565758596061626364656667686970...199