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

Submit your code

A real-time indicator showing the lag of quotes inside the terminal.

A trading system based on the Vortex Oscillator signals.

The Schaff Trend Cycle (STC) indicator detects up and down trends long before the MACD. It does this by using the same Exponential Moving Averages (EMAs), but adds a cycle component to factor currency cycle trends. Since currency cycle trends move based on a certain amount of days, this is factored into the equation of the STC indicator to give more accuracy and reliability than the MACD.

The Expert Advisor places pending Buy Stop and Sell Stop orders. If orders execute, the trailing stop is run for the positions.

Normalized ATR

Corrected RSX

WSI

Indicator WSI

Linear regression

Triangular moving average

It calculates the Typical prices for bars #1, #2, and #3

Indicator MACD OsmaX

Indicator calculate the average price

Random walk index (optimized version)

Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.

Histograma MACD colorido com a linha de sinal que muda de cor de acordo com a direção da tendência.

The indicator shows the current price in one of the chart corners.

Change Alert for barmenteros original indicator that compares four types of regression (linear, quadratic, logarithmic and exponential) and chooses the one that best fits the data analyzed.

Calculator-panel to calculate profit/loss. Data is calculated either when moving lines, or changing the parameters in input fields of the entry price, lot, profit or loss in pips or in deposit currency

The ZigZag indicator using Joe DiNapoli algorithm.

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

The script displays the brief statistics for trading on the instrument over the specified period - the number of deals, profit, profit factor.

Setting multiple charts at one click.

A trend indicator in the form of a colored histogram which shows the average difference between the Hull Moving Average and its averaging.

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

Trading system based on trend_arrows indicator signals.

Vertical histogram with distribution of prices.

The indicator shows the strength of bulls and bears in a simple manner in a single window.

This is an improved Jurik Filter with the option to be applied to any indicator not only to prices.

e-Regr — MetaTrader 5 Expert Advisor. Trading by i-Regr (Regression Channel). Extensive use of the standard library classes.

i-Paramon work time (new version).

An example of working with the trading history on Hedge accounts — reconstruction of positions.

The strategy is based on two indicators: ADX and MA, and the close of the first bar. Also, different TakeProfit, StopLoss and Trailing levels are used for Buy and Sell.

The strategy uses two indicators Moving Average, MA with different periods, Commodity Channel Index, CCI and Williams’ Percent Range, %R.

The Exp_IBS_RSI_CCI_v4_X2 trend-following trading system is based on the signals of two IBS_RSI_CCI_v4 indicators.

DMA (general version).

The vertical version of the BarTimer indicator implemented using the classes of libraries that were described in detail in the article "Custom indicators and infographics in CCanvas", with the possibility to set a fixed timeframe, data from which the indicator displays in input parameters, and producing a sound alert when the bar changes.

Standard VWAP (Volume Weighted Average Price) calculation, but with configurable start position.

MACD High/Low uses the highest high and lowest low of MACD (nnn) bars back to calculate a sort of dynamically changed zero line, early levels up and down and trend confirmation levels up and down. By adding these non-fixed levels, the MACD becomes faster in response to market changes and the MACD trend assessment has less false signals.

Converts a number to a text.

Trend Intensity Index as described by M.H.Pee in his article "Trend Intensity Index".

1...383940414243444546474849505152...189