Watch how to download trading robots for free
Find us on Twitter!
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 - 124

Submit your code

An indicator of support and resistance channels.

Two identical trading systems (for long and short deals) based on the VortexIndicator indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

The Expert Advisor operates using pending Buy limit and Sell limit orders. It uses High and Low of the D1 timeframe (bars #1 and #2)

The Expert Advisor uses Buy Stop and Sell Stop pending orders.

This is the trading signal of Bollinger Bands. The expert code for this strategy is automatically generated by the MQL 5 wizard.

Asymmetric bands oscillator - extended version

CCI - double smoothed Wilder's EMA filtered with floating levels

Improved version based on RSI_candles by © mladen 2018 https://www.mql5.com/en/code/20968

Keltner channel with standard averaging and averaged over the ATR indicator.

Extended version of the original Heikin Ashi indicator.

Rsi close/ mtf use

The purpose is to check whether new bar are generated This is a class file that can be used as a class or copied to EA or scripts for use

Trade signals based on "Dark Cloud Cover/Piercing Line" candlestick pattern, confirmed by Relative Strength Index (RSI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

CMOOnArray class is designed for calculation of CMO (Chande Momentum Oscillator) values on indicator buffers. The example of use of the CMOOnArray class is presented.

PEMA - Pentuple Exponential Moving Average.

ATRNorm is the normalized version of АTR. Tick volume, standard divergence and other parameters can also be used instead of АТR. The indicator represents logical development of the script. ATRNorm has been created to detect flat areas.

The Exp_2pbIdealMA indicator is based on the crossing of two Moving Averages. A signal to perform a deal is formed at bar closing if there is crossing of a fast 2pbIdeal1MA Moving Average with a slow 2pbIdeal3MA Moving Average

The Expert Advisor is drawn on the Oracle redrawing indicator

The Exp_MAMA Expert Advisor drawn using the entry when crossing Moving Averages of the MAMA indicator

The Expert Advisor with the VortexIndicator indicator

The indicator gives Stop Loss value for open position on the basis of the XATR indicator.

The Expert Advisor is a profit calculator on the opening position for price movement to a price level fixed in the chart

The oscillator using T3 averaging.

The script demonstrates the example of using the FileDelete() function

Example of using IndicatorSetDouble() function. This is an indicator that turns upside down the maximum and minimum values ​​of the indicator window and values ​​of levels, on which the horizontal lines are placed.

The indicator "predicts" the color of the next bar with the probability specified in the settings. It is useful for the evaluation of strategies aimed at such a prediction when choosing trading instruments / timeframes for strategies. Caution: The indicator "looks into the future", so do not apply it in real life or in the strategy tester!

The Exp_HullTrend Expert Advisor is based on the signals of the trend indicator HullTrend.

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

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

The Fractal Adaptive Moving Average indicator implemented as a sequence of candlesticks.

The CCI indicator using a digital filtering.

The ColorXdinMA trend moving average, which features alerts, sending emails and push-notifications to mobile devices.

The EA places pending stop orders BUY_STOP and SELL_STOP.

The SSL indicator with the timeframe selection option available in input parameters

Two indicators iMA (Moving Average, MA) and one iRSI (Relative Strength Index, RSI). Many settings and optimization of trade signals formula.

Advanced Fractal On MA signal indicator searches for fractals of the moving average line. The indicator uses two moving averages for searching upper and lower fractals.

Keltner channel - smooth ATR

An Expert Advisor based on indicators iADX (Average Directional Movement Index, ADX) and iMACD (Moving Average Convergence/Divergence, MACD)

Composite High-Low Momentum Indicator by William Blau.

LeManTrend determines a trend position based on the current price and high and low prices for three periods.

1...117118119120121122123124125126127128129130131...188