5.00
(2 Ratings)

Algorithmic Trading in MQL5: Code Robots & Free Up Your Time

Wishlist Share
Share Course
Page Link
Share On Social Media

About Course

In this course you will learn how to completely automate your trading coding a trading robot (expert advisor) in MQL5, which is the MT5 programming language. We will develop an expert advisor from scratch that can trade on different financial markets, such as forex, crypto, stocks, indices, or futures.

Metatrader 5 Programming

In the first section we will review the Metatrader 5 platform (MT5) and the types of accounts that MT5 offers. We will also make our first contact with MQL5 and we will see what type of applications we can do, in addition to trading robots.

Before the end of this section, you will have had your first experience with coding and you will have seen how easy is to code for MT5.

MQL5 Language Fundamentals

Sections 2 to 5 focus on the MQL5 language fundamentals. During these sections we will cover all the MQL5 language basic features, namely: variables and data types, types of operations, control flow operators and functions.

We took care of providing the course with many trading-related examples and assignments. This will keep the content engaging while brief enough to speed you up to the most exciting part of the course, sections 6 to 12.

Expert Advisors and Trading Systems

In addition to MQL5, at this point we will start learning algorithmic trading concepts that are beyond the programming language, like trading systems and signals.

In section 6 we will introduce you to expert advisors and a well-known and popular trading system that has been used extensively in the past. In sections 7 to 11 we will apply all the knowledge acquired in previous lectures to code a trading robot that trades with our trading system.

We will make a well-structured layout for our expert advisor and we will code everything it needs to apply the system, from how to read and get price and indicator data to how to send orders and open, modify and close positions, and much more.

Backtest, Revision and Deployment

In the last section we will backtest and deploy the trading robot in different markets to review that it applies the trading system correctly. Finally, we will learn about VPS and we will give you next steps to keep growing as an algorithmic trader.

At the end, you will have a trading robot that automates a trading system and trades non-stop while the markets are open and, more importantly, you will have a good skill set to code your own robots.

Now is the right time to learn algorithmic trading

Are you passionate about trading?

Do you want to free-up time from monitoring screens?

Do you want to increase your chances of winning in the markets?

If the answer is “Yes“, and you are ready to put in the hard work, you are ready to start your algorithmic trading journey today!

I am confident that you will find this is one of the best courses to learn algorithmic trading in MQL5 and it delivers sharing insights that you won’t find easily elsewhere.

I am excited to watch you take your first step in your algorithmic trading journey and I hope to see you onboard!

The different trading robots and files coded during the course are provided to you inside.

– Jose Martinez

Show More

What Will You Learn?

  • How to build a completely automated trading robot (expert advisor) that can trade in different markets (e.g. forex, crypto, indices, stocks, commodities)
  • How to program in the most popular language for trading in the financial markets (MQL5)
  • A well-known popular trading system
  • How to read and interpret the markets with algorithms
  • How to send, modify and close market orders
  • The basics of backtesting and optimization of trading robots in Metatrader 5

Course Content

Introduction
In this first section the student will be introduced to the trading platform, Metatrader 5, and the programming language, MQL5.

Variables and Data Types
In this section, we explore algorithmic trading and the platforms we'll be using. We also code our first program. Now, we move on to understanding the types of data we can use in MQL5 and how to store, access, and manipulate data using variables. This knowledge will be crucial for our trading strategies.

Operation Types
In this section, we will explore the different types of operations available in MQL5. These include arithmetic operations, assignment operations, relation operations, and Boolean operations. We will learn how to perform mathematical calculations, assign values to variables, compare values, and use logical operators. Understanding these operations is essential for manipulating data effectively in MQL5. So, let's dive in and explore the various operations that can be performed in MQL5.

Choice and Loop Operators
In this section, we delve into choice and loop operators, also known as control flow operators. These operators allow us to determine whether or not to execute a specific part of the program, and in some cases, execute it multiple times. Choice operators include if-else, ternary, and switch case, while loop operators include do-while and for. These operators provide flexibility and control in programming, enabling us to make decisions and repeat actions as needed.

Functions
In this section, we will explore functions in programming. Functions are code blocks that take input, perform tasks, and may or may not return a value. We will cover the function declaration, definition, and call, as well as the use of predefined functions in MQL5. Functions allow us to control the flow of our program and make it more efficient. Stay tuned to learn how to use functions effectively in your programming journey.

Expert Advisors and Trading Systems
In this section of the course, we will delve into the development of an expert advisor. We will begin by exploring preprocessor directives, which are program properties used for various purposes like parameter setup and information display. Then, we will focus on mql5 event handlers, specific functions that are executed when certain events occur. We will also examine the workflow of a trading system and how it can be implemented within event handlers. Finally, we will introduce the trading system that we will code together throughout this course. Get ready to enhance your understanding of expert advisors and trading systems!

Expert Advisor: General Settings and Bar Opening
In the previous section, we learned about preprocessor directives, mql5 event handlers, and a simple moving average trend following system. In this new section, we will focus on the layout of an expert advisor and how to structure the code within it. We will also discuss system inputs and global variables. Additionally, we will explore the importance of controlling the bar opening for our expert advisor and learn how to do it effectively.

Expert Advisor: Indicators and Trading Signals
In this section of the course, we will be coding the entry and exit signals for our expert advisor. We will learn how to use indicators from MetaTrader 5, specifically the moving average and the bollinger bands. In the previous section, we discussed the layout of the expert advisor, system inputs, and global variables, as well as how to control the bar opening. Now, we will dive into the coding process and explore how these indicators can be utilized to enhance our trading strategy.

Expert Advisor: Order Placement
In the previous section, we learned how to access price and indicator data and coded entry and exit signals for our expert advisor. Now, in this new section, we will focus on sending orders to the market. This involves opening new positions and closing current positions. By doing so, we can actively participate in the market and execute our trading strategies.

Expert Advisor: Position Management
In this section, we will learn about position management options in coding. We will start with the stop loss, which allows us to specify a price to exit a trade at a loss. Then, we will cover the take profit, which is used to collect profits by exiting a trade at a specified price. After coding the functions for calculating stop loss and take profit levels, we will send an order to set these levels in the market. Additionally, we will explore advanced options like trailing stop loss and break even, which are not necessary but can be useful in the future.

Expert Advisor: Changes for Netting Accounts
In this section of the video, the speaker discusses adapting the Expert Advisor to trade under the netting position accounting system. They mention that in the previous section, they coded different position management options and completed the hedging version of the Expert Advisor. Now, they are fulfilling their promise to adapt it for trading under a broker that serves a netting account.

Expert Advisor: Backtesting and Put in Place
In this final section, we will explore include files and their usage, ensure our expert advisor trades as intended, and conduct backtesting and optimization. We will also discuss the necessary MetaTrader 5 setup for algorithmic trading. Lastly, we will examine how our expert advisors function in a demo trading account.

Student Ratings & Reviews

No Review Yet
No Review Yet