Download MetaTrader 5

obj_rectangle extension

To add comments, please log in or register
kate682
170
kate682  

https://docs.mql4.com/constants/objectconstants/enum_object/obj_rectangle

 

I have read the above and searched, but cannot find how to amend the following piece of code so that all

rectangles are extended to the hard right edge.

============

ObjectCreate (0,StringConcatenate("kkx",index),OBJ_RECTANGLE,0,crossovertime,kkx1,TimeCurrent(),kkx2); 

============

if anyone could point me in the right direction that would be very much appreciated.

Happy new year.

 

Hugs Kate xx 

OBJ_RECTANGLE - Object Types - Objects Constants - Standard Constants, Enumerations and Structures - MQL4 Reference
OBJ_RECTANGLE - Object Types - Objects Constants - Standard Constants, Enumerations and Structures - MQL4 Reference
  • docs.mql4.com
OBJ_RECTANGLE - Object Types - Objects Constants - Standard Constants, Enumerations and Structures - MQL4 Reference
whroeder1
17097
whroeder1  

ObjectCreate is irrelevant, one you create an object you can't create it again.

Either you have to delete it and recreate it, or you change the second coordinate.

To add comments, please log in or register