Self-learning the MQL5 language from scratch - page 25

 
MrBrooklin:

That's why the topic is called "... from scratch" - zero in programming and zero in English.

Sincerely, Vladimir.

(I see.)

It's strange that so many articles on MQL5 have been translated into English and from English into Russian, while the manual hasn't been translated yet. It's very strange.
 
Реter Konow:
Try to remove conditions and check. They don't do anything there.

Checked. You are absolutely right - conditions and #define do nothing. I realize now that I haven't understood it all the way through, so excuse me.

Sincerely, Vladimir.

 
MrBrooklin:

Checked. You are absolutely right - the conditions don't do anything. Now I realise that I haven't figured it out completely, so - sorry.

Respectfully, Vladimir

What are your plans for further studies and practice? What are your next objectives?
 
Valeriy Yastremskiy:

It's a stash in the code)))

Good point. I'll comment out #define and leave it for when I need to get back to it. For now let it be a stash.

Sincerely, Vladimir.

 
Реter Konow:
What are your further plans in training and practice? What tasks are you going to set for yourself?

The next step is to add a trailing edge to the script code.

Regards, Vladimir.

 
MrBrooklin:

In the future, according to the self-study plan, the task is to modify the script step by step, namely:

  1. add Stop Loss and Take Profit;
  2. add trailing;
  3. add maximal risk;
  4. expand choice of pending orders.
Sincerely yours, Vladimir.

I wrote it on the 13th page of this article. I have already implemented the first point.

Sincerely, Vladimir.

 
MrBrooklin:

The next step is to add a trailing edge to the script code.

Regards, Vladimir.

That makes sense. Try it. When you get to the point of checking if you have an open position or an open order, study the for loop attentively and practice using it on simple examples to make it easier to solve the problem. You will also need to master arrays and functions. Then you will easily be able to cope with it.
 
1. learn arrays.
You may learn how to use an if-else statement. 2.
3. learn how to work with for and while loops.
4. learn functions (user and standard).
5. Learn simple scripts and expert advisors.

This is a correct programme for initial training.
 
Реter Konow:
1. Master arrays.
2. Master the if-else statement.
3. Learn to work with for and while loops.
4. Master functions (user and standard).
5. Learn simple scripts and expert advisors.

This is the correct programme for basic training.

Thank you, Peter, for the constructive advice. I will definitely incorporate it into my self-study plan.

Regards, Vladimir.

 
Реter Konow:
1. Master arrays.
2. Master the if-else statement.
3. Learn to work with for and while loops.
4. Master functions (user and standard).
5. Learn simple scripts and expert advisors.

This is a proper programme for initial training.
0. Data types.

0.1 Type conversion

0.2 Boolean algebra

0.3 Concept of integer overflow (x+1 is not always greater than x)

0.4 Floating point number maths

0.5 Variable

0.6 Variable initialization

...

Lazy to think further)))