Order of graphical objects ...

To add comments, please log in or register
Faltensack
27
Faltensack  

Hello I have a question for mql5 language regarding overlapping Objects.

If I make for example an indicator with with four graphical Object (for example rectangles) that are all overlapping in one or more points. How can bring a specific rectangle to the front (or make it second or third) during the program runs.

Regards

Klaus

Marco vd Heijden
Moderator
8635
Marco vd Heijden  
OBJPROP_BACK = 0

OBJPROP_BACK

Object in the background

bool


https://www.mql5.com/en/docs/constants/objectconstants/enum_object_property#enum_object_property_integer


Assign the value with:

ObjectSetInteger(...

And the last object you create will be the one placed most up front in case of overlap.

Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Object Properties - Reference on algorithmic/automated trading language for MetaTrader 5
To add comments, please log in or register