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

Submit your code

Fractals - adjustable period and prices for MT5

Six bulls or six bear continuous candles

Counter attack candlestick pattern

Price increase Indicator

Intelligent position protection with one-hedge-per-position logic. Features magic number separation, cooldown timer, and max hedges limit. Prevents infinite hedging loops. Free MIT license.

A stripped-down and colorized (signal line only) version of Metaquotes' MACD indicator from the MT5==>Indicators==>Examples folder.

An indicator which features full Smart Money Concept (SMC) + Break Of Structure (BOS) + Change Of Character (COC) + Fair Value Gap (FVG) Detection and Buy/Sell signals.

The Momentum Technical Indicator measures the amount that a security’s price has changed over a given time period.

Here is a simple example that shows how to download page(file) from Internet using the library wininet.dll.

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

This class provides methods for working with Windows *.ini files.

The library contains the following hash functions: adler32, CRC-32, MaHash8v64. Also it has functions for radix conversion of a number.

The script contains a class, that can be used to solve mathematical and logical expressions, defined as string.

Trade signals based on "Hammer/Hanging Man" 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.

Fast Trend Line Momentum (FTLM) and Slow Trend Line Momentum SLTM) indicators show the rate of price change.

More informative Average Directional Index (ADX) indicator with the possibility to select the smoothing algorithm out of ten possible variants.

The indicator shows the average percentage value of the last candlesticks overlap. It is useful for those, who enters the market manually using limit orders during price consolidation, as it allows to select order direction. Blue line - recommended BUY-LIMIT, red one - SELL-LIMIT.

The indicator building Stop Loss levels lines according to BrainTrend1 trading system data with preliminary price timeseries smoothing.

Typical unnormalized oscillator displayed as a color histogram.

Curvelinear redrawing channel.

Trading signals module for MQL5 Wizard. WPRSIsignal indicator's color arrow serves as a market entry signal.

The indicator displays the charts of two symbols in one window.

Fast Trading Panel - the panel for fast trading

Delta ZigZag defines the reversal on a minimal height of the swing and also identifies trend on breakthrough of local minimum/maximum levels and colors zigzag sections in current trend color

The class realizes generalized regression network (General Regression Neural Network - GRNN)

The indicator changes the color of the bar to the color corresponding to the current trend, which is determined using the RVI indicator.

The indicator calculates % of growth or drop towards CLOSE. It is written via use of object-oriented programming and can be easily integrated into any Expert Advisor or other indicator.

Class for exchanging data between programs. It allows to pass structures of arbitrary size via the global variables of the terminal from one program to another.

Displays the number of decimal places (the number of digits in the fractional part), time and values of graphic object anchor points.

The Exp_PFE_Extr breakout trading system based on the signals of the PFE oscillator.

The Range Action Verification Index indicator implemented as a histogram of strength and direction of the current trend.

The Expert Advisor plots a Fibonacci based on the standard ZigZag indicator and traded rectracements from all levels. The levels are fixed and cannot be customized by the user.

Semaphore signal indicator based on the code of the RVIDiff indicator.

The vaMA indicator with the ability to replace averaging. It displays the most recent value as a price label with the possibility to round the channel levels up to a required number of digits. Additionally, it indicates the trend strength by colored dots based on the standard deviation algorithm.

Simple average spread per hour statistics output.

Composite RSI

T3 with floating levels

Indicator is already multi time frame version with alerts included.

Parabolic SAR that avoids some of the problems of existing PSAR-indicators and calculates the values correctly.

One more average/smoother that due to its fractional calculation period possibility can be used to be made adaptive.

1...242526272829303132333435363738...205