Download MetaTrader 5

Rectangle Tool does not work after recent MQL4 Update

To add comments, please log in or register
johniat
12
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 ??

Simon Gniadkowski
Moderator
18018
Simon Gniadkowski  
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() ?
johniat
12
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 :^)

int deinit()
{

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

int start()
Simon Gniadkowski
Moderator
18018
Simon Gniadkowski  
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
Alain Verleyen
Moderator
31602
Alain Verleyen  
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.

To add comments, please log in or register