Download MetaTrader 5

CHART_EVENT_OBJECT_DELETE

To add comments, please log in or register
Unable to find the right application? Order it!
Alexandru Ionut Comanoiu
575
Alexandru Ionut Comanoiu 2016.03.22 09:53 

Hi, everyone!

I have a problem and I don't know if it's a bug.

If I put this:

ChartSetInteger(ChartID(),CHART_EVENT_OBJECT_DELETE,true); 

in  init() it freezes my platform!

it doesn't happen with

ChartSetInteger(ChartID(),CHART_EVENT_OBJECT_CREATE,true);


Alain Verleyen
Moderator
30737
Alain Verleyen 2016.03.22 09:57  
Check your OnChartEvent() code.
Alexandru Ionut Comanoiu
575
Alexandru Ionut Comanoiu 2016.03.22 10:34  

Thaks! I've found the problem, but it's weird...

I do have some ObjectDelete fuctions in OnChartEvent() and that's why it freezes, but i also have ObjectCreate functions and the

ChartSetInteger(ChartID(),CHART_EVENT_OBJECT_CREATE,true); has no problem with those.

To add comments, please log in or register