Custom Block Not Working
-
Hi,
I've created a simple custom block in MQL4 and then placed it in a project but it doesn't seem to work:
-
figured it out but still have a question: in MQL4 Studio, it says in parameters box "drag parameters here". How do you do that?
-
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
-
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?
-
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
