Is it possible to code an EA that removes itself at the given time?

 

Hello Everyone,

  I was wondering is it possible to make an EA that runs its deinit function at certain given times. I usually forget to remove my EA :P and that makes me a lot of trouble.

  so I thought I have to make an extern DateTime to run the deinit function without removing the EA manually.

  Is it possible or I'm just wasting my time on this?

  Is it possible to code an EA that removes itself at the given time?

Thanks in advance

 

yes!

1) ExpertRemove();

2) ChartClose(0) should work too.

Reason: