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

Submit your code

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

RSI of adaptive T3 (calculates 7 types of RSI that can be filtered by adaptive T3).

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.

The CTrixOnArray class is intended for calculation of Triple Exponential Average (TRIX) on an indicator buffer.

Trend indicator. Trend reversal is calculated by the number of candlesticks set in the indicator input parameters.

The indicator of the market entry signals using fractals.

The script is developed for placing a BuyLimit order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price.

The indicator of the ranges of unrestricted time intervals.

The trading system operating based on the bounce off the support/resistance levels of the Pivot indicator

The trading system based on the signals obtained from the BBSqueeze signal indicator.

Two lines are channel averages created by High and Low price values for different periods displayed as clouds

The iSAR technical indicator which uses the X2MA Moving Average as the basic price series for the best filtrating of false signals.

The Zero Point Force indicator drawn on the basis of two Moving Averages.

The X2MA Moving Average turned to the oscillator using the normalization of its values in the range from 0 to 100.

1...119120121122123124125126127128129130131132133...189