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

Submit your code

Trend Trigger Factor indicator with T3 smoothing (to lessen false signals) and some extras in order to make the trend triggering state easier.

CCI_Histogram_Vol indicator with additional averaging of the resulting histogram

Expert Advisor based on iRSI (RSI) and iMA (Moving Average, MA).

Position volume calculation based on trading history. The Expert Advisor applies iCCI (Commodity Channel Index) and iMA (Moving Average) indicators. Trailing is present as well.

Stochastic volatility - on chart

Indicator Colored Middle Point of Candles

Indicator Fractal Channel

Two identical trading systems (for long and short deals) based on the ColorMaRsi-Trigger indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system.

Indicator of Murrey levels in indicator buffers with the added visual text information on those levels, calculating the levels on a timeframe specified in the inputs

A price channel based on a bar of user-defined duration (timeframe).

PdfMA based awesome oscillator

BB stops - Hull average based with multiple stops included

Adaptive ATR channel

TRIX (using fast EMA for calculation)

To assist traders who wish to open multiple sell orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Sell is the number of trades to execute. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple sell orders, it can save traders valuable time and allow them to focus on other aspects of their trading

The Accumulation/Distribution Indicator is determined by the changes in price and volume.

Calculates fractals and lets you specify the number of bars separately before and after the current High / Low (fractal).

The updated version of TimeClosingPeriod indicator, it plots the time, remained to the current bar complete. At the last second it plays the sound file, specified in the input parameters.

The function allows checking whether a new bar has appeared on the specified timeframe.

MACD indicator with MACD line, Signal line and multi-color histogram.

The panel simplifies manual trading and trailing of the opened position.

The Expert Advisor is profitable only if the "Open prices" only or "1 minute OHLC" modes used in Strategy Tester.

This trend indicator shows the current trend direction and moments for closing of the opened position.

CADXOnArray class is designed for calculation of ADX (Average Directional Movement Index) values on indicator buffers. The example of use of the class is provided.

Slightly modified history load function from MetaQuotes.

The indicator which fixes Pin Bars in the chart

The MA will automatically recalculate the period if there are any changes in time frame.

Trading system using the Digital_MACD indicator.

This script finds DeMark pivot points, displays them on the chart and indicates their dimensions.

The indicator shows correlation between currencies.

Simplified version of the popular ZigZag indicator. The algorithm runs significantly faster, does not use intermediate calculation buffers, does not contain nested cycles and, therefore, does not redraw itself.

The Expert Advisor averages losing positions based on a particular algorithm.

Extended swing line indicator

VR---SETKA---3 - MetaTrader 5 Expert Advisor. This is a continuation of VR---SETKA . The EA is based on the martingale principle. Grid. Martingale. Use only on hedge accounts.

The Expert Advisor trades inside a channel, reversing positions at the channel borders.

Measuring the net performance of MetaTrader 4/5 strategy testers.

Laguerre filter - without the usage of gamma parameter

Volatility ratio - standard deviations based

Perfect Trend Line 2

Demonstration of Canvas's capabilities using 3D spiral quotes as an example.

1...252627282930313233343536373839...183