OnTimer in iCustom called from Expert - How is the function?

 

Hello world,

I'm using OnTimer in an self written indicator. It should display the time in seconds till new bar (Comment).

If I load the indicator all works like I planned.


But if it is called by an expert, the counter stucks.

I guess, that in this case OnTimer is not used. Do you have other suggestions to get this functionallity?


Many thanks