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

Submit your code

The Bollinger Bands ® Indicator (BB) is similar to Envelopes. The only difference is that the bands of Envelopes are plotted a fixed distance (%) away from the moving average, while the Bollinger Bands are plotted a certain number of standard deviations away from it.

The Gator Oscillator is based on the Alligator and shows the degree of convergence/divergence of the Balance Lines (Smoothed Moving Average).

The CGV class simplifies the work with global variables of MetaTrader 5 client terminal.

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.

Stochastic indicator, can be applied to any timeframe (higher or lower than the current chart's timeframe).

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.

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.

How many buffers does your indicator use? What's it calculating? Is it efficient? If you want to know what's going on behind the scenes, you'll now be able to.

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.

Parabolic SAR that avoids some of the problems of existing PSAR-indicators and calculates the values correctly.

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.

The simplest EA based on the WeightOscillator weighted oscillator.

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.

An Expert Advisor based on the "Arrows&Curves" indicator.

1...192021222324252627282930313233...183