
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
Anatoly, thank you very much! It helped on point 1. Yes, I missed theCAxis::MaxGrace(const double value) axis method.
Here's another short example:
Application #1827124.
Application #1827124.
The problem has been fixed as follows:
Support Team2018.01.15 14:30
The error appeared when safely calculating the remainder of division in the CAxis::Mod method.
There used to be a numerical method implemented there, without using the MathMod function, but your example showed that the accuracy of this method is not the best in some cases.
So I had to change this method to:
//---
The result with the same parameters:
Initialisation in the CGraphic expert.
If you create a graph in the Expert Advisor, e.g:
then when changing an external parameter, the graph disappears periodically. Not at the first time. You can change the parameter 3-5 times and it gets lost at random, and not forever. It can be found through switching timeframes or automated trading (enabled or disabled).
Can we make it not be lost?
Initialisation in the CGraphic expert.
If you create a chart in Expert Advisor, for example:
then when the external parameter is changed, the graph disappears periodically. Not from the first time. It is possible to change the parameter 3-5 times and then it is randomly lost somewhere, and not forever. It can be found by switching timeframes or automatic trading (enabled - not enabled).
Can you make it so that it is not lost?
You create and destroy the object on the local level of the OnInit function.
Create one on a global level.The problem was solved by reinstalling MT.
I can't get used to the fact that there may not be an error when an error occurs.
Can you tell me how to change the width of the legend, or remove the space allotted to it altogether?
And another question, why do I specify a colour "Red", but it is displayed on the chart as blue, while Green is displayed correctly?
And another question, why do I specify a colour "Red", but it is displayed on the graph blue, while Green is displayed correctly?
I figured it out, the colour has to be set as follows