You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
That's right! Everyone tries to learn programming using misconceptions about software based on life experience. For example, that a program is like a text in a book with a table of contents, an introduction, a table of contents and a conclusion. That is, the program is a kind of sequential scheme from the beginning to the end. At first stages, this idea works, but then, as the program becomes more complex, difficulties arise, and it is not possible to write a reliable working program in any way. Kovalev is a very good at rendering bearish services: he tries to explain to the reader, using his accessible conceptual apparatus, that the program is the same book with such-and-such a scheme. But there are no schemes! The script has a fundamentally different "scheme" than the Expert Advisor, and the Expert Advisor has a different scheme than the indicator.
Vasiliy Sokolov:
... 4) The strangest block is the "error handling" block. You can get into it, but you cannot get out of it. That is, the program caught an error and sits in this block (it must hang until it is completely rebooted, or, better yet, the terminal hangs permanently, for sure it won't make more errors - this is the idea!) ...
Hi Vasiliy! Thank you for the detailed and highly skilled explanation! The only thing I can't agree with is point 4. The fact is that the arrows go both to and from the " Error handling unit". The line connecting this unit to the other has arrows at its ends and from the institute's computer science curriculum I still remember that it means a two-way process, i.e. back and forth. Therefore, I have no doubts about the situation. As for the rest of your message, everything is clear to me.
Regards, Vladimir.
Hello Vasily! Thank you for the detailed and highly qualified explanation! The only thing I can't agree with is point 4. The fact is that the arrows go both to and from the "Error handling unit". The line connecting this unit to the other has arrows at its ends and from the institute's computer science program I still remember that it means a two-way process, i.e. back and forth. Therefore, I have no doubts about the situation. As for the rest of your message, everything is clear to me.
Regards, Vladimir.
That's right the first one caught on :-)
Use his expa as a template in your research - competent code!
there and
"Theи
Reverse and other stuff and plug standard libraries in the code at the beginning to simplify position opening fie - STUDY AND DON'T WORRY.
The flag'Positions: Only one' set to'true' allows the Expert Advisor to have no more than one position in the market. The flag'Positions: Reverse' is responsible for reversal of signals. Interesting flag'Positions: Close opposite' - if this flag is set to 'true' before opening a position, it guarantees the deletion of opposite positions.Print log' prints the extended logging of all operations. The'Freeze and StopsLevels Coefficient' parameter defines a coefficient for stop and freeze levels for cases when these levels are equal to zero for a symbol. It is recommended to apply a value of '3'.
I will write principles which I highly recommend to the author for the awareness of what the programme is all about. Unlike Kovalev's leaflets, where some of the material is correct, some contains gross errors, and some is general speculation with the reader, these principles are ALWAYS and 100% correct, no matter what you write in MQL: Expert Advisors, scripts or Expert Advisors:
First Principle. Any program in MQL handles events. An event is a notification that contains information about something, usually about something that has changed. For example, a new tick has come or our pending order has been executed. Other events do not contain any information, they just happen. For example, the "timer" event can call the user function with a set periodicity. It doesn't notify the user that something has changed. It simply calls the user's code, so it doesn't need any additional information. From the event definition, several non-trivial methods follow:
here's the first one I got for good luck :-)
Use his expa as a template in your research - competent code!
there and
"Theи
Reverse and other stuff and connect standard libraries in the code at the beginning to simplify position opening fie - STUDY AND DON'T WORRY, but get used to writing standard code - there's indentation and everything else
The flag'Positions: Only one' set to'true' allows the Expert Advisor to have no more than one position in the market. The flag'Positions: Reverse' is responsible for reversal of signals. Interesting flag'Positions: Close opposite' - if this flag is set to 'true' before opening a position, it guarantees the deletion of opposite positions.Print log' prints the extended logging of all operations. The'Freeze and StopsLevels Coefficient' parameter defines a coefficient for stop and freeze levels for cases when these levels are equal to zero for a symbol. It is recommended to use the value of '3'.
Hello Roman! Thank you for the example. Many times I tried to understand the codes written by Vladimir Karputov, but for me it is still an unreachable level. A little later, when I will have more information in my head, it is likely that I will return to his codes. But thanks for the tip!
Regards, Vladimir.
I will write principles which I highly recommend to the author for the awareness of what the programme is all about. Unlike Kovalev's leaflets, where some of the material is correct, some contains gross errors, and some is general speculation with the reader, these principles are ALWAYS and 100% correct, no matter what you write in MQL: Expert Advisors, scripts, or Expert Advisors:
First Principle. Any program in MQL handles events. An event is a notification that contains information about something, usually about something that has changed. For example, a new tick has come or our pending order has been executed. There are events that have no information but just happen. For example, the event "timer" can call the user function with a set periodicity. It doesn't notify the user that something has changed. It simply calls the user's code, so it doesn't need any additional information. From the event definition, several non-trivial methods follow:
Well done Vasily, I'm waiting for the sequel, if you don't mind writing it! Everything you told me was laconic and understandable for me!
Regards, Vladimir.
Well done Vasily, looking forward to the sequel, if you don't mind writing it! Everything you reported is concise and understandable for me!
Regards, Vladimir.
Moving on:
A beginner is flooded with useless information).
This suggests that you should not flaunt your desires in such a way. Vladimir might as well have asked questions specifically about this or that function and received useful advice, rather than the nonsense of "experts" like learn C++ or learn assembler. You could start by studying punchcards.