fxDreema

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

    problem compile after #property strict

    Questions & Answers
    2
    5
    637
    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.
    • L
      lucast74 last edited by

      hi after insert new line with #property strict, my expert advisor give me 7 errors and 118 warnings. can you check?
      i attack file.mql4

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

        I'm sure that there are warnings and even errors in strict mode 🙂 MQL4 is limited language and becomes stupidly limited in strict mode in my opinion.

        1 Reply Last reply Reply Quote 0
        • L
          lucast74 last edited by

          Ok. But you can help me to resolve?

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

            Just don't use this strict mode. If I have to fix all these warnings and errors... who knows, maybe I will break some functionality here and there. For examle, there is one parameter called "Group #", which is always a numeric value and should be "int", but I changed it to "string" so people can use values like 1,2,3,4 to select multiple Group numbers for the same block. When string with value of "1" is used somewhere in the code as numeric value, MQL4 translates it into 1, but in strict mode it will print warning. I can't stop MetaEditor from throwing these warnings, but I will not break this functionslity (and others) only because some warnings 🙂

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

              Today I decided to clear some errors and now MQL4 files are generated in strict mode. Also because I optimized some code, now backtests are little bit faster (well, it depends what blocks are used)

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

              Online Users

              E
              S
              D
              R
              E
              O
              B
              M
              B
              诸
              A
              J
              H

              21
              Online

              146.9k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors