fxDreema

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

    initialize sequence for 'struct MqlRates' expected

    Questions & Answers
    2
    3
    757
    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
      seb 0 last edited by seb 0

      Hello, I'm having an issue compiling an EA, an error appear to be existing and is described as follows :

      • initialize sequence for 'struct MqlRates' expected
      • see declaration of 'struct MqlRates'
        See the code below with the underlined source of error element :
        0_1629025432809_Capture d’écran (439).png

      The "firstBar" structure array is declared and initialized in the same line appearently I dont know what is wrong.. An idea ?

      TipsyWisdom 1 Reply Last reply Reply Quote 0
      • TipsyWisdom
        TipsyWisdom @seb 0 last edited by

        @seb-0 the only thing I can think of is you can't logically say 1 = 0?

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

          @tipsywisdom
          The 1 number refers to the number of variables that the array "firstBar" will contain(array size), the 0 number is the value it will take by default. Apparently the problem comes from the fact that there is no structure sequence recognized preceding the array declaration, but as the file code isn't mine I don't know what is missing..

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

          Online Users

          T
          S
          A
          M
          R
          G
          G
          Y
          C
          S
          S
          S

          23
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors