Download MetaTrader 5
To add comments, please log in or register
Any questions regarding MQL5 Cloud Network? FAQ will help you!
johniat
12
johniat 2014.02.13 15:14 

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
17963
Simon Gniadkowski 2014.02.13 15:51  
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 2014.02.13 17:36  

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
17963
Simon Gniadkowski 2014.02.13 18:40  
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
28701
Alain Verleyen 2014.02.13 22:14  
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