![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hello Alexey, sorry for not reacting to your post straight away. The link is very interesting. I have looked through the codes of all 11 types of trailing stops and function libraries. It is all very interesting, even though it is written in MQL4. To be honest, I have never imagined that there are so many types of trailing stops. Thank you very much for your support!
Sincerely, Vladimir.
Vasiliy, of course thank you very much for doing so much work for me, but it didn't bring me any closer to understanding where these functions plus operators came from and, most importantly, why they appeared. It would have been more correct to get to the point of writing that code, which you've suggested to me. I really wanted to get to this point myself and now I want to.
I understand that you, like many others, are tired of my constantly spelling out all the lines of code and trampling on the spot, but the problem is that I still don't understand how everything is built, from the algorithm to code writing. I must add lack of knowledge of English to the problem, because I have to copy and paste almost all compiler error and warning messages, and other English words into Google Translator. By the way, if anyone tried to run those micro, even nano-codes I posted in this thread, they all passed compilation with "0 error, 0 warnings".
Now I need some time to realize, or rather to understand why these functions and operators appeared. So, in short, it's a silent horror. And I am a bad student when I don't understand elementary things.
Thank you and all other programmers for tolerating my slow-wittedness. Although I realize that your patience is not boundless.
Sincerely, Vladimir.
Hello Alexey, thanks for the tip. I learnt about F1 key (maybe it is what you mean) when I have just started studying MQL5. I always use HELP, i.e. MQL5 Reference, and look through available examples that explain how to use one or another property (variable, operator, loop, function, class, etc.).
Regards, Vladimir.
Hello! Maxim above correctly said a brief description of what this or that function does helps in understanding and remembering,
I would add that headers help to find the right block in a pile of code, e.g. a block of input parameters starts with a header
A simple task for Vladimir:
Hello, Alexander!
Hello, dear participants of this thread!
I decided to take a break until the next weekend, i.e. October 17, for several reasons:
In the future I will try to post code less frequently, but to make it richer and more well-rounded and not as I did before, when I posted a few lines at a time, distracting forum participants from more important things.
This message doesn't mean that I've decided to give up and capitulate to MQL5. In fact, I've got a strong desire to study it, but I will try to do it on a different level of perception of information.
See you this weekend!
With great respect to all, Vladimir.
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 minimal code, which it will already be able to modify and add.
the last (it's the first one about the trailing stop) task - to write an owl and run it in the tester, then TS will see how exactly a stop is trailed.
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:
What's going on here?
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)))