Karputov Vladimir: Print(MQLInfoString(MQL_PROGRAM_NAME)); returns short indicator name. If no short name is specified, the full name will be returned.
In the log we see that the indicator continues to run. You can close all the charts in the terminal, but it will still be executing. And it won't help, of course,
Alexey Kozitsyn: Adding a _StopFlag check won't help?
Where to add it and how can it at least theoretically help. This is a bug of the terminal. And it is a serious bug. I was lucky - I see in the log that the indicator works. However, there are a lot of indicators that work in the terminal without any information about them. But the topic comes up, and why is my CPU so loaded on an empty terminal?
fxsaber: This is the style of MQL5. Please study what is #define and what is ::.
That's not what I mean. The "::" is not needed at all in your examples - maybe it's your habit, but it's not needed there at all. The code can be written normally without #defane as well. Just try to rewrite it and see if something becomes clear.
Karputov Vladimir: 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!
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