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

Submit your code

The RSI indicator in a candlestick form with the Keltner channel calculated relative to RSI averaging.

A simple oscillator that uses the difference between candlestick open and close prices.

The tool allows drawing shapes in the chart.

Two Keltner channels based on one moving average, drawn as a colored cloud, with the display of the last values as price labels.

The Expert Advisor is based on the signals of indicators iBands (Bollinger Bands, BB) and iRSI (Relative Strength Index, RSI).

HOPS and LOPS indicator. The "HOPS" and "LOPS" stand for High Of the Previous Session and Low Of the Previous Sessions.

Probability levels based on ATR. "Probability" is calculated based on the projected Average True Range and previous period Close.

The US dollar index in form of Japanese candlesticks.

Indicator of trend strength and of the possible changes in its direction.

IT

Instantaneous Trendline - John Ehlers "instantaneous" trendline.

It deletes the arrow objects from the chart, which mark the transactions in the chart. The utility is implemented as an indicator that does not draw anything by itself.

Indicator iSAR with the timeframe selection option in input parameters, implemented in color, with the possibility to generate alerts when the trend changes its direction.

Indicator StopLoss Calculator.

A set of digital filters that are always drawn in separate window (due to their nature).

EF

Indicator Ehlers Filter

Indicator Candle Code displays in a separate window the "code" of candlesticks as lines built on the ratio of each candle's parameters.

Two identical trading systems (for long and short positions) based on the signals of indicator NRTR, which can be differently configured within one EA.

ASO

Absolute Strength Oscillator (ASO) indicator

CCI_Histogram_Vol indicator with the timeframe selection option available in input parameters

XCCI_Histogram_Vol indicator with the timeframe selection option available in input parameters

ATR adaptive double smoothed EMA

Fractal Adaptive Moving Average -

Adaptive ATR

Adaptive ATR Keltner channel

Stochastic of average (on chart)

Pretty simple. Seems Stupid. But yes, You need this...

This is the version 2 of my script to export the trade history from MT5 selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software. More columns were added and fixed minor errors. The code for processing and exporting data was rewritten.

Display interactive HTML graph of the account balance inside the web browser.

Trading the trend

Encapsulating a family of interchangeable algorythms which can be modified independently from the client.

NELODI Trading Terminal is a collection of Indicators and an Expert Advisor, which work together to provide a complete solution for manual Trading, primarily designed for Scalping.

Sort the input array in-place using comparison function less.

The first chapter of the book introduces the MQL5 language and development environment. One of the new features introduced in the MQL5 language compared to MQL4 (MetaTrader 4 language) is support for object-oriented programming (OOP), which makes it similar to C++.

Sec-WebSocket-Key Generator

Probability Theory Advisor

Negative Volume Index (NVI) is a free technical indicator for advanced chart analysis in MT4, MT5 platforms. It is based on tick volume (can be substituted with real volume in MT5) and has two useful features added: Support for multi-timeframe (MTF) operation. Can be switched to show Positive Volume Index.

Breakeven Line Indicator is a MetaTrader indicator that calculates breakeven level based on all open positions and displays it on your chart as a horizontal line. Additionally, it will calculate the total number trades, the total number of lots, and the distance to the breakeven line in points and profit/loss. The indicator is available for both MT4 and MT5.

Basing Candlesticks MetaTrader indicator — is an automatic indicator that detects and marks basing candles on the chart. A basing candle is a candle with body length less than 50% of its high-low range. The indicator highlights the basing candles using histogram lines (in MT4) or custom candles (in MT5) directly in the main chart of the platform. The percentage criterion can be changed via input parameters. You can also turn on alerts for when a new basing candle appears.

Coppock MetaTrader indicator — is an implementation of the famous Coppock curve indicator first created by Edward Coppock in 1962. The indicator shows long-term buy and sell opportunities (classically, it is used for only buying) by measuring the weighted moving average (with a period of 10) of the sum of two rates of change (with a period of 14 and 11). It is the classical version. In this MetaTrader version, you can modify the parameters of the basic indicators. You can use this Coppock indicator in MT4 and MT5.

Schaff Trend Cycle (MetaTrader indicator) — is a cyclical oscillator created by calculating the stochastic over stochastic over a MACD line using cycles. The result is the improved version of the oscillator that is not choppy during the trends and reacts to the changes very fast. It was developed by Doug Schaff, who assumed that the currency trends accelerate and decelerate in cycles. Its algorithm was made public in 2008. Schaff Trend Cycle tries to combine two different methods of determining the trend direction changes — MACD and smoothed stochastic oscillator. The value of the indicator fluctuates between 0 and 100. Two trigger levels are used — 25 and 75. Optional alerts are available. You can download this indicator for MT4, MT5

1...111213141516171819202122232425...194