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
Oh, good. So it is clear to a beginner why you use a timer?
It should be clear, because the article has an explanation and offers an alternative as homework. )
Good. Explain to me personally: why do I need a timer?
Okay. Explain to me personally: why do I need a timer?
It's almost written about at the end of the article. Before the video.
What do you think, I didn't read the article and didn't see where you wrote about the timer? Prove that your "recipes" are edible. "Explain it to me: why do I need a timer?
What do you think, I didn't read the article and didn't see where you wrote about the timer? Prove that your "recipes" are edible. "Explain it to me: why do I need a timer?
I'm quoting from the article:
Finally, an explanation of why we need to include a timer in this programme. For example, if there is more than one program running on the chart and each program needs to track mouse events, then when one of them is removed from the chart, tracking is disabled in the OnDeinit() function for all programs. That's why it is possible, as an option, to check whether mouse event tracking is enabled every second.
...
Sometimes it may be quite enough to set this check by the event with the CHARTEVENT_CHART_CHANGE identifier.
The highlighted in red is a hint to the reader (beginner) that it can be done differently. I made it on a timer on purpose, so that the learner could make at least the slightest effort to figure out something on his own and decide for himself which way works better for him.
In other words, you can't explain why you need a timer. Well, let's read on:
For example, if there is more than one program running on the chart and each of them needs to track mouse events, then when one of them is removed from the chart, tracking is disabled in the OnDeinit() function for all programs.
Can you prove this statement?
And at the same time, if you don't mind, show the "beginners" where and how to place the button functions.
In other words, you can't explain why you need a timer. Okay, read on:
This is getting ridiculous. Here's the answer (duplicate):
And finally, an explanation of why we need to enable the timer in this programme. For example, if there is more than one program running on the chart and each program needs to track mouse events, then when one of them is removed from the chart, tracking is disabled in the OnDeinit() function for all programs. That's why you can, as an option, check whether mouse event tracking is enabled every second.
Can you prove this statement?
Of course! I can answer for any word. )) But to be honest, if you have found a discrepancy, you should provide evidence. The article, by the way, was written six months ago and only now it was transferred to this site. It is not excluded that a bug could have formed somewhere during this time.
It's like Service Desk. If you have found an error in the terminal or MQL language, it is you who should give an example and sequence of actions to reproduce the error/mismatch.
In fact, you insisted so strongly on whether everything is really as it is written that I have already checked it myself (again). I discovered something interesting. It wasn't announced in the announcements, or maybe it was, but I can't find it. That really doesn't take away from the truth of the duplicated statement above. It's really all true. But I would still be interested to see proof from you. And if you provide it, I will refute it. That would be more interesting.
Deal? ))
And at the same time, if you don't mind, show "beginners" where and how to place button functions.
This is getting ridiculous...
All right, let's have a laugh. The article was written by you, "nobody pulled your tongue".
So, the explanation in the form of quotations for the unexplainable is at least not respectful to your readers. Questions should be answered with examples and links to primary sources.
Confusing and overloaded code with unnecessary functions only misleads "beginners".
And the fact that "button functions are placed in the OnInit function" is very funny!