Jump to content

Metatrader Anti-Crash EA


Frank__y

Recommended Posts

This might not be the right sub-forum, but I don’t know where to place else.

The problem: Once in a while the metatrader platform crashes. An error window occurs or not (depends on the crash). EAs don’t run anymore.

The solution: We program an EA that (over-)writes every minute a log-file: still_active.dat. Every time the log-file is updated, windows changes by himself the ‘date modified’ attribute. This is our trigger to decide whether metatrader is still active or not. So far so easy.

 

We only need a second program which checks the still_active.dat file every two minutes and compares the ‘date modified’ attribute with the current windows system time. If the difference is lower than e.g. two minutes, metratrades is still working. Otherwise the second program should kill and restart the metatrader process. Does anyone know such a second program and can help with the ‘anti crash EA’?

Or are there better solutions already available?

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...