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

Submit your code

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

Multi LSMA Slopes indicator checks slopes of 5 (different period) Least Squares Moving Averages (LSMA or linear regression value) and adds them up to show overall trend.

Klinger Oscillator developed by Stephen Klinger to determine the long-term trend while remaining sensitive to detect short-term fluctuations enabling the trader to predict short-term reversals.

The Derivative Oscillator indicator

The trading system based on the JFatlCandle indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

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

Time Averaged Price indicator

Indicator RJTX_Matches_Smoothed featuring alerts, emails and push notifications for smartphones

Indicator Compare Prices

The Average change indicator

Specified time range candles indicator

RSI of smoother average

QQE of Rsi(oma)

This class was developed to exchange data between MetaTrader 5 and CSV files. It converts the strings read from the CSV file to double and integer values depending of the type of the columns. Two producers of CSV files are most important for me. The most important producer are spreadsheet programs, i.e. LibreCalc. Manually entered CSV are the other kind of CSV files I had in mind. Be aware that this class do not use the standard library FileCsv.mqh etc. Instead it works with text files. It splits text lines into fields. Maximum speed and low memory usage were no development goals. This class may not be suited for large datasets or time critical operations. I would not use CSV files if speed was my main goal.

Construct a moving line with a polynomial of 4 degrees. Extrapolates the sinusoidal and its axial. The constructed lines remove one value at each bar and a sliding line of extrapolated values is constructed which is not redrawn.

Indicator DayPivotPoint System with Signal and Alert for MetaTrader 5

Candlestick Wick Imbalance

This tool will calculate the acceptable lot size based on a stop loss distance and risk percentage

The Average Directional Movement Index by Wilder (ADX Wilder) helps to determine the presence of the price trend.

The script illustrates control of graphic objects using the classes from the Standard Library.

It is used for smoothing price series and is applied directly on a price chart of a financial security.

The indicator plots the Bollinger Bands ®, filled with different colors depending on the trend direction.

Nonparametric ZigZag, based on the "a-la Clyde Lee Patterns".

Trade signals based on "Bullish/Bearish Meeting Lines" candlestick pattern, confirmed by Stochastic indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

If you need to show just a part of the image at the moment and hide other, you can use the moving window by specifying the visible area of the image.

RSI oscillator with ultralinear and JMA smoothing algorithms.

The indicator shows the current trend, support and resistance levels.

The Demand Index combines price and volume in such a way that it is often a leading indicator of price change.

There are a lot of smoothing algorithms. This indicator is a smoothing of standard ADX.

This indicator compares the signals of three versions of Parabolic SAR indicator. The versions are set at different timeframes: junior (chart timeframe), middle and senior.

The CForceOnArray class is intended for calculation of Force Index on indicator buffers.

The COBVOnArray class is intended for calculation of OBV (On Balance Volume) on indicator buffers.

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

Exponential Moving Average - Bollinger Bands ® Volatility Adjusted by Jose Silva.

Trend indicator based on two RSI oscillators.

The class is designed for calculation of the Average True Range indicator (Average True Range, ATR) using the algorithm of the ring buffer.

The Expert Advisor "catches" changes of the positions (opening, reversal, closing, triggering of Stop Loss and Take Profit) and depending on the configurations triggers the sound file, outputs alert or sends e-mail.

An Expert Advisor based on the difference of two moving averages.

The Moving Average Expert Advisor trades when the price crosses the MA.

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

1...434445464748495051525354555657...193