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

Submit your code

Pearson correlation indicator shows the correlation between symbols.

Function Library for Working with Time Series: iTime, iOpen, iHigh, iLow, iClose, iHighest, iLowest, iBarshift. Short invocation version is available for all functions (with the current chart's symbol and period).

Implementation of the option to change the drawing mode, as exemplified by the CCI indicator.

Show minutes and seconds left before new candle is appeared.

An updated version of the CBitPic class with the ability to control drawing transparency

Three Moving Averages with three different timeframes on one chart.

Flat determining indicator.

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

Trend indicator with simple and clear indication of position opening moments.

The Exp_LeManTrend EA is based on the signals generated by the LeManTrend oscillator.

The indicator demonstrates the operation of obtaining the ticks using the "CopyTicks", and allows to compare the three modes of obtaining ticks.

Script for drawing a price markup.

ZigZag based on MACD histogram.

This is the Leader of the MACD as described by Giorgos E. Siligardos.

Gaussian Filter for apply to other indicators too.

The auto envelope automatically sizes channels by calculating a standard deviation for the last n bars.

Average using dr. Andreas Uhl's "correction method.

The indicator is derived from the NRTR indicator.

The Expert Advisor closes all positions opened on the account, if the current server time has exceeded the time limit specified in the input variables.

The Exp_TotalPowerIndicatorX Expert Advisor is based on the signals generated by the TotalPowerIndicatorX oscillator. It also provides the possibility to set a strict trading time interval

A library for reading/writing the parameters of arbitrary Expert Advisors.

The Expert Advisor allows checking the potential profitability of the ZigZagLW Addition indicator.

The Percentage Price Oscillator (PPO) is a technical Momentum indicator showing the relationship between two Moving Averages. To calculate the PPO, subtract the 26-day Exponential Moving Average (EMA) from the nine-day EMA, and then divide this difference by the 26-day EMA. The end result is a percentage that tells the trader where the short-term average is relative to the longer-term average.

One more from the creations of John Ehlers - nonlinear Kalman filter.

The Expert Advisor uses the Fractals indicator signals to place pending orders and trail the Stop Loss level of positions.

An assistant Expert Advisor. It moves positions to a breakeven and then enables trailing.

This version of Bollinger Bands does not use standard deviation for Upper and Lower Bands, but uses the EMA deviation.

Choppy market index

RSI Divergence indicator

ATR adaptive smooth Laguerre RSI with dynamic levels

Corrected volume weighted moving average

A cross platform library/framework

Smoothed CCI

The main point of the Relative Vigor Index Indicator (RVI) is that on the bull market the closing price is, as a rule, higher, than the opening price.

The indicator determines the bulls or bears prevail on the market and plots their strength.

Moving Average, calculated using the digital filter.

MACD indicator with histogram, can be applied any timeframe (higher or lower than the current chart's timeframe).

The DRAW_HISTOGRAM2 drawing style is used for plotting the values of two indicator's buffers as a histogram.

VininI Cyber Cycle - Identify cyclical movements of price, based on VininI_Cyber Cycle(V2).mq4 by Victor Nicolaev (2009)

The DRAW_COLOR_SECTION drawing style is used to plot sections with different colors, the colors are specified in the color buffer.

1...222324252627282930313233343536...183