Features of the mql5 language, subtleties and tricks - page 269

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
Yes. When ChartEventCustom returns false, it is an abnormal situation. Adding Solution1 can help with it.
Do you think it will help?
You persistently duplicate calls of EventChartCustom. It's just a matter of enthusiasm to complete the foolproofing.
As a small step.
Another point. You affect the static state of the object by the parameter of non-static member functions, I'm talking about the constructor now. It's not a very sensible solution. I would say that it is categorically harmful.
Do you think it'll help?
No, of course not. Duplicating EventChartCustom again.
One more thing. You influence the static state of the object by the parameter of non-static member functions, I'm talking about the constructor now. This is not a very reasonable solution. I would say that it is categorically harmful.
This is not a biblioteka in a design bureau, but a handicraft that can and should be improved and discussed. That is what we are doing.
Try creating a similar library at QB that takes into account many scenarios and is user friendly.
I have no enthusiasm for this topic, unfortunately.
No, of course. Duplication of EventChartCustom again.
That's not the post I was writing to.
I was writing to this one
"Yes. When ChartEventCustom returns false, that is an abnormal situation. Adding Solution1 can help with this."
Wrong post I was writing to.
This one
"Yes. When ChartEventCustom returns false, this is an abnormal situation. Adding Solution1 can help with it."
Once again, there should be no duplication of this function. It should be called only in the destructor and once on exit from all calculations.
Decision1 is a good help in case of abnormal operation of Decision2.
Has anyone managed to run any optimisation using Alglib?
I would be grateful if someone could share links to examples of use.
Once again, there should be no duplication of this function. It should be called only in the destructor and once on exit from all calculations.
Decision1 is a good help in case of abnormal operation of Decision2.
The button will be pressed a second time while the instructions after the call are being executed
but before the exit from the current OnChartEvent call (the same Print won't even start executing yet), and, by the law of meanness, that's when all conditions for the most unfavourable scenario)))) will be created. Bingo!!! It will be an epic and instructive fiasco))))))
Question: who will be to blame?
Answer: the one who uses asynchronousness in the combat code, poorly realising the depth of possible depths and the pain that lives there.
This is so that everyone can understand how it will be (click the copka after Calculated appears):
Somehow this is how it should be:
Thank you for pointing out such a negative scenario. Yes, the solution proposed was crude, ill-conceived, but it was not even a solution, but a direction in which to go.
My question is a bit different. Since I am not at all good at OOP, your code is clear to me, but not quite.
Can you tell me, is this code without OOP equal to the one below with OOP? And if not, what is the difference?
If I understand correctly, we are talking about different tasks.
Fxsaber had a task to eliminate the probability of repeated execution of a long calculation, which could cause human error.
I usually solved this problem by assigning two keys instead of one as a trigger for calculations.
My task was to thin the queue of events initiated by EventChartCustom, and if somewhere there is a failure and the queue once another time will not be cleared nothing terrible will happen. (not solved yet, but there is a direction).
On the task and the solution.