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

Submit your code

This Expert Advisor illustrates the usage of the IndicatorParameters() function to get the information about the number of input parameters, their type and values.

The alternative indicator for trend definition based on the breakthrough bars and distance from extremums.

A Moving Average with double smoothing

Export MQL5 live data to Excel (DDE)

Export of all necessary instruments and time frames in one click with load and checking history

Delta ZigZag defines the reversal on a minimal height of the swing and also identifies trend on breakthrough of local minimum/maximum levels and colors zigzag sections in current trend color

The class is designed for calculation of the technical indicator Adaptive Moving Average (Adaptive Moving Average, AMA) using the algorithm of the ring buffer.

Example of getting world index quotes from Google Finance.

The indicator uses the least squares method for the construction of the "most suitable" straight line through a series of points of price values​​.

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

The ChandelierStops_v1Trend_x10 indicator shows the ChandelierStops_v1 trend indicator position from ten different timeframes.

The Exp_DigVariation Expert Advisor is based on the reversal of the DigVariation non-normalized oscillator direction.

The Expert Advisor enables and disables the "AutoTrading" button at a certain time and closes all opened positions on the account once the specified period of time expires.

Adds period separators to your window, at a time of your choice.

The ZZ Fibo Trader is a simple illustration of the use of the Simple ZZ Fibo, which plots Fibonacci lines on long impulse waves of the ZigZag. In addition, the algorithm illustrates operation of the parabolic system for moving the stop loss.

The Balance of Power (BOP) indicator as a color histogram of strength and direction of the current trend.

Arithmetic and geometric moving averages.

The idea of this one is simple: it should "imitate" as much other moving averages as it can.

The version of well known Woodies CCI with correct implementation of trend changing rules

A variation of Hull moving average that allows speed adjusting of the HMA.

The gradient version of double smoothed EMA indicator.

The semi-automated Expert Advisor using a trend line (TrendLIne).

The simplest EA based on the fractal WPR.

Elliot oscillator indicator.

iCrosshairClickTarget indicator for MetaTrader 5 is an improved version of iCrosshair indicator for MetaTrader 4.

The price chart speed expressed in points, with the author markup of significant price change levels.

A multi-currency Expert Advisor that opens a market position at the user defined time.

The WATR_HTF_Signal indicator shows a trend direction or a trade signal generated by the WATR indicator at the chosen bar as a graphical object with colored trend indication or deal direction. It also triggers alerts and plays audio signals.

Detrended Synthetic Price in oscillator form.

The Expert Advisor moves trailing stops of all positions on the current symbol.

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

The class monitors the emergence of a candlestick

A trading system based on the Omni_Trend indicator signals.

The indicator allows displaying on a chart eight Moving Averages with the same averaging methods and calculation prices, but with different periods.

An indicator based on Elder's "Safe Zone".

An indicator of important extremums.

A trading system based on the KWAN_CCC indicator signals.

TTF

Oscillator TTF (Trend Trigger Factor) was developed as a method to identify market trends and reversals.

Flat/trend indicator.

Indicator True Strength Index

1...111213141516171819202122232425...183