Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1139
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
Where do I right-click?
Ctrl T to bring up the menu at the bottom, Trading, Assets, ..... , lastly Log. Click the logbook and right-click on one of the entries to view
It is possible that the price and time for the object coordinates are equal to zero. Check it this way: Press Ctrl+B, press "All" button in the appeared dialog and see the list of existing objects. If there is one, open properties and see coordinates.
debugged, all is ok when creating all objects
Where should you right-click?
specially, rzewski: a mouse to poke in the right place
Especially for Rzewski: a mouse to click in the right place
To be honest, the method of groping to find where the log is called, and liked the word view, pressed. and there's the log))))) And by the way is there no way to call the log via counterclause or what?
Good afternoon.
Is it possible to set an object to always be above the others, including newly placed objects. So that when objects overlap, the desired object never overlaps the top?
I initially thought that the OBJPROP_ZORDER property could help, if the required object was always set to the highest value. But as it turned out in practice, it's only a priority for click catching. Visually, the object doesn't get higher than all of them.
Also in practice, I found out that if an object is drawn last, it will definitely be visually higher than the others. So I have to either create some property I don't know about, or redraw the object, which should not overlap the top every time the number of objects on the chart changes. But when redrawing, I ran into a problem - flickering of an object that was removed and drawn again. Is there any way to redraw the object nicely, without flickering, or to make it non-overlapping from above?
Good afternoon.
Is it possible to set an object to always be above the others, including newly placed objects. So that when objects overlap, the desired object never overlaps the top?
I initially thought that the OBJPROP_ZORDER property could help, if the required object was always set to the highest value. But as it turned out in practice, it's only a priority for click catching. Visually, the object doesn't get higher than all of them.
Also in practice, I found out that if an object is drawn last, it will definitely be visually higher than the others. So I have to either create some property I don't know about, or redraw the object, which should not overlap the top every time the number of objects on the chart changes. But when redrawing, I ran into a problem - flickering of an object that was removed and drawn again. Is there any way to redraw the object nicely, without flickering, or make it non-overlapping from above?
OBJPROP_TIMEFRAMES:
OBJ_NO_PERIODS - invisible on all periods,
OBJ_ALL_PERIODS - visible on all periods
Good afternoon.
Is it possible to set an object to always be above the others, including newly placed objects. So that when objects overlap, the desired object never overlaps the top?
I initially thought that the OBJPROP_ZORDER property could help, if the required object was always set to the highest value. But as it turned out in practice, it's only a priority for click catching. Visually, the object doesn't get higher than all of them.
Also in practice, I found out that if an object is drawn last, it will definitely be visually higher than the others. So I have to either create some property I don't know about, or redraw the object, which should not overlap the top every time the number of objects on the chart changes. But when redrawing, I ran into a problem - flickering of an object that was removed and drawn again. Is there a way to redraw the object nicely, without flickering, or make it non-overlapping from above?
It follows that visually, the object with the highest index will be in the foreground.
I get out of this situation in the following way:
in this case, I have an array of object names in my code that were not created by the program (others). As soon as a new other object appears, I delete all objects created by the program (my own) and create them anew. In this case, own objects will always have the highest index in the list of objects, and hence visually be in the foreground. But it is also necessary to always clear the array of other objects, in case of their removal from the chart, so that the array does not grow uncontrollably.
If you want to control your objects, it's easier. You just need to control the object indices.
The objects are displayed according to the index:
it follows that visually the object with the highest index will be in the foreground.
This is how I get out of this situation:
In this case, my code has an array of names of objects not created in the program (others). As soon as new other object appears, I delete all objects created by program (my own) and create them again. In this case, own objects will always have the highest index in the list of objects, and hence visually be in the foreground. But it is also necessary to always clear the array of other objects, in case they are deleted from the chart, so that the array does not grow uncontrollably.
If you want to control your objects, it is easier. You just need to control the object indices.
I have shown above what to do. Why go to such lengths when there is a developer-recommended method?
I want to transfer the ATP indicator to the price chart. But I do not know how to do it. I want it to show the maximal movement in volatility from the midline of the same period. If anyone has the code, thank you for sharing.