fxDreema

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

    Custom Block Not Working

    Questions & Answers
    2
    5
    871
    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.
    • T
      Trader3487 last edited by

      Hi,

      I've created a simple custom block in MQL4 and then placed it in a project but it doesn't seem to work:

      https://fxdreema.com/shared/bCtVC3RWc

      1 Reply Last reply Reply Quote 0
      • T
        Trader3487 last edited by

        figured it out but still have a question: in MQL4 Studio, it says in parameters box "drag parameters here". How do you do that?

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

          This is when you have predefined parameters (the box below), in this case you only need to drag them from the lower box. Well, you probably don't have and to be honest, I don't recommend you to make some. I have many of these for the system blocks, but I found that I prefer to not use them anymore. This is how it looks for me: http://prntscr.com/4y5epf

          1 Reply Last reply Reply Quote 0
          • T
            Trader3487 last edited by

            thanks! and you said in a previous post that one should define the parameters in the "parameters used in block" box on the right instead of the main workspace but if I find it easier to right them directly into the main workspace instead of the parameters box, is that ok/will the program still work?

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

              You can always define local variables in the main code, they will appear in the output code of the block in it's own function. But these will not appear as input parameters in fxDreema 🙂

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

              Online Users

              T
              G
              E
              E
              A
              K
              M
              G
              C

              19
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors