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

Submit your code

A Simple RSI and Moving Average-Based Expert Advisor for MQL5

Expert Advisor based on iPinBar Pin Bar Finder + several different trailing indicators

The Average Directional Movement Index by Wilder (ADX Wilder) helps to determine the presence of the price trend.

The script illustrates control of graphic objects using the classes from the Standard Library.

It is used for smoothing price series and is applied directly on a price chart of a financial security.

The indicator plots the Bollinger Bands ®, filled with different colors depending on the trend direction.

Nonparametric ZigZag, based on the "a-la Clyde Lee Patterns".

Trade signals based on "Bullish/Bearish Meeting Lines" candlestick pattern, confirmed by Stochastic 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.

RSI oscillator with ultralinear and JMA smoothing algorithms.

The indicator shows the current trend, support and resistance levels.

The Demand Index combines price and volume in such a way that it is often a leading indicator of price change.

There are a lot of smoothing algorithms. This indicator is a smoothing of standard ADX.

This indicator compares the signals of three versions of Parabolic SAR indicator. The versions are set at different timeframes: junior (chart timeframe), middle and senior.

The CForceOnArray class is intended for calculation of Force Index on indicator buffers.

The COBVOnArray class is intended for calculation of OBV (On Balance Volume) on indicator buffers.

Trading signals module for MQL5 Wizard. The moment, when a candlestick formed by Candles_Smoothed changes its color, indicates the time for market entry.

Exponential Moving Average - Bollinger Bands ® Volatility Adjusted by Jose Silva.

Trend indicator based on two RSI oscillators.

The class is designed for calculation of the Average True Range indicator (Average True Range, ATR) using the algorithm of the ring buffer.

The Expert Advisor "catches" changes of the positions (opening, reversal, closing, triggering of Stop Loss and Take Profit) and depending on the configurations triggers the sound file, outputs alert or sends e-mail.

An Expert Advisor based on the difference of two moving averages.

The Moving Average Expert Advisor trades when the price crosses the MA.

A library of GUI Controls.

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

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

The JFatl indicator implemented as a sequence of candlesticks.

The 2pbIdeal1MA indicator implemented as a sequence of candlesticks.

The MACD ColorMACD histogram with the timeframe selection option available in input parameters.

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

A rounded MACD histogram presented in the price chart points.

The Exp_CGOscillator_X2 trend trading system based on the signals from two CGOscillator indicators.

The script deletes all orders of the type specified in settings, on the current symbol.

A histogram of maximum and minimum values of parameters SYMBOL_SESSION_BUY_ORDERS — "the total number of current buy orders" and SYMBOL_SESSION_SELL_ORDERS — "the total number of current sell orders". The drawing style is DRAW_HISTOGRAM.

This utility tracks positions opened manually or by another EA for the current symbol and opens an opposite position. Opening the positions is tracked in OnTradeTransaction.

Two ZigZag indicators are used for analysis.

Returns the profit of a position in points, as well as commission, swaps and profit in money based on the trading history.

A channel based on peaks and troughs of ZigZagOnParabolic.

The indicator calculates the ATR value based on the minimum price differences of the current and previous day, taking into account the volume of the current day.

Signals are generated by the iBands, Bollinger Bands indicator. When a signal is received, opposite positions are closed.

1...484950515253545556575859606162...198