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

Submit your code

Well known BB Stops (Bollinger Bands Stops) indicator with some additions and further adapting to MetaTrader 5 usage.

The smoothed Money Flow Index oscillator with the color indication of overbought/oversold level breakouts and of the histogram direction.

Trading system based on the signals of the ICHI_OSC indicator

Heatmap of Averages.

Average True Range (ATR) indicator values from other timeframes in a digital format, displayed as text on the chart.

Many traders are interested in native work with the BTC-e exchange directly from MetaTrader. In the exchange API, it is necessary to send data with the confirmation of parameters validity through HMAC-SHA512. The algorithm of SHA512 and HMAC calculation is implemented in this class.

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

Information about profit, points, percent, spread and time remaining until the close the bar on the current currency pair and timeframe in a compact and convenient form.

This version is a sort of normalized version - since it shows Volume as a percent compared to the Average Volume over a chosen period.

The script draws horizontal lines representing BUY (blue) and SELL (red) orders.

Indicator of volumes accumulated.

Panel indicator with the date on closed positions.

Working with pending Buy Limit and Sell Limit orders. Grid of pending orders.

The EA based on iCCI (Commodity Channel Index, CCI) indicator plus managing position volumes using martingale.

The EA based on iMACD (Moving Average Convergence/Divergence, MACD) and iStochastic (Stochastic Oscillator).

SuperTrend indicator

VZO

Indicator VZO

A modification of standard indicator iStochastic (Stochastic Oscillator, STO) - now you can manage levels #1 and #2 from your EA.

On-chart RSI

This is the version 2 of my script to export the trade history from MT5 selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software. More columns were added and fixed minor errors. The code for processing and exporting data was rewritten.

Scans multiple symbols looking for when the price crosses a pivot point or when xxPoints Near or bounce off pivot then it alerts the trader.

Correlation market state

An indicator lets you specify the number of bars separately before and after the current High / Low (fractal) can.

The ZigzagColor_Channel plots a channel by connecting the ZigZag peaks and ZigZag bottoms.

Trade signals based on reversal candlestick patterns is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Trade signals based on "Morning Star/Evening Star" 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.

The script downloads historical data (for the current symbol), available at trade server.

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

BrainTrend2 is an indicator of the market trends that assigns colours to candlesticks according to the trend direction.

BrainTrend2Stop is a trend reversal detection indicator, it is displayed by the stops line. Intersection of the line indicates trend reversal and the time to close previously opened positions.

Multi-currency Expert Advisor functional module for organization of an access to any historical data with a request result processing.

This indicator determines trend power and direction.

New CCalendarInputBox control element of the IncGUI library has been designed for date and/or time input.

Ergonomic Parabolic SAR. The indicator itself is a two-color one and it also adds large colored dots that appear during each trend reversal.

The indicator acts in a fully opposite way comparing to the adaptive moving averages during a trend market: in case of a definite trend, both indicator lines (Lead Sine and Sine Wave) move parallel to each other and show the trend direction by their location relative to each other; in case of a flat, the Sine Wave indicator quickly reacts on the market swing movements.

DeMarker indicator with the possibility to select smoothing algorithms that is made in color with dynamically changing oversold and overbought levels.

The HLCrossSig for WPR is considered as a trend indicator, since it is intended for "catching" trends. However, it's a pretty complex and informative indicator that allows excluding the psychological and emotional influence from trading.

Adaptive Exponentially Smoothed Moving Average, based on StdDev indicator.

This indicator draws a period of operation that specifies trade start time and trade stop time.

The class realizes the probabilistic neural network (Probabilistic Neural Network - PNN)

1...67891011121314151617181920...183