@mndiarra said in How to do include in "Custom MQL code" ?:
Is there any workaround for that ? Thanks in advance for your help.
You can try to make a custom block here https://fxdreema.com/studio/MQL4
Here is some example of the things you can add in the code of the block to make it functional:

Think of the ~Indicator~ thing as the value from the parameter Indicator (look at the right where the parameters are).
~datatype:Indicator~ is obviously there to deal with the different data types, but this is only needed in very few blocks like this one, you probably don't need this.
Think of ~next~ as the orange output. ~inext~ is for the yellow output (the "i" probably means inverted). To have a gray output, which is normally to indicate that there is an error, try ~error~.
Imports and such stuff is to be put below on the other code field at the bottom. But better don't put very fancy code.





