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

Submit your code

LBR Paint Bars indicator

The HLCrossSigForRSI is considered as a trend indicator since it is intended for "catching" trends. However, it's a pretty complex and informative indicator that allows excluding the psychological and emotional effects from trading

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.

Two identical trading systems (for long and short deals) based on the ColorMETRO 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.

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.

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.

Are you tired and lost when it comes to creating an attractive market watch list ? You always see pro traders creating an attractive market watch list in which they draw support/resistance and create all possible scenario ? Well we will guide you step by step to create your own attractive market watch list for potential entries.

Indicator Camarilla Points "Stocks & Commodities V. 31:3 (pg. 10-15)"

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.

RSI indicator, can be applied to any timeframe (higher or lower than the current chart's timeframe).

The indicator allows to perform any arithmetic action with prices of two symbols and plot result on any other chart. It allows to calculate crosses (using multiplication and division), spread (subtract) or just to plot the other symbol's data on the chart.

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.

Indicador Klinger Volume Oscillator colorido com a possibilidade de selecionar seu algoritmo de suavização dentre as dez possíveis variantes.

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.

WKBIBS is a next generation oscillator with combined WKB and IBS indicators functions.

Pair trading. Hedging. Market-neutral strategies.

The indicator displays the second chart over the main one using the reference point.

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

1...495051525354555657585960616263...183