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

Submit your code

The Fibo ZigaZag indicator allows to calculate the probable support and resistance levels using the Fibonacci ratios.

This is an combination of 3 separate indicators: TTM wave A, TTM wave B and TTM wave C.

AdxVma trend.

A volume indicator with different types of data representation.

Unlike the original Schaff Trend Cycle, this version is using DEMA MACD for calculation, which makes it "faster" in determining the trend changes and thus producing signals a few bars earlier (which can be significant in "scalping" systems).

A portfolio EA for the MOEX FORTS market.

A modification of standard indicator iStochastic (Stochastic Oscillator, STO) - now you can manage levels #1 and #2 from your EA.

On-chart RSI

Volume Profile + Range v6.0 (former TPO). Distribution of deals by price levels at a given time interval. Displayed as a histogram. The width of the histogram at the level means the number of transactions carried out on it. All Credits of this Amazing indicator to Olexiy Polyakov. I have just fixed the iBarShift and iTime issues, since this is such a great indicator for traders ! Now it is working fine with this files.

hi, this code need your telegram token and telegram chat id . you can make robot by BotFather and then search in google how you can find telegram token and chat id then attach them to this code . now every trade would be signals on your telegram channel.

A dialog to display the maximum lot size permitted on the underlying asset for different types of orders (buy, sell, pending buy, and pending sell).

The MACD Coloured Histogram is an enhanced version of the classic MACD (Moving Average Convergence Divergence) indicator, designed to provide a clearer and more intuitive visual analysis of market momentum. This indicator combines traditional MACD functionalities with a dynamic histogram that changes colour based on the relationship between the MACD Line and the Signal Line, allowing traders to quickly identify trends, reversal points and moments of indecision in the market.

EQ

Historical equity of one-time and one-time open virtual positions to analyse the efficiency of spread/equity trading

Universal Breakout Study is a research-focused Expert Advisor for MetaTrader 5 designed to analyze and optimize range breakout strategies. It provides flexible parameter testing, fast optimization, and a structured framework for validating trading ideas using historical data and forward testing.

The X-bars Fractals indicator allows setting the number of bars on the left and the right from fractal. It is good as for local, so for global extremums

This indicator is constructing "bands" using 3 quantile values.

ALMA with floating levels and additional filters.

ZigZag based on the MACDCandle indicator candles.

A channel based on standard deviation of close price.

SAR ADX Signal with mobile notification, rewritten from MT4 version (source no longer found). This is a repaintable indicator, please be careful when using it.

The library contains functions that returns description of runtime error codes and trade server return codes.

Trade functions library designed for use in the code of scripts and Expert Advisors depending on a broker

The Exp_PFE trading system based on the signals of the PFE oscillator.

The Exp_JSatlCandle Expert Advisor based on signals of the JSatlCandle indicator.

The CCI pre-filtered indicator with an addition of 18 possible types of averages that can be used for pre-filtering.

The multitimeframe version of Donchian channel.

The upgraded indicator: now it has new price types and different display type.

T3 velocity is a completely new indicator that uses T3 to calculate velocity.

Dsl (discontinued signal lines) - RSI.

The indicator implements a breakout system using the Mikahekin indicator channel.

Fast Stochastic.

ATR adaptive T3

ATR adaptive smooth Laguerre RSI

The indicator draws an arbitrary second timeframe on the chart.

This EA will scan all the closed trades and then print the nth trade from the end

High-performmance functions for dealing with time.

Flexible Momentum (MetaTrader indicator) — calculates the change of a currency rate during a given period (in seconds) and displays the result as a number of points and percentage in the main chart window of the platform. It offers highly customizable alerts based on thresholds for maximum momentum in points and percentage. Because this indicator uses ticks history to calculate momentum, it works only in MT5.

Set Auto TP and SL: The “Set Auto TP and SL” (Take Profit and Stop Loss) feature is a crucial tool in any trading strategy, designed to automate risk and reward management. It allows traders to define fixed price levels where a trade should be automatically closed to either secure profits (TP) or limit losses (SL), removing the need for constant manual monitoring. When this feature is enabled, each position you open will automatically include a predefined Take Profit and Stop Loss level based on your custom parameters, such as a specific number of pips, percentage of balance, or technical levels. This not only saves time but also ensures that your trades are protected from sudden market movements and emotional decision-making.

This Expert Advisor (EA) is designed to detect swing highs and lows on the H4 timeframe, then wait for sweeps (liquidity grabs) on the M15 timeframe to trigger buy/sell trades with defined risk management.

1...141516171819202122232425262728...205