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

Submit your code

Corrected extended (volatility ratio adaptive) Wilder's double smoothed ema - multi time frame version

This script will change the SL and TP of all open trades of the symbol to the price where the script is dropped off.

Trading the STRONG against the weak!

Converts trendlines into horizontal lines.

Simple script to see your current Profit Losses in Pips.

Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation

The Chaikin's Oscillator (CHO) is the difference of moving averages of Accumulation/Distribution.

The eInTradePanel is a panel for manual trading, it has some useful functions. It needs the minimum space on the chart.

Control panel for the MQL5 Best Graphic Panel Contest.

This Expert Advisor performs the synchronization of charts.

Trade signals based on "Bullish Harami/Bearish Harami" 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.

Trade signals based on "Morning Star/Evening Star" candlestick patterns, 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.

True Strength Index (TSI) indicator by William Blau.

Ergodic Oscillator by William Blau.

KRI

While creating Kairi (KRI) oscillator, deviation of a price from its simple moving average is calculated. The result is shown in percentage of the average.

The variant of the ZigZag indicator optimized by its operation rate.

The indicator shows the moments of the market acceleration. Besides, it indicates appropriate time for buying, selling and market exit.

An indicator to put correlated currency charts on a given currency chart. It shows only bars currently. Color/monochrome mode is configurable. It also supports currency inversion for handling EURUSD & USDCHF like pairs.

CERDOnArray class is designed to calculate the Efficiency Ratio (ER) used in the Adaptive Moving Average (AMA) considering price movement direction. When the price is moving upwards the indicator has positive values, when it is moving downwards, - negative ones.

CMomentumOnArray class is designed for calculation of Momentum values on indicator buffers. Test_MomentumOnArray indicator is provided as the example of the class use.

Trend Indicator. There are 10 possible variants of changing the averaging of the signal line in this indicator.

This indicator shows the "ultimate support/resistance" levels of current trend. Trend changes is shown with color rectangles, trend direction is shown with colored dots.

The CEnvelopesOnArray class is intended for calculation of Envelopes on an indicator buffer.

Trading signals module for MQL5 Wizard. The moment, when a candlestick formed by FiboCandles changes its color, indicates the time for market entry.

A simple script for switching basic timeframes. It allows to change a chart period using hot keys.

Two-Line MACD. This indicator is available by default in a great deal of trading platforms. But it cannot be found in Metatrader 5.

The function that calculates the lot size depending on the amount of money in the deposit currency being used.

Digital filtration of the variation indicator.

Bill William's Gator Oscillator which is drawn on the high and displayed on the lower timeframe.

The variant of the UltraFatl indicator which can be placed by fixing timeframe of the indicator on a value different from the chart timeframe.

This indicator is calculated on the basis of currency pair volatility displaying the nearest support and resistance level depending on the trend direction.

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 digital filter of rapid trend with a reference line, implemented in the form of a cloud.

Ergodic MACD-Oscillator implemented in the form of a color histogram.

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

The indicator draws candlesticks of a larger timeframe as color filled rectangles.

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

A trend indicator that uses Standard Deviation.

A trendless indicator (oscillator).

The ColorJFatl indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

1...585960616263646566676869707172...184