ObjectDelete does not work

To add comments, please log in or register
beyeu123
13
beyeu123  
i created an indicator that show period Weekly vertical line for time frame from M1 to H1. But when i delete indicator from chart, ObjectDelete does not work to delete all Line Object in the chart and does not any errors in log files
Files:
Alain Verleyen
39055
Alain Verleyen  
beyeu123:
i created an indicator that show period Weekly vertical line for time frame from M1 to H1. But when i delete indicator from chart, ObjectDelete does not work to delete all Line Object in the chart and does not any errors in log files

You should pay attention to the warning message at compile time :

OnDeinit function declared with wrong type or/and parameters    Seperate_Graphic.mq4    126    6

Your OnDeinit function is never executed. Check the documentation.
beyeu123
13
beyeu123  
Alain Verleyen:

You should pay attention to the warning message at compile time :

OnDeinit function declared with wrong type or/and parameters    Seperate_Graphic.mq4    126    6

Your OnDeinit function is never executed. Check the documentation.
Thanks.I have solved this problem. Only doesn't have parameter function OnDeinit is not executed. I think metaquotes should fix this bug
Roberto Jacobs
54011
Roberto Jacobs  
beyeu123:
Thanks.I have solved this problem. Only doesn't have parameter function OnDeinit is not executed. I think metaquotes should fix this bug
It's not a bug, but protects the user rather than make a mistake or writing wrong syntax code.
To add comments, please log in or register