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 Expert Advisors for MetaTrader 5 based on user ratings - 3

Submit your code

The classic version of the Heads or Tails trading strategy with the analysis of the signal block code.

This utility is simple example to add sound alert on connect / disconnect

A portfolio EA for the MOEX FORTS market.

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

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.

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

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 EA is designed to automatically follow market trends using signals from the Moving Average and Stochastic Oscillator indicators. The EA detects buy and sell signals by utilizing MA crossovers and confirms the trend with Stochastic. Additionally, the EA includes automatic position management, such as setting Take Profit, Stop Loss, and lot size doubling to enhance trading effectiveness in trending markets.

Optimal closing tool with Bollinger Bands and RSI.

Trading system by iMA indicator (Moving Average, MA). Development of MA Trend.

This is a simple example of user interface of information system with possibility to trade by pressing a button.

The Exp_DigVariation Expert Advisor is based on the reversal of the DigVariation non-normalized oscillator direction.

The Exp_ADXDMI trading system based on the signals of the ADXDMI oscillator.

The breakthrough trading system based on the signals of the i-CAiChannel_System_Digit indicator.

Trading system based on the signals of the WPR_Slowdown indicator.

The Exp_Bezier_ReOpen trading system is based on the Bezier indicator color change with adding to trend-following positions.

The Expert Advisor manages positions using labels.

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

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

Probability Theory Advisor

try to imitate trading system using expert advisor

One-click trading.

The Roulette Game.

The MACD Sample Expert Advisor trades at the crossover of the main and the signal line of the MACD. This Expert Advisor is an example of object-oriented approach in EA development.

Trading system based on STLMCandle indicator signals.

A trading system based on the ColorFisher_m11 indicator signals.

Trading panel based on class CDialog.

The cIntBMP library provides the creation of graphic BMP images. We will consider the example of its use in creation of self-similar fractal sets using the Iterated Function System (IFS).

The Exp_ColorXvaMA_Digit Expert Advisor is based on the ColorXvaMA_Digit indicator color change.

The Exp_ColorJSatl_Digit Expert Advisor is based on the ColorJSatl_Digit indicator color change.

This Expert Advisor closes all positions if the total loss exceeds a predefined limit.

ExpBuySellSide is a MetaTrader 5 Expert Advisor based on the ATRStops and StepUpDown indicators.

Usually most brokers do not provide M1 data over 3 months in MetaTrader 4, but they provide M1 data over 3 years in MT5. So we can use this tool to obtain the M1 data in MetaTrader 5 tester and save the data into .hst file for MetaTrader 4 backtesting.

A trading system based on the KWAN_RDP indicator signals.

Moving averages on charts M5, M15, H1 are analyzed. The presence of the iMA (Moving Average, MA) "fan" is checked simultaneously on all three charts (M5, M15, and H1).

The trading system based on Rj_SlidingRangeRj_Digit_System indicator signals with the possibility to set a fixed position holding time.

The trading system based on DEMA_Range_Channel indicator signals with the possibility to set a fixed position holding time.

12345678910...38