Download MetaTrader 5

Filled Rectangle?

To add comments, please log in or register
Andriy Moraru
1260
Andriy Moraru  
Is it possible to fill OBJ_RECTANGLE with color somehow?
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Object Types - Documentation on MQL5
Alexey Da
Moderator
6678
Alexey Da  

If you enable property "Draw object as background" you'll get it.

 

Andriy Moraru
1260
Andriy Moraru  
alexvd:

If you enable property "Draw object as background" you'll get it.

 

I mean from MQL.
Rashid Umarov
Admin
13421
Rashid Umarov  
See property OBJPROP_BACK - Object Properties

Andriy Moraru
1260
Andriy Moraru  
Rosh:
See property OBJPROP_BACK - Object Properties

Thank you very much! But I suggest marking it more clearly in the help file what this property does. It's quite hard to predict from looking at it that it will fill the rectangle with its color.
gjrexach
68
gjrexach  
enivid:
Is it possible to fill OBJ_RECTANGLE with color somehow?

Actually, Setting PROP_BACk to true will not necessarily fill the rectangle in MQL5... The correct property is  OBJPROP_FILL

ex:  ObjectSetInteger (0,"RectangleObject",OBJPROP_FILL, true); 

To add comments, please log in or register