fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Self terminating EA - Error "array out of range"

    Questions & Answers
    3
    5
    1572
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      anse33 last edited by anse33

      From time to time the EA decides by itself to quit. It just disappears from the chart. As far as I can see, this usually happens after opening a position.
      Does somebody else know this effect?

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        is some error in log? or can you post shared example where it happened?

        Between trading and gambling is a very small gap, be careful.

        A 1 Reply Last reply Reply Quote 0
        • A
          anse33 @miro1360 last edited by anse33

          @miro1360 This EA is for small & easy tests.
          https://fxdreema.com/shared/Hc1GUdqN
          I started 4 instances of this Test EA yesterday evening. Only 1 of them "survived" until this morning. Log just says:

          ...
          2017.09.15 01:54:00.404 Experts expert 170914_OpenPosisGroupIDonlyForCheckOpen_v8 (EURUSD,M1) removed
          ...
          2017.09.15 06:05:04.158 Experts expert 170914_OpenPosisGroupIDonlyForCheckOpen_v8 (EURUSD,M1) removed
          ...
          2017.09.15 08:52:02.566 Experts expert 170914_OpenPosisGroupIDonlyForCheckOpen_v8 (EURUSD,M1) removed
          ...

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            Sorry, I saw this question, but I forgot to answer to it 😞

            It's hard to say why this happens. In my backtest I see many pending orders that expire quickly, maybe the broker doesn't like that. Do you have more error messages?

            A 1 Reply Last reply Reply Quote 0
            • A
              anse33 @fxDreema last edited by anse33

              @fxDreema
              Now I come up with some new error messages: (was quite busy the last time)

              It is still a big problem, that my EAs keep terminating themselves without any visible reason! Tried different ways of building my EA. Tried different MetaTraders with three different Brokers. On some the EA runs longer, on some shorter. But 75% of them die!

              Do you see a solution?

              The EA terminates itself right in the second, it creates a position.

              Tab Journal says: "170914_OpenPosisGroupIDonlyForCheckOpen_v8 (EURUSD,M1) removed"

              Tab Experts says at the same second: "array out of range in '170914_OpenPosisGroupIDonlyForCheckOpen_v8.mq5' (3605,41)

              And Line 3605 is: UpdateEventValues(EGV_OrderList[OrdersTotal()-1],"new","");

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Online Users

              F
              R
              S
              D
              V
              O

              15
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors