Download MetaTrader 5
To add comments, please log in or register
Do you know that MQL5 can create custom graphical tools?
ali
23
ali 2014.11.06 18:11 

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

Carl Schreiber
5926
Carl Schreiber 2014.11.06 18:18  

yes!

1) ExpertRemove();

2) ChartClose(0) should work too.

/
To add comments, please log in or register