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

Submit your code

In the fourth part of the book, we will focus on mastering built-in functions (MQL5 API) and will gradually delve into specialized subsystems. Any MQL5 program can utilize a plethora of technologies and functionalities. Therefore, it makes sense to begin with the most simple and useful functions that can be utilized in most programs.

The final seventh part of the book discusses the advanced capabilities of the MQL5 API, which will be useful when developing programs for MetaTrader 5. These include custom financial symbols, built-in economic calendar events, and general-purpose technologies such as networking, databases, and cryptography.

In Part 5 of the book, we'll delve deeper into the APIs associated with algorithmic trading, including financial data analysis and processing, chart visualization, automation, and user interactions.

This EA help you for Auto set the TP & SL by default parameter, Auto trailing stop & step for any order that you place from any device, Easy way to close all orders with 3 Button "Close All" "Close Profit" "Close Lose", Auto close all orders by profit or lose treshold value

Part 2 "MQL5 programming fundamentals" is an introduction to the key concepts of this programming language. This part of the book is devoted to data types, identifiers, variables, expressions, and operators. You will learn how to combine different instructions to form the program logic.

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.

A simple yet effective donchian channel breakout strategy. This strategy is timeless!

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

Part 3 "Object Oriented Programming in MQL5" offers an immersion into the world of object-oriented programming (OOP) in the MQL5 language. Software development often involves the complexity related to the management of multiple entities, requiring advanced technology to improve programming convenience, productivity, and quality.

This function allows you to retrieve and return the filling policy of a symbol in MetaTrader 5. This is useful for making trading decisions based on the filling policy of a specific financial instrument.

Here are some examples of codes for set counters based on "Count"

QuickTradeKeys 123 is a user-friendly Expert Advisor (EA) for MetaTrader 5, enabling traders to execute buy and sell operations quickly by simply pressing the numbers '1' and '2' on their keyboard. Pressing '3' closes all open positions. This EA is ideal for swift trading and testing purposes where manual intervention is required without using the mouse.

This Expert Advisor does not trade. A simple panel, implemented using the standard Canvas library, allows you to draw digits with the mouse. The trained mnist.onnx model is used to recognize the digits.

In Part 6 of the "MQL5 Programming for Traders", we will study a key component of the MQL5 language – trading automation. We will start with a description of the fundamental entities, such as financial instrument specifications and trading account settings. These are prerequisites for creating properly operating Expert Advisors.

This code block detects a New Bar or a New Candle when it has received.

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

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.

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

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

This code block loops through all opened position and do trailing based on Ask and Bid prices.

Select the last closed deal (trade) to further work.

To use martingale money management when a position is in loss and price hits any of specific distances.

Short description.

A portfolio EA for the MOEX FORTS market.

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.

"This advisor uses the RSI indicator to determine optimal entry and exit points in the market. A unique feature of the advisor is its martingale strategy, which allows for position reversal with an increased lot size during market reversals. The advisor offers flexible trading time settings: you can set a working time range and disable trading during specific hours to filter out news events."

Trading system based on XDPO_Histogram indicator signals.

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

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

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.

123456789101112131415161718192021222324252627282930313233343536