Chart objects not being deleted on MT5 deinit
-
Hi all
I have a trade management EA that creates some lines and text on the main chart, all with name that begins 'Partial'. I have checked they are named correctly.
On deinit, I try to delete the objects by selecting the ones that have prefix 'Partial'. It works fine in MT4 version of this EA but does not work on MT5, the objects all remain on the chart and must be deleted manually. Can anyone help me what I am doing wrong?
(I recently added the 'For each object' loop, but it didn't work before when there was just the 'delete objects' block).
-
Also: on my 'on tick' tab, these objects delete fine when expected (last, bottom blocks). Even copying these blocks to the 'de init' tab, they don't seem to work
-
@general-melchett Move the 'partial' word to the 'Name contains' box instead.
-
@l-andorrà said in Chart objects not being deleted on MT5 deinit:
@general-melchett Move the 'partial' word to the 'Name contains' box instead.
I always use it in both to be safe.