fxDreema

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

    EA self terminated

    Bug Reports
    2
    4
    1461
    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.
    • S
      skytrader last edited by

      I just purchased your software. the UI is incredible. but I have problem with the EA after EA compiled.

      almost all the EA i try to build with your software, can't run in backtest because of critical problem. even your sample EA doesn't work in my MT4, they're all stopped with "expert advisor self terminated" đŸ™‚

      ex:

      1. bucker of trades https://fxdreema.com/examples#Bucket-of...

      error in mt4 backtest:

      2017.11.07 08:20:21.395 2017.09.07 23:45:44 rAlgo_rebecca_EA EURUSD,H1: Expert Advisor self terminated

      1. I try to create my simple EA and found problem with OCODriver for out of range, take a look this generated code:

      size = ArraySize(orders1);
      int dbremove = false;
      for (i=0; i<size; i++)
      {
      if (OrderSelect(orders1[i], SELECT_BY_TICKET, MODE_TRADES) == false || OrderType() <= OP_SELL)
      {
      if (OrderSelect(orders2[i], SELECT_BY_TICKET, MODE_TRADES)) {
      if (DeleteOrder(orders2[i],clrWhite))
      {
      dbremove = true;
      }
      }
      else {
      dbremove = true;
      }

           if (dbremove == true)
           {
              ArrayStripKey(orders1, i);
              ArrayStripKey(orders2, i);
           }
        }
      

      }

      the out of range error is at this part:

      if (OrderSelect(orders1[i], SELECT_BY_TICKET, MODE_TRADES) == false || OrderType() <= OP_SELL)

      can you give me 1 working example that really works in real life? I plan to create complex EA but seems it doesn't work even for simple things. cmiiw

      thanks

      1 Reply Last reply Reply Quote 0
      • K
        kosh22 last edited by

        Out of interest what country are you in and currency are you using?

        1 Reply Last reply Reply Quote 0
        • S
          skytrader last edited by

          what is the relevance with my question? đŸ™‚

          1 Reply Last reply Reply Quote -1
          • S
            skytrader last edited by

            sorry everyone, now the EA works well đŸ™‚

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

            Online Users

            T
            E
            B
            A
            N
            L
            A
            M
            E

            23
            Online

            146.6k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors