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

Submit your code

The indicator paints candles going beyond the CandleStop channel.

iATR (Average True Range, ATR) and iStdDev (Standard Deviation, StdDev) indicators are configured for crossing of the two iMAs (Moving Average, MA) plus for Buy and Sell separately.

Multi Averages Slopes indicator that checks slopes of 5 (different period) averages and adds them up to show overall trend. Averages that can be used in this indicator are the: SMA, EMA, SMMA, LWMA.

Multi timeframe version of the Trend Trigger Factor JMA indicator.

Ultra Trend indicator that uses a "fast" (fast in response to market changes) Zero Lag TEMA for trend calculations.

Force index - JMA

Variable Index Dynamic Average (VIDYA)

A trading system based on the signals of indicator FineTuningMACandle

Wick length indicator

Filtered price using self adjusting deviation for price filtering

Provides an interface for creating families of related or dependent objects without specifying their concrete class.

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!

AMA - Adaptive Moving Average - beginner tutorial to learn how to code in MQL5

changing character prices on an interval

An indicator which attempts to highlight a ranging market area

A short format for storing ticks.

The Parabolic SAR Indicator was developed for analyzing the trending markets.

The Price Rate of Change (ROC) reflects this ondulatory movement like an oscillator, measuring the difference in prices in a certain period. ROC grows if prices grow and drops along with them. The more the price change is, the more ROC changes.

The MovingAverages library contains functions for calculation of different types of moving averages.

A simple XML-parser, based on the msxml library.

This simple Expert Advisor uses Simple Moving Average and ADX indicators.

The script allows you to place the deals history on the chart using the graphic objects.

New version of the sChartsSynchroScroll script.

The Expert Advisor uses the Moving Average and Stochastic indicators.

The DRAW_HISTOGRAM drawing style is used for plotting the values of the indicator's buffer as a histogram.

COsMAOnArray class is designed for calculation of OsMA (Moving Average of Oscillator) values on indicator buffers. The example of use of the class is provided.

CRVIOnArray class is designed for calculation of RVI (Relative Vigor Index) values on indicator buffers. Test_RVIOnArray indicator is provided as the example of the class use.

The indicator shows possible targets of price movement. It calculates the distance from the market entry price to the highs and lows displaying the quartiles deviation.

Selflearning Expert Advisor

An indicator similar to Bolinger Band.

The Expert Advisor drawn on the basis of the MALR indicator. Trailing stop, lot increase, averaging and reversal functions are available

Emulator of functions for working with objects. It gives possibility to see the objects after testing in the chart

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

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

The AML indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

The MultiCMxTrend_x10 indicator shows information on current trends using the CMx oscillator position from ten different timeframes.

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

The Exp_CenterOfGravityOSMA Expert Advisor is based on the CenterOfGravityOSMA histogram change of direction.

The Exp_ColorMaRsi-Trigger Expert Advisor is based on signals triggered by the colors of the ColorMaRsi-Trigger semaphore signal indicator.

The RVI oscillator with the boundaries of the overbought/oversold areas in the form of Bollinger Bands.

1...464748495051525354555657585960...194