
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
CGrafic::Destroy() - Doesn't work!
CGrafic::Destroy() - Doesn't work!
How did you detect it? What are the symptoms?
How have you identified it? What are the symptoms?
Well, the code is attached for playback :)
And on the picture you can see that after Destroy() graphs are added
with prefix
_exists
But the code for playback is attached :)
And on the picture you can see that after Destroy() graphs are added
with prefix
Well my question was aboutCGrafic::Destroy(). It works - I checked it with the debugger... Maybe something is wrong in your code?
Well, the question was specifically aboutCGrafic::Destroy(). It works - I checked it in the debugger... Maybe something is wrong in your code?
Getting into the body of Destroy() procedure does not mean that it (the procedure) works correctly.
Afteractual destroying of an object we couldn't add new graphs to it, and they are added!
Getting into the body of the Destroy() procedure does not at all mean that it (the procedure) is working correctly.
After the actual destruction of an object, we couldn't add new graphs to it, and they do!
About the hitting, I agree. But nevertheless... Well, firstly,voidCGrafic::Destroy(). That is, the method does not owe us anything. And secondly, maybe it's up to the programmer to add checks? You can't configure SB for all tasks...
About the hitting, I agree. But nevertheless... Well, first of all,voidCGrafic::Destroy(). That is, the method doesn't owe us anything. And secondly, maybe it's up to the programmer to add checks? You can't configure SB for all tasks.
Moreover, I altered the Destroy method.
And it still adds charts!
I plot the graphs and output the text using CGraphic. If one instance of the EA is running, everything is fine. If I run the same EA on different charts, I get the impression that the output is always on the chart which is currently on the screen. And not on the chart that is specified in the Create method. Here is the code of the EA to demonstrate the problem:
If Expert Advisor 1 works, everything is fine
But if you open the second EA in another chart, the first chart starts receiving information from the first EA and the second one at the same time.
It means that it starts flickering, because several Expert Advisors work on one and the same chart. However, in the Init function, each Expert Advisor receives the Id of the chart it has been launched in. Then I get a call to Create.
Please help me to understand what is the problem ?
I plot the graphs and output the text using CGraphic. If one instance of the EA is running, everything is fine. If I run the same EA on different charts, I get the impression that the output is always on the chart which is currently on the screen. And not on the chart that is specified in the Create method. Here is the code of the EA to demonstrate the problem:
If Expert Advisor 1 works, everything is fine
But if you open the second EA in another chart, the first chart starts receiving information from the first EA and the second one at the same time.
It means that it starts flickering, because several Expert Advisors work on one and the same chart. However, in the Init function, each Expert Advisor receives the Id of the chart it has been launched in. Then I get a call to Create.
Please help me to understand what the problem is?
In the name of the object, do not need to add ChartId? I don't remember if it is added inside the function.