fxDreema

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

    Compiling?

    Bug Reports
    4
    19
    3778
    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
      SydneyFox last edited by

      Are there issues compiling at the moment? I've been trying to compile but haven't been able to. Including existing EAs that I've been able to in the past.

      I'm not getting any error message it just seems to 'hang' when trying to compile.

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

        I can compile and export your latest project at least. It takes something like 4.22 seconds, but I got the file.

        I don't know if you are using the plugin for downloading in Chrome, but if you do, then try to reinstall it. I know that sometimes it breaks for some reason, it happened few times for me before.

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

          Thanks for your response. It eventually compiled for me too but took a lot longer than 4.22 seconds. I don't use the plugin for downloading in Chrome. Is this something I should be using?

          I usually use Firefox but also tried Chrome to see if it's any better. Is there a best browser to use for fxdreema?

          1 Reply Last reply Reply Quote 0
          • S
            SydneyFox @fxDreema last edited by

            @fxdreema I'm having the same issue again. Do you have any suggestions as to why it won't compile?

            Is it size of EA? Number of blocks? etc.

            I can compile .mq4 but not .ex4? Any reason why?

            1 Reply Last reply Reply Quote 0
            • J
              josecortesllobat last edited by

              Hi @SydneyFox

              Could you share a screenshot showing the error that gives you when you try to compile the Project?

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

                I don't get any error. It just says that it's compiling and stays like that for ages (20+ minutes) until I get sick of it and have to either compile the .mq4 or load another project to stop this one.

                1 Reply Last reply Reply Quote 0
                • J
                  josecortesllobat last edited by

                  What you can do is to compile the mql4 file using metaeditor. If there is some error, it will be shown.

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

                    Sorry to be ignorant but how do I do that?

                    Is it easy to explain or is there a link you could point me to to explain what I need to do?

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

                      This sounds like some general software problem, maybe antivirus checking the download...
                      If you download the .mq4 and open it, it should open in metaeditor by default. In metaeditor, hit the button "compile" in the top row, and it gives you information about possible errors.

                      Need small help? Tag me in your post
                      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

                        Thanks @josecortesllobat @roar

                        When I compile in metaeditor I get: 0 errors, 35 warnings, compile time 1131 msec.

                        The warnings I get are:

                        1. possible loss of data due to type conversion
                        2. implicit conversion from 'number' to 'string'

                        Does this mean it has now been compiled in metaeditor? If so where do I find the .ex4 file?

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

                          Those 2 warnings come with basically every project, nothing to worry about there - the problem is most likely elsewhere.

                          Metaeditor puts the compiled .ex4 files to your expert advisor folder, something like "...../MQL4/experts/"
                          The folder is nowadays in the metatrader install location.
                          You should see the ea in your metatrader navigation panel, remember to refresh it.

                          Need small help? Tag me in your post
                          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                          1 Reply Last reply Reply Quote 0
                          • J
                            josecortesllobat last edited by

                            If you double click over the mql4 file, the metaeditor will open up and you will be able to compile the EA.

                            0_1528816345782_c69a4dca-872b-4de2-b41b-1904df8fcbc9-image.png

                            0_1528816541988_428851c5-6fa0-422a-a817-d511d82f81ac-image.png

                            0_1528816637757_172bde5b-ed7f-43a4-9de4-d974f0fffd66-image.png

                            When the job has done, you will get some info about the compiled job.

                            0_1528816769466_900ea980-d74a-4e99-9f47-e2749773dc02-image.png

                            Warnings (in yellow) are not a problem but Errors (in Red) yes.

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

                              Thanks again @roar @josecortesllobat I really appreciate your help.

                              I have been able to compile but still can't find the .ex4 file? I have a demo mt4 open and have refreshed and looked in the MQL4/Experts folder but it's not there.

                              Can it be because I have other MT4 platforms on my laptop and need to open those to see if it's there?

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

                                @josecortesllobat @roar another question if I may? As you both seem to be a lot more knowledgeable than me.

                                I have a variable that I want to modify as either True or False. In the Modify Variables block it says it's Value / Boolean. I thought as this uses boolean I would need to use this when I set up the 'Type' when I add the new variable?

                                When I compile I get the following errors:

                                1. 'boolean' - declaration without type
                                2. 'MyVariableName1' - struct member undefined

                                Any suggestions as to how I fix this error?

                                1 Reply Last reply Reply Quote 0
                                • J
                                  josecortesllobat last edited by

                                  @SydneyFox Most probably is what you are saying.

                                  I suggest a workaround:

                                  • Open the MT4 platform you want the EA compiled be used
                                  • "Open Data Folder" from File menu
                                  • Navigate to \MQL4\Experts and copy the mq4 file inside that folder
                                  • Open the file from there (double click over it)

                                  After you get the EA compiled file, you should find it in that folder.

                                  S 1 Reply Last reply Reply Quote 0
                                  • J
                                    josecortesllobat last edited by

                                    @SydneyFox

                                    1. Check out if the constant/variable you want is set as "boolean" in the Constant/Variables menu

                                    0_1528818573773_0120cdc8-aba4-4daf-bda4-71fcb9218a54-image.png

                                    1. Might be related to 1 if it is the same constant/variable as you want as boolean
                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      SydneyFox @josecortesllobat last edited by

                                      @josecortesllobat said in Compiling?:

                                      After you get the EA compiled file, you should find it in that folder.

                                      This bit answered it thanks. It was in the folder where the mq4 folder was. Which was not in the MT4 platform folders.

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        SydneyFox @josecortesllobat last edited by

                                        @josecortesllobat said in Compiling?:

                                        @SydneyFox

                                        1. Check out if the constant/variable you want is set as "boolean" in the Constant/Variables menu

                                        0_1528818573773_0120cdc8-aba4-4daf-bda4-71fcb9218a54-image.png

                                        1. Might be related to 1 if it is the same constant/variable as you want as boolean

                                        You fixed it again! Thanks!!!

                                        Under type I had used 'boolean' instead of 'bool'. Sorted now.

                                        Thanks you very much for all your help. @josecortesllobat @roar

                                        1 Reply Last reply Reply Quote 1
                                        • J
                                          josecortesllobat last edited by

                                          You are welcome.

                                          Don't hesitate to ask anything in the forum because we are learning together.

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

                                          Online Users

                                          D

                                          10
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors