Watch how to download trading robots for free
Find us on Telegram!
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

The purpose of this grid is to replace the standard grid with more convenient, it allows to determine many important points on the chart, the properties of the price movement and checkinh the quotes quality (for the presence of holes).

This simple Expert Advisor uses Simple Moving Average and ADX indicators.

This Expert Advisor is based on Bollinger Bands. It uses trend-following strategy and Bollinger Bands indicator.

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

The DRAW_NONE drawing style is used in cases, when you need to calculate and show the values of the indicator in "Data Window", but the plotting isn't needed.

This indicator shows the direction of the acceleration of JFatlAcceleration price from a larger timeframe at a smaller one.

CSAROnArray class is designed for calculation of SAR (Parabolic SAR) values on indicator buffers. The example of use of the CSAROnArray class is presented.

Trinity-Impulse indicator shows market entries and periods of flat.

This indicator shows trend direction (Moving Average) and trading signals (Stochastic + Accelerator).

The indicator displays the fast adaptive line that allows to evaluate a trend line.

The indicator shows entry signals based on Accelerator Oscillator.

The script exports historical data to HST format for its use in MetaTrader 4 client terminal. This file can be imported in MetaTrader 4 as historical data or you can open it as offline chart.

The indicator calculates the resistance and support lines and shows alerts when price is reached them.

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

The Expert Advisor with a very simple price analysis in two bars and with the increasing lot after a loss

The renko (renko) chart in a separate subwindow. No matter on what chart timeframe the indicator is attached, the renko is drawn on close price of М1 timeframe.

The class is designed for calculation of Moving Averages (Moving Average) using the algorithm of the ring buffer.

The class is designed for calculation of the technical indicator Double Exponential Moving Average (Double Exponential Moving Average, DEMA) using the algorithm of the ring buffer.

The indicator draws support/resistance lines and the trend lines in the chart

An Expert Advisor based on the difference of two moving averages.

The script demonstrates the example of using the FileSize() function

Version 1.2 - MQL5\Include\mql4compat.mqh

A widely used indicator with two CCI from different periods.

Like period Separator each new day will gets its vertical line at starting. With several options how to display

Simplified version of Ozymandias with price band lines removed.

Simple trend indicator based on a group of several technical indicators.

Colored histogram based on a famous indicator by Edward Coppock.

The Exp_ColorZerolagTriX Expert Advisor enters the market when the ColorZerolagTriX indicator cloud changes its color.

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

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

VWAP is an intra-day calculation used primarily by algorithms and institutional traders to assess where a stock is trading relative to its volume weighted average for the day.

A simple way on how EA can link a manual order command from outside to use it in MetaTrader 5 Strategy Tester.

An example of using the MasterWindows library for creating a game trade panel.

Trading system based on DarvasBoxes_System indicator signals.

The vaMA moving average with the to change the averaging algorithm.

The Color Day indicator colors the bullish and bearish days.

Super trend indicator with 18 possible averages for calculation.

Crossing of the two iMAs.

The Expert Advisor trades based on two iMA: iMA(5) and iMA(4) on the M5 timeframe.

The EA uses 15 IMA indicators and two iAC indicators.

1...495051525354555657585960616263...189