Super simple example of EA and Technical Indicator... almost works what am I doing wrong
You haven't stated how many buffers your indicator has.
You haven't stated how many buffers your indicator has.
Seriously, where is this MT4 section? If I got to mql4.com it just redirects me to mql5, can you provide a link?
Click on forum at the top of the page, you will see a list of all the sections and the most recent posts.
This topic is in the correct section now.
There are two - see in the code? Are you saying there is some kind of declaration required to declare how many buffers there are?
I see! I added the following line at the top and now it works.
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:
The 0 is buffer 0 and 1 is buffer 1, which contain 16.1 and 16.2.And the EA:
What's wrong with this?
Thanks