Jump to content

Frank__y

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Frank__y

  1. Hi guys,

     

    is there any EA which is just trading around newstime:

    -open two pending orders just one minute before high or medium impact news

    -first order is a sell limit 5pips lower than current price

    -second order is a buy limit 5 pips higher than current price

    -the second one pending order is executed sufficient SL and TP are set

    -5min after newstime still pending orders will be deleted and we wait until next news

  2. 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

×
×
  • Create New...