adding custom indicator code inside EA code
-
Hi, does anyone know if it is possible to imbed the code of an custom indicator directly into the code of the EA, either directly inside fxdreema or inside the mq4/5 code in metaeditor. In the case of the latter, does anyone know where to paste the indicator code?
I would like to make it so that the custom indicator is not needed in the indicator folder on the users pc.
I did find an old thread here on the forum, but no solutions were given..
-
@piptheripper This is a good question, I assume if it is put into custom code block it can work, knowing what parts are needed is the problem. generally though as wrong as correct information is put in the buffer it can work
-
@piptheripper I remember someone asked exactly the same some years ago and the answer is that, yes, in effect, you can do it, but then you need to be very careful no to conflict any used block. Many blocks, especially arrays, are 'searching' for info from other parts of the code and unless you know what toy are doing, that can be a mess. In short, you can do it, but be very careful.
-
@l-andorrà ok, thanks for your answer! If I find a solution I will share it here:)
-
@piptheripper Hi, on mql5.com there are some documentation
https://www.mql5.com/en/articles/1456
https://www.mql5.com/en/articles/1457
https://www.mql5.com/en/articles/1463
and many others. -
@ambrogio great, thanks!