Rectangle Tool does not work after recent MQL4 Update

 

Every since the MQL4 update a few days ago, the Rectangle tool does not work, it draws out but disappears after a few seconds

Anyone else experiencing this ??

 
johniat:

Every since the MQL4 update a few days ago, the Rectangle tool does not work, it draws out but disappears after a few seconds

Anyone else experiencing this ??

Nope . . . do you have Indicator or EA running that uses the dreaded ObjectsDeleteAll() ?
 

Yep i think so, here is a snip of code from a target indicator i was trying out ... I deleted it & the rectangle tool works fine now

thanx for the help Raptor, cheers :^)

int deinit()
{

ObjectsDeleteAll(0,OBJ_RECTANGLE);
ObjectsDeleteAll(0,OBJ_TRENDBYANGLE);
ObjectsDeleteAll(0,OBJ_TEXT);
ObjDel();
Comment("");
return(0);
}

int start()
 
johniat:

Yep i think so, here is a snip of code from a target indicator i was trying out ... I deleted it & the rectangle tool works fine now

thanx for the help Raptor, cheers :^)

You are welcome . . . I think that function should be banned
 
johniat:

Yep i think so, here is a snip of code from a target indicator i was trying out ... I deleted it & the rectangle tool works fine now

thanx for the help Raptor, cheers :^)

Hello,

Please use the SRC button when you post code. Thank you.


This time, I edited it for you.

Reason: