obj_rectangle extension

 

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
 

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.