Author: Muhammad Awais

Finally! Today we are going to apply our knowledge to the Forex market and work with some real-time EURUSD prices. Very exciting stuff!

We will learn about the if statement and see how we can use it to add decision-making processes to our future FX Robots. Note that the next couple of tutorials will be building on top of this one, so make sure you follow the code in the video carefully! Luckily, in this course we learn by doing, so if you do happen to make an error somewhere – you will be able to pick it up right away.

Get the full course here: https://www.forexboat.com/learn-mql4

(more…)

The “for” loop is very similar to the “while” loop, however the “for” loop is much more commonly used. This trend is evident in other programming languages as well as in MQL4. Most likely, the “for” loop is preferred because it is more convenient. In today’s tutorial I will show you how the two loops compare to each other, and you can then decide for yourself which you prefer. Both are equally valid approaches..

Actually, this happens quite a lot in programming. Often, you can implement the same thing in two (or more) different ways, and only your personal preference will guide you to pick one. This is totally normal. Moreover, this is how people develop their own programming styles, which is natural. So congratulations! Today you are making your first step towards developing your personal unique coding style.

Get the full course here: https://www.forexboat.com/learn-mql4

(more…)

Hello there! Today’s tutorial is very short – in just over 3-minutes we will get to know how to use multi-line commentary in MQL4. Believe me – it is very easy! At the same time, as you will see multi-line comments are a very powerful tool and can make your programming experience so much more pleasurable: instead of deleting whole blocks of code you can use multi-line comments to “hide” these block away. Commented code will even change colour to show that it will not be executed. 

Get the full course here: https://www.forexboat.com/learn-mql4

(more…)

Hi there, I think that you will find this tutorial rather exciting! Why? Because today we will be looking your very first while loop! If you have never ever used loops before, then don’t worry – I will explain everything in detail and as usual we will see how it all works in practice. However, if you are new to programming, I recommend paying detailed attention and making sure that you understand this tutorial before moving on with the course.

Get the full course here: https://www.forexboat.com/learn-mql4

(more…)

Hey there!

So, we have already learned about different types of variables including boolean variables. Today we will look at a variety of logical expressions. This is an important part of the decision-making process for automated trading system construction. In this short tutorial you will learn how to compare values using operators such as >, >=, <, <=, == and others, and assign and store the results in boolean variables. Let’s get straight into it!

Get the full course here: https://www.forexboat.com/learn-mql4

(more…)

MQL4 Programming

Operations With Variables

In this tutorial I will explain how to use basic MQL4 programming techniques with variables such integers, doubles, strings, and others. We also touch on simple operations: addition, subtraction, multiplication, and division. Finally, we learn how to concatenate strings.All illustrations are supported with working examples using the Alert() statement.

If even after the video tutorial you are still curious, then you can always find additional information on the official MQL4 website.

MQL4 Programming Video

This video is short, sharp and to the point. We learn by doing and there’s lots of practice. Also, you can write your own test code as much as you want! In fact, I encourage you to do so, because there is no better way to learn MQL4 Programming than by trying!

As always, the code for this tutorial is located underneath the video. Feel free to post any questions and / or feedback in the comments section at the end of the post. I am interested to hear from you!

(more…)

In this second tutorial I will show you what variables look like in MT4. We will understand the concept of a variable being a box, where data is kept. Different types of boxes (variables) have the capacity to store different data. This notion is also discussed in the tutorial. We will look at the following types of variables:

  • int
  • double
  • string
  • bool
  • color
  • datetime

Get the full course here: https://www.forexboat.com/learn-mql4

(more…)

Welcome to the first video-tutorial on MQL4 programming for complete beginners! Hello World As Wikipedia states, a “Hello World” is by tradition often used to illustrate to beginners the most basic syntax of a programming language. That’s exactly what we will be doing today! In this tutorial we will get to know the MetaEditor programming environment, get […]

Welcome back to our course on Algorithmic Trading for complete beginners! Today we will be talking about MetaEditor. What is MetaEditor ? MetaEditor is the programming environment (or: software development environment, “SDK”) for creating Automated Trading Systems for the Forex Market. MetaEditor is a free SDK and it comes in any standard package of the MetaTrader […]

Hello there! If you landed on this page just by searching “Download MetaTrader 4”, then you’ve come to the right place. This video guide is part of a beginners’ course on Algorithmic Trading, however you can still use this video freely to help you install MT4, and then simply not continue with the course. I really […]

What are you waiting for?

START LEARNING FOREX TODAY!

as seen on: