Watch how to download trading robots for free
Find us on Telegram!
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 - 54

Submit your code

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

An simple Indicator displaying daily opening line.

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

Combination of 4 RSI values (RSI of High, Low, Open and Close) displayed as candles with additional option to enable prices pre-smoothing prior to be used in calculation, which makes it an RSI-of-MA combination.

Two indicators ColorX2MA from different timeframes, the area between lines being filled with a cloud, the color of which corresponds with the trend direction on the market

This indicator calculates the index of a given currency, using the USD index. The Close prices of six currency pairs are used to calculate the index.

Two independent trading systems using indicators BrainTrend2 and AbsolutelyNoLagLWMA within one EA.

Indicator Intraday Intensity Index 2

A simple Pivot. No stop loss and take profit are used.

Wildhog indicator

OHLC Volume indicator

Fibo Average

BezierMA moving average

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

Klinger Oscillator developed by Stephen Klinger to determine the long-term trend while remaining sensitive to detect short-term fluctuations enabling the trader to predict short-term reversals.

The Derivative Oscillator indicator

The trading system based on the JFatlCandle indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Two identical trading systems (for long and short positions) based on the signals of the AdaptiveRenko indicator, which can be configured in different ways within one Expert Advisor

Time Averaged Price indicator

Indicator RJTX_Matches_Smoothed featuring alerts, emails and push notifications for smartphones

Indicator Compare Prices

The Average change indicator

Specified time range candles indicator

RSI of smoother average

QQE of Rsi(oma)

This class was developed to exchange data between MetaTrader 5 and CSV files. It converts the strings read from the CSV file to double and integer values depending of the type of the columns. Two producers of CSV files are most important for me. The most important producer are spreadsheet programs, i.e. LibreCalc. Manually entered CSV are the other kind of CSV files I had in mind. Be aware that this class do not use the standard library FileCsv.mqh etc. Instead it works with text files. It splits text lines into fields. Maximum speed and low memory usage were no development goals. This class may not be suited for large datasets or time critical operations. I would not use CSV files if speed was my main goal.

Construct a moving line with a polynomial of 4 degrees. Extrapolates the sinusoidal and its axial. The constructed lines remove one value at each bar and a sliding line of extrapolated values is constructed which is not redrawn.

Indicator DayPivotPoint System with Signal and Alert for MetaTrader 5

This tool will calculate the acceptable lot size based on a stop loss distance and risk percentage

1...474849505152535455565758596061...198