MQL5 programming - is there object for drawing filled quadrangle?

 

i need a obj_quadrangle and there is only this one: 

https://www.mql5.com/en/docs/constants/objectconstants/enum_object/obj_triangle


i can combine one quadrangle (with 4 different points) out of 2 obj_triangle 

Is there any other way? 

 

PS. i need to fill area between 2 lines (at an angle, so OBJ_RECTANGLE is out of the question). I tried understanding DRAW_FILLING, but i dont understand the explanation and i need it to be an object that i can move. I want to display graphical representations for grid and margin level call (filled with colors) for my strategy. 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_TRIANGLE
Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_TRIANGLE
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_TRIANGLE - Documentation on MQL5
 
angreeee:

i need a obj_quadrangle and there is only this one: 

https://www.mql5.com/en/docs/constants/objectconstants/enum_object/obj_triangle


i can combine one quadrangle (with 4 different points) out of 2 obj_triangle 

Is there any other way? 

 

PS. i need to fill area between 2 lines (at an angle, so OBJ_RECTANGLE is out of the question). I tried understanding DRAW_FILLING, but i dont understand the explanation and i need it to be an object that i can move. I want to display graphical representations for grid and margin level call (filled with colors) for my strategy. 

Two lines cannot make an area . . . you need at least three crossing lines and that is called a triangle.  You can probably fill the shape using triangles and then use a trendline to signal to your code when you want to move the shape,  you manually move the trendline and your code "sees" this and re-draws the shape as needed based on where you position the trendline.
Reason: