fxDreema

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

    Compilation Errors HELP!

    Questions & Answers
    compilation errors variable
    4
    6
    1603
    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
      LopezDiaz2510 last edited by

      Greetings FXDreema community!!!

      Am trying to compile my EA but instead of compile i recive an error window that says "Compilation Errors": stop_loss - constant expected.
      My EA saves in a variable the value of a candle high or low to be use as a Stop Loss on each trade.
      Can anyone tell me what am i doing wrong please?
      Here the link of the project: fxdreema/shared/w6nLHBNWc
      PD: Excuse my english...
      Thank you!!!!

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

        @lopezdiaz2510 said in Compilation Errors HELP!:

        w6nLHBNWc

        Heres the correct project shared link: https://fxdreema.com/shared/w6nLHBNWc

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

          @lopezdiaz2510
          If you have a variable input, you cannot use that checkmark thing.
          Also, I think Pips is not the correct input mode here, as your stop_loss variable is candle low - a level value - choose Custom (level) instead.
          0_1613425325873_fd2f433f-f067-464d-b99e-05937925b95b-image.png

          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

          L 1 Reply Last reply Reply Quote 0
          • L
            LopezDiaz2510 @roar last edited by

            Thank you so much @roar!!
            It worked such as you said.
            Problem solved, and thanks for the others advice i'll keep in mind.

            1 Reply Last reply Reply Quote 1
            • General Melchett
              General Melchett last edited by

              If anyone else has this problem: I found where the error was by exporting the mq4 file and searching through the code for the erroneous character. It was in an int constant, couldn't be seen in the web UI, but erased value, retyped it and was all ok after that.

              l'andorrà 1 Reply Last reply Reply Quote 0
              • l'andorrà
                l'andorrà @General Melchett last edited by

                @learningfx Thank you for sharing that info.

                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                Online Users

                J
                H
                E
                C

                12
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors