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

Submit your code

Two indicators ColorX2MA from different timeframes, the area between lines being filled with a cloud, the color of which corresponds with the trend direction on the market

This indicator calculates the index of a given currency, using the USD index. The Close prices of six currency pairs are used to calculate the index.

Two independent trading systems using indicators BrainTrend2 and AbsolutelyNoLagLWMA within one EA.

Indicator Intraday Intensity Index 2

A simple Pivot. No stop loss and take profit are used.

Wildhog indicator

OHLC Volume indicator

Fibo Average

BezierMA moving average

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

The strategy is based on two indicators calculated on two timeframes: iAO (Awesome Oscillator, AO) on the D1 TF and iStochastic (Stochastic Oscillator, Stoh) on H1.

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

Copy these into any EA you are busy coding and you"ll have a trailing sl the only things you'll need to change would probably be InpMagic for your magic number or you could just copy my code as is , Remember to add COrderinfo ord; and CPositionInfo pos;

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.

The Improved version of MаrtGreg Expert Advisor.

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.

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.

1...394041424344454647484950515253...189