how can I read data from custom indicators into an ea?

 

Hi, everyone,

Another newbie here :) I've been trying to write an ea based on the data, provided by an indicator, again written by me. Of course I can always add the same code that I've used in the indicator in the ea as well, but I'm really hoping there's a better way. I've seen functions that use basic indicators like moving average, but how does it work with custom indicators?

Thanks in advance :)

 
mesechka:

Hi, everyone,

Another newbie here :) I've been trying to write an ea based on the data, provided by an indicator, again written by me. Of course I can always add the same code that I've used in the indicator in the ea as well, but I'm really hoping there's a better way. I've seen functions that use basic indicators like moving average, but how does it work with custom indicators?

Thanks in advance :)

:) found what I was looking for. Should have looked harder before asking ;)

https://forum.mql4.com/10107

Reason: