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

Submit your code

A colored cloud formed by two RSI oscillators with different timeframes.

The EA is based on Moving Average.mq5 from standard delivery. Working with OnTradeTransaction to get the price of the last closed position.

Headley's acceleration bands

Copy trading has become such a critical feature of forex trading. Some people see this as a potential business opportunity, while for opensource die-hards like me, we believe in giving back to the community rather than putting a price tag on everything 'nice'. So here it comes. A free opensource trade copier, which you are freely allowed to modify and distribute according to MIT license terms. It still has limited features, but the essentials like lot normalization are there. Please note that this copier only works for trading terminals installed on the same machine. Please share back any upgrades, enhancements or bug fixes to the discussion. Enjoy!

The Fast Stochastic indicator is one of modifications of a popular stochastic oscillator.

A standard linear regression channel with support and resistance levels

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

In this indicator T3 is sigmoidal (Softmax) normalized - made as oscillator that ranges in 0 to 1 range, and if you use hyperbolic normalization it will range from -1 to +1 range.

The currency strength meter is a trading tool that is used to identify trending and consolidating markets based on the percentage rate of change in price from one period to the next.

RSI Bot, send alert buy when RSI<=20, send alert sell when RSI>=80

The MA indicator with the ability of fine configuration

An Expert Advisor based on the "Fractals at Close prices" indicator.

Indicator Wiseman with the timeframe selection option in its input parameters.

The XFisher_org_v1_Vol_Supr_Zer indicator with the possibility to change the indicator timeframe using input parameters

Trend detection index

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

The OzFx system. It uses Accelerator Oscillator and Stochastic Oscillator.

Geometric Mean Moving Average is a simple moving average calculated by the geometric mean method.

Indicator AbsolutelyNoLagLwma with the timeframe selection option available in input parameters, alerting when the indicator changes its color.

Advisor scalper. Trading algorithm: Candle[0]> Candle[1] * 2. Taimeframe - 4H && Day.

Trading panel that allows user to define levels of trade by simply dragging lines.

Volume/Volatility Indicator

Commodity Channel Index using exponential moving averages.

This MT5 Expert Advisor combines multi-timeframe candlestick pattern analysis with fundamental event filtering to execute trades with disciplined risk management.

This advisor demonstrates an example of global variables usage. The task of the advisor: store the calculation result in a global variable and get the global variable value on new initialization.

Standard MACD version that can be located by setting the indicator timeframe value different from the chart one. The indicator also allows traders to select histogram and signal line smoothing algorithms.

XTRIX indicator implemented as a sequence of candlesticks. Candlesticks appear as a result of relevant price timeseries processed by XTRIX indicator algorithm.

Indicator Average Average True Range

Advisor for trading Gbp/Chf. Algorithm for bar opening prices. Timeframe H1.

This is a re-write of the old Solar Winds indicator for MQ5. There has recently been some 'excitement' about using this with other indicators for entry signals, and after a request to develop an indicator using it, I found that it was a classic re-painter - so I am contributing this code with an easy switch to allow seeing the indicator in re-paint versus non-repaint mode.

MoveStoploss moves the stoploss as the trade move in your direction at a specific distance. Version 1.1 has automatic trail error fixed.

The indicator of price movement relative to one selected time point

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

The indicator draws candlesticks of a larger timeframe as color filled rectangles in accordance with the colors of the CronexRSI indicator.

This is the "zone" indicator using Ehlers Nonlinear Filter for calculation.

This is a simple script that Closes all Orders and Positions available

Display the actual stored value of a floating-point number (float or double type), with very high precision up to 55 decimal digits. This helps to debug exact value of floating-point numbers for other MQL5 programs.

CCI_Histogram_Vol indicator in the candlestick form

an in-place comparison sort

Optimized ATR adaptive Laguerre RSI

1...180181182183184185186187188189190191192193194195