Forum

Super simple example of EA and Technical Indicator... almost works what am I doing wrong

I am trying to understand how an EA gets data from a custom indicator . So I wrote a very simple example, but and I feel I understand it, but my EA says it get 16.1,0.0 but I am expecting 16.1,16.2. Where am I going wrong? Indicator code: input int TestInput; double test0[] = { 0 }; double test1[] =

How to get data from my technical indicator to my EA?

The documentation my MQL4 seems to not be very clear on this: how does my EA get data from my custom technical indicator? Is there an example? I have been making good progress writing my EA and writing my indicator, but I just completely hit a wall when it comes to the EA accessing the buy/sell