I need some examples for Custom Blocks
-
Hello Everyone,
As a long-term mql coder, I have quite an experience coding in MT platfrom and I find fxdreema extremely useful.
In my opinion, Custom Blocks could be very helpful for people like me. However there's a very limited know-how and examples about it (I Googled a lot and also reviewed relevant topics in this forum)
I'd like to start with a very basic question and maybe we can proceed from here.
Let's say I'd like to create the exact "condition" block as a custom block with the same parameters and functionality. Could somebody please show me how to do it?
Thanks in advance,

-
I'm not the guy you need, but I find this topic very interesting, because maybe I would consider the possibility of hiring your services to build some custom blocks for me.

-
@l-andorrĂ Once I get the grasp of the basics, I'm quite certain that I can build many Custom Blocks.
off topic: I'm aware of your videos on fxDreema and the services you provide for quite some time. I really appreciate your work.
It's a pleasure for me to see your response in my post.

-
Information on building custom blocks is limited but can be handy. Hope this helps, this is all I have sent from @fxDreema, you can add code here that you can't add to custom code.
Blocks doesn't output information outside. Even those that are able to modify variables for example (Formula, Modify Variables), this functionality is hardcoded only for them. See how their code looks like in the Studio:


The settings on the right side (Parameters used in block) are the input parameters of the block. This is true for all blocks, but In these two cases there is a little bit of hidden magic happening. -
@jstap Thank you very much for the quick response. At least an online index is needed for Custom Blocks which lists those reserved keywords like:
~next~
~inext~
~datatype
etc.or some explanation about:
using variables
referencing functions
output functionality
etc.I believe Studio is can be a very handy tool but then again too little info about how to properly use it. I'll head back to my original post now.
I'd appreciate very much if someone can show us how to create a "condition" block that already exists in fxDreema as a Custom Block with the exact same parameters and functionality.
-
@ElvisTR You're welcome, man.
