Download MetaTrader 5
To add comments, please log in or register
Have you found an error in our products? Apply to Service Desk!
fxnew
189
fxnew 2014.05.26 18:07 

hello to the experts,


I got a problem with the durability of objects.

I use some custom indicators in charts , they have a normal draw object function(vertical lines) included.


Now when I close the MT4 and restart it another time, the formally drawn objects dissapeared in those charts.

I checked if there is any delete object function in the indicators (particularly in the INIT or DEINIT field) but there is nothing.

So I was wondering if there could be any othere function in the MT4 on a global scale to delete objects or could the problem

be caused by something else?


thanks in advance, if anybody got ideas.

Alain Verleyen
Moderator
28669
Alain Verleyen 2014.05.27 10:19  
fxnew:

hello to the experts,


I got a problem with the durability of objects.

I use some custom indicators in charts , they have a normal draw object function(vertical lines) included.


Now when I close the MT4 and restart it another time, the formally drawn objects dissapeared in those charts.

I checked if there is any delete object function in the indicators (particularly in the INIT or DEINIT field) but there is nothing.

So I was wondering if there could be any othere function in the MT4 on a global scale to delete objects or could the problem

be caused by something else?


thanks in advance, if anybody got ideas.


Maybe there is an other code (Indicator,EA...) running that deletes all your objects ?
fxnew
189
fxnew 2014.05.27 14:10  

thanks for the feedback


I just noticed, that when removing the indicator, which creates the objects, all the objects are deleted.


Is there any MT4 setting that induces this?

Because in my code there is no "DEINIT" part and there are no delete object functions, that's strange.

the basic blocks are:

#property indicator_chart_window

int init()
 {

  return(0);

  }

int start()
{

return(0);
}

Alain Verleyen
Moderator
28669
Alain Verleyen 2014.05.27 14:56  
fxnew:

thanks for the feedback


I just noticed, that when removing the indicator, which creates the objects, all the objects are deleted.


Is there any MT4 setting that induces this?

Because in my code there is no "DEINIT" part and there are no delete object functions, that's strange.

the basic blocks are:

#property indicator_chart_window

int init()
 {

  return(0);

  }

int start()
{

return(0);
}

Please post all your code if you need help.
fxnew
189
fxnew 2014.05.27 16:31  

thanks to traveller / voyageur ;-)


problem is solved:

the code had a call  of another custom indicator, which includes  the command   ObjectsDeleteAll();

---------

a link for general information / maybe for other users in the future is : https://forum.mql4.com/46210

Alain Verleyen
Moderator
28669
Alain Verleyen 2014.05.27 18:06  
fxnew:

thanks to traveller / voyageur ;-)


problem is solved:

the code had a call  of another custom indicator, which includes  the command   ObjectsDeleteAll();

---------

a link for general information / maybe for other users in the future is : https://forum.mql4.com/46210


Great. You are welcome.
/
To add comments, please log in or register