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

Submit your code

TEMA can be used instead of traditional moving averages. It can be used for smoothing price data, as well as for smoothing other indicators.

Trade signals based on "Bullish Harami/Bearish Harami" candlestick pattern, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The indicator shows the moments of the market acceleration. Besides, it indicates appropriate time for buying, selling and market exit.

Comparative study of sorting algorithms.

The script calculates candles statistics (the minimal, maximal and average values of candles body and shadows) of the current chart.

A simple script that allows you to open a Short position using the current price location with a specified Risk Percentage and Reward Ratio.

The linear regression line with data placed in the indicator buffer.

The indicator shows information about size of candle in pips and size of the shadow too.

The indicator of price levels with round numbers 00, 20, 50, 80.

Trading system using the Ozymandias indicator.

Another version of the RSI using smoothed prices.

The Exp_SilverTrend_Signal_ReOpen trading system based on the signals of the SilverTrend_Signal indicator with scaling by the trend.

Trading on a new bar only. The rules are simple: if MAIN_LINE MACD (1) > MAIN_LINE MACD (2) -> Buy, if MAIN_LINE MACD (1) < MAIN_LINE MACD (2) -> Sell". When a signal opposite to open positions is received, close all positions.

An simple Indicator displaying daily opening line.

A set of thirty popular candlestick patterns.

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

The MFI normalized indicator

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.

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.

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).

This indicator paints the candlesticks in different colors depending on a trend power and direction.

BB XMACD is a simple MACD indicator variation.

Laguerre_HTF_Signal shows a trend direction or a signal for performing a deal generated by Laguerre indicator as a graphic object with colored trend indication or deal direction.

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

The indicator displays trend power and direction.

Trading signals module for MQL5 Wizard. The moment, when the oscillator line formed by ColorLaguerre changes its color, indicates the time for market entry.

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.

1...464748495051525354555657585960...189