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

Submit your code

SVSI indicator

The Multi timeframe Tymen STARC Bands indicator

Super smoother RSI

Schaff trend cycle CCI

RSI with on chart SR levels

MT5 (MQL5) Version of Position Size Calculator - Based on VP Money Management rules This version has been tested and works in both versions; in MT4 (MQL4) as well as in MT5 (MQL5). See the original MT4(MQL4) only version here: https://www.mql5.com/en/code/23886 NOTE: I'm aware there appears to be an issue with the volume calculation and cross currency exchange rates. I'm working on fixing these issues.

RMA - multi time frame version

The Price and Volume Trend Indicator(PVT), like On Balance Volume (OBV), represents the cumulative sum of trade volumes calculated considering close price changes.

A very simple sample of clock

It uses the values of ADX indicator for trading.

The Expert Advisor allows to trade using the keyboard.

Trade signals based on "Hammer/Hanging Man" candlestick pattern, confirmed by Relative Strength Index (RSI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The system of Camarilla Equation levels for the current bar.

The indicator that calculates the volume corresponding to MA per second (or period).

The Mass Index is intended for detection of trend reversals based on changes in the bandwidth between the highest and the lowest prices.

Cyber Cycle high-frequency filter.

Fisher CG Oscillator is an oscillator that modifies the CG Oscillator custom indicator values using Inverse Fisher Transform.

The fan of hundred XMA moving averages with the possibility to change the number of lines on a chart and select a smoothing method out of ten possible versions.

Guppy Multiple Moving Average (GMMA) is an indicator based on the relationships between groups of moving averages providing insight into the behavior of two dominant market groups - traders and investors.

3D_Oscillator_Signal shows a trend direction or a signal for performing a deal generated by 3D_Oscillator as text messages with a trend color indication or deal direction and gives alerts or audio signals.

The iClose_HTF indicator plots a zigzag based on closing prices of a time frame specified in the input parameters.

The Expert Advisor tries "to catch" rollbacks after a strong movement. Candlestick analyses is used

The Exp_CenterOfGravity Expert Advisor is based on the CenterOfGravity indicator. The signal is formed when a bar is closing if there is crossing of indicator and its signal line.

The trading system based on the signals taken from the CMO oscillator

This system, based on Momentum indicator, assumes that very strong price movements are determinant. It consists in riding the appearing tsunamis, for instance, an important US Nonfarm Payrolls release. HawaiianTsunamiSurfer works well on AUDUSD, USDJPY and EURUSD.

The script demonstrates the example of using the FileCopy() function

The script demonstrates the example of using the FileReadArray() function

Conversion from MetaTrader 4 version.

Trading system using the BlauTStochI indicator.

The MACD indicator is in the form of a colored cloud and the difference between the MACD and the signal line in the form of a color histogram.

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

A trading system that uses the smoothed Slow-Stoch stochastic.

A trading system using the HighsLowsSignal semaphore arrow indicator.

The indicator is designed to show how the seven major currencies have moved against the US dollar.

A semaphore signal indicator that uses divergence between two WPR oscillators based on extreme points of the last five bars.

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

The Beginner_HTF_Signal indicator shows a trend direction or a signal generated by the Beginner indicator.

The ADXCrossing_HTF_Signal indicator shows a trend direction or a signal based on the ADXCrossing indicator.

Cloud indicator, the envelopes of which represent the TriX oscillator values calculated for High and Low prices.

The Schaff Trend Cycle indicator based on the difference between two MFI oscillators with different periods.

1...727374757677787980818283848586...183