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

Submit your code

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

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 simple yet effective donchian channel breakout strategy. This strategy is timeless!

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

EQ

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

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

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.

The VR Sync Chart Lite indicator is written for demonstration purposes and shows how it is possible to synchronize the object

One of the latest version of this indicator at the moment. Huge base of different modifications of moving averages, with multitimesframe function, sending signals to e-mail and push notifications.

This Include File checks for Market Open Hours. An EA to test it is also included.

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

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

script to open a buy position at the current price in the MT5 window with a specified stop loss (in pips) and take profit (in pips)

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.

MULTI TF Confluence Index Stoch+RSI+MACD

This is a service to show entry/exit points of existing positions/deals as trend lines and/or arrows on charts.

1...789101112131415161718192021...195