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
I have in this post:https://www.mql5.com/ru/forum/260815/page4#comment_7890492 detailed the conditions under which the problem can be reproduced. This was able to reproduce based on your assertions. What I wrote about here
I.e., a slight modification of the conditions led to a steady reproduction of the problem.
You somehow failed to notice this
P./S.: Print instead of Comment in your code would not only be a gentler procedure. Print results in OnInit() are easier to compare, copy and attach here
I suggested updating not in the hope that everything would fall into place, but so that the builds would be the same.
Igor, are you doing experiments on the full version of the indicator or on the experimental one?
Both there and there. But I still cannot say for sure what the issue is: whether it is a bug or not. I need to find sufficiently reproducible conditions.
How to do this?
According to the description in the first post of the thread, it is an indicator, it hangs on an open chart - it means that the history is already loaded. Right? Hang the indicator, close the terminal, start the terminal, --- where can the history go? If it was already there...
Secondly, I opened EURMXN symbol. Without looking in the terminal, can you tell what it is? )))
It's easy:
Both there and there. But I still can't say with any certainty whether it's a bug or not. We need to find sufficiently reproducible conditions.
Your wording is a bit unfortunate. What I cited is of reproducible conditions.
Another thing is that yes, probably what I described in blocks I and II is not a bug, but peculiarities of data loading when the terminal is restarted .
And in 1870th build there were differences of replaying from what I got in 1861th.
Combinations of messages (success and error 4111) have changed a little. For example, if earlier there was such a stable reproduction:
Now, with the same code, the error messages seem to be more pronounced:
And block IIIfrom that post of mine is no longer reproducible in the 1870th.
Nor could it reproduce in the 1870s what is described here:https://www.mql5.com/ru/forum/260815/page5#comment_7901728 Last - maybe it depends somehow on the operating system (as a guess). I.e., this code by Vladimir works fine for me, with no problems
I have come across a problem with the ChartNavigate function. Doing something wrong or is there really a problem with the function. Write back if you have used it often enough.
So, the crux of the problem: ChartNavigate does not shift the chart When starting the terminal If you call this function in OnInit(). Especially several times I read the documentation. Nowhere does it say that the function can't be called at initialization.
Code indicator for playback:
Steps to play:
Try the three variants of the indicator and see the result of each
1. ChartNavigate at the end of the other graphics commands
2. ChartNavigate one - no other commands to the chart
3. ChartNavigate before other chart commands
And try three variants of the indicator, see the result of each
1. ChartNavigate at the end of the other chart commands
2. ChartNavigate alone - no other commands to the chart
3. ChartNavigate before other chart commands.
I always forget that your message/suggestion is read backwards. It's like in an old joke:
1917, October. A lady, granddaughter of
Decembrist, is sitting in her own house on Nevsky. Hearing a noise in the street, she asks her janitor to find out what
is going on.
- Young lady, the revolution is there! - The janitor comes back.
-Oh, how wonderful! - My grandfather dreamed of a revolution!
Go and find out what the revolutionaries want, my dear fellow!
- They want no rich men, ma'am," says the janitor on his return.
- Strange," says the lady thoughtfully, "but my grandfather wanted there to be no poor people!
I always forget that your message/suggestion will be read backwards.
What do you mean? You wrote that you need to test the operation of the three indicators. Since the topic is about reloading the terminal and then using ChartNavigate, these are the tests that were made.
Why, if the problem is that ChartNavigate does not always work when the terminal starts? That's exactly the point.
the problem is exactly that ChartNavigate does not always trigger when the terminal starts? This is the point.
And also when I change my profile. In addition, if the ChartNavigate( chart_id, CHART_BEGIN, shift ) get for example CHART_FIRST_VISIBLE_BAR, then the result will be as if ChartNavigate has worked. If the Expert Advisor is removed, then the next time you start the Expert Advisor (this one or another), the result of obtaining CHART_FIRST_VISIBLE_BAR in this chart will look like CHARTNavigate failed.
The result: extremely inconsistent ChartNavigate operation already in combination with CHART_FIRST_VISIBLE_BAR