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

Submit your code

A price increase indicator calculates margin and price changes in per cent.

A dynamic trendline-based evolution of the Donchian Channel

TardioBot V1.05, named after of a historical figure Giuseppe Tardio, is an Expert Advisor designed for MetaTrader 5 that employs a triangular arbitrage strategy.

Quantum System - Uses quantum states and probabilities to make decisions.

It is a zigzag which creates new zigzag turning points based on passing a volatility threshold

This is a RSI of High, Low, Open and Close displayed as color candles in it's own sub-window.

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

RSI adaptive indicator based on tick calculations

BreakRevertPro EA merges breakout and mean reversion strategies with adaptive SL/TP and multi-timeframe ATR trailing stops for flexible trading in volatile markets.

Trade server disconnect alerts utility for MT5.

Simple_Grid is the simplest "grid" EA.

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

Multiple runs/optimisations in Tester.

A simpler way to display Heikin Ashi

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

Linear Regression Value indicator

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

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.

MACD variation that uses Nonlag MA.

Provide simplest class to read and parse CSV file

Static class to fix the TimeGMT() function during testing in the strategy tester.

The Efficiency Ratio (ER) was first presented by Perry Kaufman in his 1995 book "Smarter Trading". It is calculated by dividing the price change over a period by the absolute sum of the price movements that occurred to achieve that change. The resulting ratio ranges between 0 and 1 with higher values representing a more efficient or trending market.

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

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

It is made more up-to-date and multi time frame option added.

Stochastic that is using RSX as an input for calculations.

Export history of closed positions from MT5 retail hedging account selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software.

Highest high & lowest low support resistance

Recursive Median Oscillator - with floating levels

Here is my implementation of a colored Hull Moving Average.

Trend Dashboard Indicator MetaTrader 5 indicator — a multi-timeframe indicator that is based on three standard indicators: Stochastic oscillator, RSI (Relative Strength Index), and CCI (Commodity Channel Index). It displays current trend directions for M1, M5, M15, M30, H1, H4, D1, W1, and MN1 timeframes. When you follow such an indicator you have a clear picture of the trends across all important timeframes. It doesn't matter which timeframe you attach this indicator to. The indicator can be downloaded for MT4 and MT5.

Wickless breakout

a Simple Visual Strategy Tester / Manual Trade Training using Martingale.

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 is a script to print all open trades and their PnLs at a specific time in history.

Show candle gain and candle loss in percent.

This is an indicator to calculate ATR Weighted moving averages.

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 EA only trades buy positions and does not use SL and TP.

Dominant Candle is a a two candlestick set where the wicks intersect each other but body of the candles are either gapped up, gapped down or equal

1...34567891011121314151617...196