Watch how to download trading robots for free
Find us on Telegram!
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 - 33

Submit your code

It's an oscillator of the overbought/oversold market conditions. It can also be used as the Momentum indicator. Triple smoothing is used for removing the cyclic components in price movements with the period less than that of TRIX.

This indicator uses the Nearest Neighbor clustering technique, also called k-NN, to search for the most similar pattern in history and use its past prices as predictions of the current pattern future prices.

The spread_on_chart indicator shows the current values of spread, stop and freeze levels.

Trade signals based on "Bullish Harami/Bearish Harami" candlestick pattern, confirmed by Commodity Channel Index (CCI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The hybrid of digital and analog filters that displays its larger timeframe values at a smaller one.

The indicator displays the crossing points of RSI (Relative Strength Index) indicators belonging to various periods.

The indicator creates fractals from another larger timeframe on a current chart based on Fine_Fractals indicator data.

The channel based on ATR (Average True Range) technical indicator deviations from the moving average.

Script to create wide screenshots.

Multicurrency multitimeframe indicator.

Initial library of combinatorics functions.

The class is designed for calculation the technical indicator Efficiency Ratio (Efficiency Ratio, ER)using the algorithm of the ring buffer.

The class is the simplified version of the CArrayRing class: it has a predetermined fixed size of 256 elements, it is faster, and allows to organize the mini time series, indicator minibuffers, short sized buffers to store intermediate stream data inside the Expert Advisor or indicator.

The class is designed for calculation of a technical indicator Money Flow Index (Money Flow Index, MFI) using the algorithm of the ring buffer.

This indicator will plot divergence lines on the MACD indicator and will give buy and sell signal by displaying green and red arrows.

A trading system using the AltrTrend_Signal_v2_2 semaphore signal indicator.

The ZZLevels indicator uses the Simple ZigZag to find the boundaries of the flat, as well as the support and resistance levels.

Night scalper, trades until 0 am terminal time within a narrow range.

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

The Exp_Delta_MFI Expert Advisor is based on the Delta_MFI indicator color change.

GMA

Geometric Moving Average.

MetaCOT 2 CFTC ToolBox Indicators is a set of MetaCOT 2 indicators that provide access to CFTC reports. MetaCOT 2 supports COT, Disaggregated COT, TFF and CIT reports. It allows to draw COT charts straight in the MetaTrader terminal. All indicators are available as source code, and anyone can use them to create their own trading system.

ADXVMA uses a sort of ADX values for determining the weights of average calculation.

The Exp_2pbIdealMA EA is based on the crossing of Moving Averages with position scaling according to the trend.

Ehlers inverse Fisher transform of RSI extended.

The Expert Advisor uses the iStochastic (Stochastic) Oscillator, iWPR (Larry Williams' Percent Range) indicators.

Two fractal Keltner channels in the form of a cloud.

An implementation of Bollinger Bands width indicator for MetaTrader 5.

The indicator shows the statistical characteristics of bars: the mean value, variance, skewness and kurtosis

The STD indicator with the timeframe selection option available in input parameters

An example of determining the moment when a pending order has triggered.

The XRSXCandleKeltner indicator with the breakout indication option

The Exp_ChandelExitSign_ReOpen trading system based on the signals of the ChandelExitSign indicator with trend following scaling.

The Expert Advisor closes all the current symbol positions opened on the account, if the current server time has exceeded the time limit specified in the input variables.

The XRSIDeMarker_Histogram indicator with the possibility to change the indicator timeframe in input parameters.

This version of Heiken Ashi Zone Trade indicator is made to display values in a separate window - that way it will not interfere with the other on-chart indicators and can be easier to read the states in some cases.

The indicator of the lowest tops and the highest bottoms.

Fibonacci Pivot points indicator that can draw any number of levels for any of the known timeframes usable by MetaTrader 5.

BOP

BOP (Balance of Power) is an oscillator that allows you to assess the powers of buyers and sellers on the market and identify the trend reversal within a proper time.

The EA uses the following indicators: iADX (Average Directional Movement Index, ADX), two iMAs (Moving Average,MA) - one indicator at CLOSE prices and another one at OPEN prices, iOsMA (Moving Average of Oscillator, OsMA).

1...262728293031323334353637383940...189