fxDreema

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

    New options

    Questions & Answers
    3
    7
    187
    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.
    • D
      Dr.Amiin last edited by

      Hi,

      I really appreciate the great work you've done with FXDreema — it's an excellent platform for developing EAs visually.

      I’d like to suggest a useful feature that would greatly enhance flexibility for advanced users: the ability to add custom preprocessor directives directly within the platform, such as:

      • #property (for defining EA or indicator properties)
      • #include (to include external .mqh libraries)
      • #resource (for embedding images, sounds, etc., for example uploading an image and using it in the Draw Image block)

      These directives are essential when trying to expand or integrate advanced MQL5 features into FXDreema-generated code. Currently, there doesn’t seem to be a way to inject these lines at the top of the generated .mq5 file from within the platform.

      Even a simple text box in the project settings that allows users to insert custom lines before OnInit() / OnTick() would already be extremely useful.

      Additionally, it would be very helpful to have support for defining custom functions (e.g. user-defined void functions) directly within FXDreema, so they can be reused across blocks and called from different parts of the logic. This would significantly improve code organization, readability, and scalability for larger projects.

      Would you consider adding these options in a future update?

      Thank you again for your continuous support and for creating such a great tool!

      Best regards

      @fxDreema
      @jstap
      @l-andorrà

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

        This is true, a lot of this you can use/add in a custom block creation.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        D 1 Reply Last reply Reply Quote 0
        • D
          Dr.Amiin @jstap last edited by

          @jstap That’s true — custom blocks are very useful for logic.

          However, some things cannot be done with custom blocks:

          • #resource must be declared at the global preprocessor level, so it can’t be used or defined via custom blocks (which means images/sounds can’t be embedded this way).
          • Custom blocks also can’t define true reusable void (or other) functions — they only generate inline code.
          • The same limitation applies to #property and #include, which must appear at the very top of the .mq5 file.

          So while custom blocks cover many cases, they don’t replace proper support for preprocessor directives or custom function definitions.

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

            No they don't, in line is what is used in custom code. Creating a custom block can use custom functions, global variables, includes etc. You can see some in this picture:

            msedge_moYINY9sXT.png

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

            D 1 Reply Last reply Reply Quote 0
            • D
              Dr.Amiin @jstap last edited by

              @jstap

              What I mean is that there is no dedicated feature to define a standalone void function once and then simply call it anywhere in the code.

              In practice, especially in Custom Code blocks, logic has to be inlined or tied to block-generated code. There’s no clean, user-controlled place to define reusable functions.

              And if you want to add things like #resource, #include, or other preprocessor directives, there’s also no guaranteed global header section where these can be safely defined and managed.

              That’s the limitation I’m referring to.

              l'andorrà 1 Reply Last reply Reply Quote 0
              • jstap
                jstap last edited by

                That is why I said I agree, I don't think admin will add to the current block setup, so creating a block is the only possible way for now.

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

                1 Reply Last reply Reply Quote 0
                • l'andorrà
                  l'andorrà @Dr.Amiin last edited by

                  @Dr-Amiin You can try to contact the admin directly and let him know. I agree with jstap. I'm not optimistic on the admin making any changes like that on the custom block area of the platform, but hey, you never know.

                  (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

                  L
                  K
                  H
                  N

                  13
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors