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

Submit your code

Two Symbol Spread Indicator

This indicator takes RSI divergences and plots them in buffers to automate EAs

Candle Signature with Example | For Research and Development

The XMA_Ishimoku indicator with additional trend strength indication using colored dots based on the standard deviation algorithm. The original code in the attached link had plotting problems.

The Candle Filter indicator is a customisable tool designed to filter and highlight candles on the chart based on specific criteria. It allows the trader to visualise only the candles of interest, such as bullish candles, bearish candles, Doji candles or all candles simultaneously. In addition, the indicator offers full control over the colours of the candles and the chart background, providing a clear and adaptable visual experience.

This is a custom indicator for MetaTrader 5 whose sole purpose is to display a BMP image on the chart, centred on the screen

Candlestick Fitness concept is used in coding HFT Algos based on population optimization algorithms.

A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.

Set TakeProfit by just dragging and dropping script on the desired price level.

Anlayse swing highs and lows

Syncs all chart symbols to symbol of the chart the EA is attached to

Searches for Wick or Body based High low in visible bars of chart

Chaykin Money Flow (CMF)" indicator

Basic library to create Volume Profiles on chart.

Linear Regression Line

A customized bid and ask line which is labelled and clear to help visualize the bid and ask prices

Good afternoon everyone) First time posting my code!!!

A logger with the ability to log specific modules or code sections

EquiPeak Drawdown Tracker is an indicator designed to monitor and record the maximum drawdown of your trading account in real time. It is not just an alerter of current drawdown; it is especially useful for visually comparing your current drawdown with the maximum historical drawdown you expect or have previously recorded.

The book "Neural networks in algorithmic trading with MQL5" is a comprehensive guide, covering both the theoretical foundations of artificial intelligence and neural networks and practical aspects of their application in financial trading using the MQL5 programming language.

RSI adaptive indicator based on tick calculations

A real-time monitoring tool for MetaTrader 5 that displays key financial data, allows quick symbol switching, and customizable symbol lists. Save and reload symbols, reset lists, and customize text and panel colors for a personalized trading experience.

Serialization and deserialization of the JSON format

Candle Range MetaTrader indicator — is a very simple and lightweight indicator that displays the candle's range in pips on mouseover. In addition, to the High/Low range, it can optionally display the body size (Open/Close) for candles. Multiple display parameters are available to control how the indicator looks. This indicator is available for both MT4 and MT5 versions of the trading platform.

A hybrid sorting algorithm that provide fast performance for sorting arrays of simple types, structures or object pointers.

Indicator for calculating the average price of open positions, you can use the magic number if you want to separate the positions of just one robot, but the zero number is for manual operations.

This is an indicator that evaluates FVGs in the inputted "window_size" to detect momentum or trend strength.

An indicator which attempts to highlight a ranging market area

This is a simple mean reversion EA

Constructor for creating histograms of statistical distributions of indicators, timeseries and their derivatives.

The EA only trades buy positions and does not use SL and TP.

This indicator allows you to define a checklist for you to manually check and confirm your strategy before entering into a trade.

A simpler way to display Heikin Ashi

A very simple, efficient and non-obtrusive clock for your Chart. KISS compliant! :)

This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.

Calculate the cosine distance and similarity between 2 vectors . The cosine distance is 1-cosine_similarity and the cosine similarity is the dot product of two vectors by their magnitudes multiplied.

This class allows you to create buttons on the chart as if they were chart objects(have time and price coordinates) these objects can be dragged on the chart and when scrolling they stay at the same place. If you wan't to learn some Object Oriented Programming or if you wan't to understand how chartevents work or you wan't to create graphical interfaces, you can learn a lot from this.

Fair Value gaps are used in ICT's smart money concept where there is an imbalanace of 1 point or more between 1st candle's high and 3rd candle 's low in bullish and 1st candle 's low and 3rd candle's high in bearish

The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.

MACD variation that uses Nonlag MA.

123456789101112...189