MQL - The Beginning

Hello, friends! Each of you has asked yourself the question: "How could I make a bot rake in cash instead of me?". Creating your own Forex expert advisor, indicator, or script is possible with the MQL programming language. That is exactly why we are starting a series of lessons in which we will teach, show, and explain how this is done in practice.

So, you watched the video where the basics of the language are given, so to speak, the foundation without which it is simply impossible to move further. And if you did it attentively, then you saw how we analyzed an example program in the MQL language. Answer the question (with a catch), what color will the order opening arrow be when X = 0? And when X = 5? Watch the last part once again, using pause.

Homework

surprised by the boy at the computer isolated on white background

Write a program (an expert advisor) that, depending on the variable X set in the external parameters, will output information simultaneously in the form of a message (Alert), a comment on the screen, and a comment in the logs, with the following content:

When X = 0, display "TradeLikeAPro forever...", and when X=1 - "Insta must die!".

Respectfully, Sergey aka xbms TradeLikeaPro.ru

Hello, friends! Each of you has asked yourself the question: "How could I make a bot rake in cash instead of me?".