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

Submit your code

Indicator Volatility Ratio2

Opening an opposite position when reaching a profit of N pips

The Expert Asvisor uses iCCI (Commodity Channel Index, CCI) and iWPR (Williams’ Percent Range, %R) indicators, as well as custom DayImpuls indicator.

The Multi timeframes RSI indicator

An Expert Advisor for two currency pairs

CCI of average - floating levels

Deviation scaled MA with self adjusting levels

An Expert Advisor for placing Stop Loss and Take Profit.

The indicator displays the information on the current trends, using the ColorPEMA_Digit indicator colors from ten different timeframes

Vervort's crossover - histogram version

Adaptive Moving Average - AMA - with filter

Trix oscillator with support / resistance lines on chart

QQE of Rsi(oma) - on chart

Grid system with limit orders. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

converted stdlib library for MQL5 from the MQL4

This script opens randomly selected charts and applies user-defined template.

The ColorLine indicator shows the line of the price moving average on the chart. The line has diffrent colors (100 bars has the same color). The color settings of the line is changing every 5 ticks, there are 3 color schemes.

The Fractal is one of 5 indicators of Bill Williams’ trading system, which allows to detect the bottom or the top.

This is a simple Expert Advisor, that uses a specified custom RKD indicator.

QQE - Qualitative Quantitative Estimation MA on RSI, Difference of MA on RSI and MA of MA of ATR of MA of RSI

Simple example of use of the DRAW_ZIGZAG drawing style.

Trade signals based on "Bullish/Bearish Meeting Lines" candlestick pattern, confirmed by Commodity Channel Index (CCI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The DRAW_COLOR_HISTOGRAM2 drawing style is used to plot color histograms using two indicator buffers, the colors are specified in the color buffer.

Using JMA adaptive moving average is the best way to smooth price ranges with a minimum time lag.

The indicator generates signals for entering the market.

Symmetric Darvas Boxes for Forex.

Stochastic RVI is a standard Stochastic Oscillator applied to the values of RVI (Relative Vigor Index) indicator instead of a price.

BrainTrend1 and BrainTrend2 are placed in one minimized window to remove excessive elements from a chart workspace. BrainTrend1 (upper square dots) is a basic trend indicator, while BrainTrend2 (lower round dots) is a confirming indicator.

The CVidyaOnArray class is intended for calculation of VIDYA (Variable Index Dynamic Average) on an indicator buffer.

Pair trading. Hedging. Market-neutral strategies.

The Expert Advisor based on three moving averages and exit using Stop Loss or Take Profit. It sets up a market entry upon the conclusion of a trend on the trend reversal.

The script for manual trade: when achieving the limit price the script sets stop order and logs out

The oscillator for intraday trading.

A trend indicator implemented in the form of NRTR. Timeframe is specified in the input parameters of the indicator.

An indicator of pin bars, to be used as a built-in indicator in Expert Advisors. Shows levels specified by the pattern for the open price and stop-loss.

A pivot with Fibo levels on the basis of daily candlesticks

A candlestick momentum with a triple EMA averaging.

The BlauCSI_HTF_Signal indicator shows trend direction based on the data of the BlauCSI indicator as a graphical object with colored trend indication, gives alerts or audio signals and sends push notifications on your smartphone.

The indicator fixes the moments when the volatility of the financial asset takes to a minimum value and puts colored dots on the chart in the middle of the range of the candlestick movement.

Two Standard Deviation channels automatically positioned on the chart.

1...596061626364656667686970717273...189