Download MetaTrader 5

CHART_EVENT_OBJECT_DELETE

To add comments, please log in or register
Alexandru Ionut Comanoiu
859
Alexandru Ionut Comanoiu  

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
35118
Alain Verleyen  
Check your OnChartEvent() code.
Alexandru Ionut Comanoiu
859
Alexandru Ionut Comanoiu  

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