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

Submit your code

A channel based on peaks and troughs of Boa_ZigZag

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

We open a new position opposite to the previous one. Inputs only contain Stop loss, Take Profit and the minimum lot.

The trading system is based on iMACD (Moving Average Convergence/Divergence, MACD) and iStochastic (Stochastic Oscillator)

Standard VWAP (Volume Weighted Average Price) calculation, but with configurable start position.

The indicator draws the Keltner channel in the form of a cloud.

A modification of the "Custom Moving Average" indicator: now the line color can be passed in input parameters.

Rsi(var) with averages.

This version of Stochastic Oscillator reduces the number of false alerts by smoothing the price prior to be used in the stochastic calculation. That makes a nice smooth stochastic as a result that can easily be used for trend trading systems.

The Congestion Index attempts to identify the market's character by dividing the actual percentage that the market has changed in the past x days by the extreme range.

A script calculating the distance between a point and a line.

Smoothed Smart Money Pressure Oscillator

Unlike the Heiken Ashi Smoothed, this indicator is displaying 2 values only: +1 for trend up and -1 for trend down, thus making it suitable for usage from experts.

StepMA_3D_v3 indicator fills the space between the medium and slow trend with color and paints the fast trend line depending on its location

The trading system based on TrendManager indicator signals with the possibility to set a fixed position holding time

Hurst Bands indicator

RSX range expansion index

VHF (Vertical Horizontal Filter) adaptive ADXm

iWPR (Williams’ Percent Range, %R) indicator features new settings allowing users to manage display of levels and main level color from an Expert Advisor.

Triangular moving average

The Fib_SR indicator with three additional support and resistance zones

An Expert Advisor based on the iMACD indicator (Moving Average Convergence/Divergence, MACD)

Indicator Multi Timeframe Linear Regression MA with signal line

A trading system based on the signals of indicator ColorPEMA_Digit with the possibility to set a fixed position holding time

Fractal Adaptive Moving Average with value filter

Stochastic with support / resistance levels

This script will export the trade history from MT5 selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software. Current version 1.0 does not add the takeprofit and stoploss. Any advice to improve this is welcomed.

Calculates the phase and amplitude of the expected wave

Trend indicator

Based on the original “Time Segmented Volume (TSV)” developed by Worden Brothers, Inc.

Close trades when the percentage profit or risk of the account is reached

The indicator Measures the distance between the Bollinger Bands ® and providing it as a singular indicator, using the MetaTrader 5 techniques to simplify Bollinger calculations.

This is MQL5 version of DinapoliTargets indicator. The ZigZag indicator is added to the chart.

The indicator shows the position of the current price in a channel.

The improved version of the ZigZag indicator.

Nonparametric zigzag. The monotonicity condition for the ascending segment of the zigzag: the High of the any subsequent bar should not be lower than any Low of the ascending segment.

The CDownLoadHistory class provides the methods of historical data downloading.

BrainTrend1Stop is a trend reversal indicator.

A Lime candle of BrainTrend2 indicator is a signal to open a long position, a Magenta candle is a signal to open a short position.

Moving average with the double adaptive JMA smoothing of a price range.

1...353637383940414243444546474849...184