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

Submit your code

Trades on PERIOD_M1 (M1). Calculates bullish and bearish candlesticks.

Crossover of three iMAs (Moving Average, MA). Alert, sound notification and email notification of the first crossover. Arrows mark the crossover.

Correlation of two symbols.

I used to suffer from unnecessary losses and/or cutting my profit short since I wasn't fast enough to modify my SL and/or TP. That is why I've wrote these scripts that will allow me to react fast when I must modify my Sl and/or TP especially when I have many open and/or pending trades. I know there are plenty of Metatraders who also suffer from this and that is why I would like to share these scripts with you, hopefully it will be beneficial. Do not forget to send you comments as well as rate these scripts. Happy trading!

The AK-47 Scalper EA is fully automated. It employs a strategy of continuously entering Sell Stop orders and will modify them when the price moves against the pending orders.

Classic Pivot Point indicator paints pivot point and three resistance and support levels for all data points.

The semaphore arrow indicator of trend change

The script is assigned to a hot key for quick change of charts around in a circle.

Classic strategy based on Parabolic SAR indicator. With Auto Lot options and Trailing Stop. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

Bill Williams's Awesome Oscillator Indicator (AO) is a 34-period simple moving average, plotted through the middle points of the bars (H+L)/2, which is subtracted from the 5-period simple moving average, built across the central points of the bars (H+L)/2. It shows us quite clearly what’s happening to the market driving force at the present moment.

Color Parabolic 2. The color depends on the acceleration factor.

Something for those who wants to try out new Strategy Tester and don't have any EA.

It searches for tops or bottoms of price movement.

An Expert Advisor for trading during the night.

It plots the bar-averaged price charts (median price).

The oscillator, based on Ichimoku indicator.

It has simple code and trading rules. It's doesn't use any martingale MM strategies.

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

The DRAW_COLOR_HISTOGRAM drawing style is used to plot color histograms.

Stochastic Momentum Oscillator by William Blau.

Keltner Channel is volatility-based envelopes set above and below an exponential moving average.

T3

T3 Moving Average is based on multiple exponential smoothing of price.

The indicator for multi-currency technical analysis based on the related financial assets resonances.

More smoothed Momentum with colored indication of the current trend.

Conjunto de Bandas de Bollinger ® criado com base no algoritmo de média universal.

ATR Channels create price movement channels considering ATR (Average True Range).

Adaptive Stochastic oscillator.

StepMA is executed as a moving average.

The hybrid of the universal moving average and NRTR indicator. In this indicator the values of the moving average are corrected with the help of NRTR algorithm (Nick Rypock Trailing Reverse).

The indicator is based on comparing the signals of JJRSX oscillator and XMA moving average working on different timeframes - the current (chart timeframe) and the higher ones.

Two pole Butterworth filter is used for smoothing in this moving average calculation algorithm.

Vertical time grid with one year step.

Vertical time grid with eight hours step.

The indicator is based on the description given in Joe DiNapoli book "Trading with DiNapoli Levels". It is designed to evaluate the actual market overbought/oversold states.

XMACD_HTF_Signal displays trend directions from three last bars of the XMACD indicator as three graphical objects.

ZigZag based on the fractals of a larger timeframe considering VininI_FractalsTrend indicator data.

This version of the DinapoliTargets_Full indicator is convenient with its capability to be draw for any bar of a chart, what allows seeing the whole picture of the market behavior relative to the indicator levels on each bar. Apparently this indicator can be most useful when analyzing a strategy in the offline mode.

ZigZag indicator version displaying results of its calculations from the larger timeframe at the current one.

FisherTransform_HTF_Signal shows a trend direction as a graphical object with colored trend indication and gives alerts or audio signals in case of a trend change.

The simplest signal indicator for specifying trend power and direction.

1...818283848586878889909192939495...183