fxDreema

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

    Multi symbol EA crash

    Questions & Answers
    2
    3
    206
    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.
    • V
      vhager last edited by

      Hi,
      I'm trying to build a multi symbol EA.
      I want to create an EA that will loop on multiple pairs, check indicators and values of each pairs and create trades accordingly.
      However, when I try the "buy now" block on a different pair, it crashes and gives me a "zero divide" error.

      Here is an example:
      https://fxdreema.com/shared/6yS9injAd

      If this EA is assigned to the EURUSD pair, then it will crash with the following error:
      a852d983-a218-4b15-adbf-6254070addc0-image.png

      Line 5094 is this one:
      2b751604-feb5-479d-8c29-2f9ffabecc2a-image.png

      I tried without the "set market" block, but the result is the same.

      Any idea how to solve this ?

      Thank you in advance,
      Valentin

      1 Reply Last reply Reply Quote 0
      • V
        vhager last edited by

        Ok, after some additional research I found out it is impossible to backtest multiple currencies with MT4.
        I tried with MT5 and it works fine.
        Issue resolved.
        Thank you,

        1 Reply Last reply Reply Quote 1
        • VHV-Profit-Masters
          VHV-Profit-Masters last edited by

          Tu EA es un sistema de arbitraje entre diferentes activos?

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

          Online Users

          A
          C
          A
          X
          J

          14
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors