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

Submit your code

Two identical trading systems based on the signals of BrainTrend2_V2, for long and short trades, which can be configured in different ways within one Expert Advisor.

Indicator Speed of Trade

An indicator that draws the CaudateXPeriodCandle candlestick sizes in points.

AV

AV (Average Volatility) - a simple average volatility oscillator.

The EA performs initial opening in both directions. Then it tries to pull the remaining side into profit.

Parabolic Stop And Reverse as an oscillator

This version is the smoothed version of the original Range Oscillator + Bands indicator. Smoothing is cleaning up some false signals and, since the smoothing method is JMA (which has very small lag) the added lag is as small as it can be making it much easier to use in a lot of decision situations.

An Expert Advisor based on the iWPR (Williams' Percent Range, %R) indicator with the operation time control.

The indicator DHLPBO (Dynamic High/Low Percentage Band Overlay). Unlike DHLBO, which displays two bands calculated based on the Highs/Lows of the range, this indicator constantly narrows the channel width by a certain percentage throughout the whole range.

The indicator measures money on a chart.

Double smoothed MACD Stochastic indicator

Step chart of stochastic of averages

Bollinger Bandwidth Delta oscillator

Two identical trading systems (for long and short positions) based on the signals of the VortexIndicator indicator, which can be configured in different ways within one Expert Advisor

The indicator based on three moving averages

The Expert Advisor uses iMA (Moving Average, MA), iAO (Awesome Oscillator, AO) and custom Laguerre indicators.

MinMax indicator

Vortex Trend indicator

RSI_X20 indicator is able to color each line depending on its position relative to overbought and oversold areas

The Ultimate Oscillator indicator

The MA Slope indicator

Double smoothed stochastic of ratio

The ColorMFI_X20 indicator with the possibility to change the calculation timeframe using the indicator input parameters

The ColorRSI_X20_Cloud indicator with the possibility to change the indicator timeframe using input parameters

Correlation angle

Class for comparing two floating point variables.

This Script will Refresh All Open Charts in MT5, Usually custom symbols in MT5 needs to be Refresh sometime so this script will help to refresh all open chart at once. We can also use this Script anywhere where we need to refresh all open charts.

The script scans through the current chart for any available chart objects, Counts and delete them accordingly, And log the the names of the objects on the chart respectively.

Callback interface for timer

This is a simple mean reversion EA

An automated Expert Advisor that implements a popular MACD-based strategy as seen in a viral YouTube video with over 3.5 million views. Combines MACD crossovers, trend filtering with the 200 MA, and support/resistance detection.

This script exports indicator's values to CSV file.

The fan based on the five T3 moving averages for trend indication.

Simple indication of a newly born trend using colored arrows on a chart.

ZigZag allowing to build Fibo fans on the last two ZigZags.

Vertical time grid with eight hours step.

The indicator allows to work with changing in real time and mirror reversed (1/X) trading instrument.

The indicator creates areas of preferable stop-losses location for long and short positions at any time.

Empirical mode decomposition of the current symbol.

The Expert Advisor with a basic trading system on the basis of the CCI indicator and several linear perceptrons regulating the work of the basic trading system.

1...949596979899100101102103104105106107108...210