Questions from Beginners MQL5 MT5 MetaTrader 5 - page 620
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
How come, it's most likely that the object is pixel-linked, not price and time-linked.
There's a stump of it peeking out, but in the original it's below the middle of the chart, and it's shifted to the left halfway down the chart:
Thanks, the object has been found, the task remains to screen it where it is in the original) All the other objects are almost in place.
Yes, strange...
That is, when a screenshot is created it is redrawn at the new scale. Apparently that's how the function is set up.
How come, it's most likely that the object is pixel-linked, not price and time-linked.
There's a stump of it peeking out, but in the original it's below the middle of the chart, and it's shifted to the left halfway down the chart:
Thank you, the object has been found, the task remains to screen it in the place where it is in the original) All the other objects are almost in place.
At the beginning make a pause. The length of the pause can be picked up practically.
I had a problem with indicators at the moment of taking the screenshot at bar opening, I've solved it by Sleep(10) pause; it could be less, but ... I solved it this way.
Pause at the beginning. The length of the pause can be adjusted practically.
Once I had a problem with displaying indicators at the moment of taking a screenshot at bar opening, I've won with Sleep(10) pause; it could be shorter, but ... I solved it this way.
Sleep() does not work in indicators.
In general, I have not yet won; I have already changed the size of the window before printing, and set redrawing, but nothing has helped. All right, for now, and I'll see what happens.
Did you print objects on the left side, did you change the angle?
Objects are initially created at a distance of 15% from the left "side", and 5% from above - that's it, then you can drag the mouse around the entire chart, if window rescape is done and object is not within line of sight, then "OnChartEvent" function will move the object to line of sight according to the event.