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

Submit your code

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.

Working with pending Buy Stop and Sell Stop orders.

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.

T3

The T3 Moving Average indicator

Force index - JMA

EWO

EWO indicator

A trading system based on the signals of indicator FineTuningMACandle

Squeeze indicator

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

MACD beginner tutorial to learn how to code in MQL5

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

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

The OnTick event handler is designed to proceed the ticks for a certain symbol. This is the version of Multicurrency tick event handler.

Chart reinitialization with recalculation of all chart 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.

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.

If you need to show just a part of the image at the moment and hide other, you can use the moving window by specifying the visible area of the image.

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

SuperTrend trend indicator.

Forecasting the next day candlestick changing range for all bars of the current chart.

Adaptive CG Oscillator is a CG Oscillator that can adapt to constantly changing market cycles of a real financial asset.

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.

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

СIsNewBar class allows to determine the moment of a bar change.

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

The second (edited and added) version of the alternative indicator for trend definition based on the breakthrough bars and distance from extremums. The breakthrough levels and size of the previous trends are added.

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

A simple script that allows you to open a long position using the current price location with a specified Risk Percentage and Reward Ratio.

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 Exp_CenterOfGravityOSMA Expert Advisor is based on the CenterOfGravityOSMA histogram change of direction.

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

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

1...333435363738394041424344454647...184