Self-learning the MQL5 language from scratch - page 60

 
Andrei Novichkov:
And why are you focusing on the trawl? The trawl is a minor piece of the Expert Advisor, nothing more. You'd be better off with an indicator, like a dummy.

Yes! Moreover, the indicator is the most important part, the study. With an indicator, you can also create a trawl.

 
Maxim Kuznetsov:

While TC is on time out...

Parallel to this topic I teach my children programming (they are supposed to be at school, but they are taught "would kill you"). Therefore, there are some conclusions and notes.

1. The visual, tangible, visible and significant result is extremely important. The minimal amount of code you put in, printed out, should produce the maximum effect.

2. We, as self-respecting gurus, are drowning the TC in details. It should have a mess of MQL and API platform.

3. MQL is totally unsuitable for learning from 0 ...:-( having the background, it's pretty simple, but the foundation you need to get

to support TS in learning from zeros,

the first one is to provide the tester with an Expert Advisor with the minimum code, which it will already complete and modify.

In the last (it's the first one about the trailing stop) task - to write an owl and run it in the tester of the TC and see how exactly a stop is trailed.

Hello Maxim!

You have accurately noted the mess in my head. After a short pause I read the topic from the beginning to the end once again. The conclusion is clear! With great desire to help me in self-study, all participants in this thread willingly shared their vision of how to build my self-study program (plan), for which I express a HUGE THANK YOU ALL! The only thing that with this all had to consider (and this is the most important point), that in front of them was a complete zero!

I started to use MQL5 in the beginning of the project, and although I don't have any background knowledge, I still have a great desire to learn MQL5. I`ve got my thoughts in order, now let`s get to work!

Sincerely, Vladimir.

 

For a basic understanding of programming

https://www.youtube.com/watch?v=SW_UCzFO7X0

1. CS50 на русском: Лекция #1 [Гарвард, Основы программирования, осень 2015 год]
1. CS50 на русском: Лекция #1 [Гарвард, Основы программирования, осень 2015 год]
  • 2016.06.20
  • www.youtube.com
Доп. материалы и задачи к лекции - https://javarush.ru/s/level_0 Весь курс CS50 — https://javarush.ru/s/course_cs50 Это Хогвартс? Нет, друзья, это Гарвард и ...
 
Aliaksandr Hryshyn:

For a basic understanding of programming

https://www.youtube.com/watch?v=SW_UCzFO7X0

Hello Alexander, thanks for the link!

Regards, Vladimir.

 
Vladimir Simakov:

I see the man has been bombarded with advice. I also decided to sign up, maybe I'll get rid of the desire))). Just kidding.

Okay. So: I want a classic trawl.

We divide the task into two parts:

  1. The trawl itself.
  2. Something on the screen.
Let's write the code:

What's going on here?

  1. We have a Messenger function that will display messages.
  2. We have a Tral function that will trawl orders while it is a so called "stub" that returns some valid value for code execution.
  3. There is EMessType enumeration that defines what we want from it in the Messenger function; it has Init, DeIni and Set blocks

This is an example of a simple decomposition.

That's it, my wife is here, I'm evaporating))))

Tomorrow we will continue)))

PS If you got bored, don't hesitate to tell me)))

Hello Vladimir, the desire has not been discouraged and it has not become boring! Now I continue self-study according to the adjusted plan! Thanks for constructive advices and tips!

Regards, Vladimir.

 
Fast235:
for one week course on enum)

Hello! ENUM is worthwhile in terms of self-study.

Regards, Vladimir.

 
Andrei Novichkov:
And why are you stuck with trawl? The trawl is a minor piece of EA, nothing more. It would be better to take apart the indicator, the wrecker.

Hello Andrey! Trailing Stop was supposed to be an extension of the script code, which I have already created and am now using. Following the advice of the respected participants of this thread I decided to create it as an Expert Advisor first, so that I could go back to the script and finish it.

I can shock you, but indicator strategies do not consider ONE! There could be a multipage discussion of this belief, but if it actually takes place between the participants of this topic, it will certainly not involve me.

Respectfully, Vladimir.

 
MrBrooklin:

Hello Andrey! Trailing Stop was supposed to be an extension of the script code, which I have already created and am now using. Following the advice of the respected participants of this topic I decided to create it as an Expert Advisor first, so that I could go back to the script and finish it.

I can shock you, but indicator strategies do not consider ONE! There could be a multipage discussion of this belief, but if it actually takes place between the participants of this topic, it will certainly not involve me.

Respectfully, Vladimir.

No, I'm not "dismayed" by that. Your aversion to indicator strategies is shared by many traders. I should point out that indicators do not necessarily have to be the basis of a strategy. There are a huge number of indicators which show reference information, for example. There are indicators written, in my unenlightened opinion, just for beauty. Or, pay attention, written for educational purposes. When I'm writing articles, I illustrate the contents with education indicators. So there are a fair number of niches for them besides strategies.
 
Andrei Novichkov:
"...Note that indicators do not necessarily have to be the basis of strategy...".

I agree. Therefore, in order to enable an EA with a trailing stop to open positions when the strategy tester is started, I will use the simplest condition: at 9:00 a.m. sharp. If the first tick is up, it means BUY, if the tick is down, it means SELL. I don't want to introduce logic into the EA's operation. I just don't want to use the random condition. I am writing the translation especially for those who do not speak English, including myself, for memorizing it.

Regards, Vladimir.

 
MrBrooklin:

Hello Andrey! Trailing Stop was supposed to be an extension of the script code, which I have already created and am now using. Following the advice of the respected participants of this thread I decided to create it as an Expert Advisor first, so that I could go back to the script and finish it.

I can shock you, but indicator strategies do not consider ONE! There could be a multipage discussion of this belief, but if it actually takes place between the participants of this topic, it will certainly not involve me.

Regards, Vladimir.


Vladimir, good day. Yes, there are no questions on TC. It is your personal belief and intention. I`m just, IMHO, if you`re going to study the MQL5 LANGUAGE, then IMHO, indicator programming should be studied in full ... You've got the same language - for scripts, for Expert Advisors and for indicators.

What's more, you insist on finalizing script with trail function, though there are all trawls in code base written in the form of experts or their functions or libraries, maybe there are experts who can tell you the crutches, how to open without tools in your TS, using crutches of course, through the indicator to place positions or orders ... :-)

By the way, here's your topic TS on the article Profitable algorithms on the trawl
https://www.mql5.com/ru/articles/442

Don't forget the articles about indicators in the articles
https://www.mql5.com/ru/articles/37

Two
Thanks to you I re-read them myself

https://www.mql5.com/ru/articles/31

Three Writing an indicator article.

https://www.mql5.com/ru/articles/10