Errors, bugs, questions - page 1697
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
Print(MQLInfoString(MQL_PROGRAM_NAME)); returns short indicator name. If no short name is specified, the full name will be returned.
Thank you.
Alexey, your example doesn't work, the parent's methods are still dumped in the inheritor, which shouldn't be dumped.
It shouldn't be like this, can you throw the code?
Those data that were protected and publicin the parent will be protected at protected-inheritance.It is impossible to read and look through codes with#define and with ::
Please rewrite the codes in the style of common MQL5.
It is impossible to read and watch the codes with#define and with ::
Please rewrite the codes in common MQL5 style.
Adding a _StopFlag check won't help?
This is the style of MQL5. Please study what is #define and what is ::.
That's not what I mean. "::" is not needed at all in your examples - maybe it is your habit, but it is not needed there at all. The code can be written just fine without #defane. Just try to rewrite it and see if something becomes clear.
I only had "::" in one place. And I don't write codes from scratch. As a rule, I take something out of my codes. Here's ::: there was one through copy-paste. I'd never paid attention to it but I've removed it since it makes you feel so much better.
But it's not a matter of principle not to remove #define. 99% of the code can be written without it. This is not an occasion to take it away.
And there is 1% (relatively) when you cannot do without #define!
I only had "::" in one place. And I don't write codes from scratch. As a rule, I take something out of my codes. Here's ::: there was one through copy-paste. I'd never paid attention to it but I've removed it since it makes you feel so much better.
But it's not a matter of principle not to remove #define. 99% of the code can be written without it. This is not an occasion to take it away.
And there is 1% (conditionally) when you cannot do without #define!
If you don't copy the buffer:
then the indicator successfully completes its work