gerryha: Where am I going wrong?
You haven't stated how many buffers your indicator has.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
William Roeder:
There are two - see in the code? Are you saying there is some kind of declaration required to declare how many buffers there are?
You haven't stated how many buffers your indicator has.
gerryha:
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.
Keith Watford:
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
gerryha:
There are two - see in the code? Are you saying there is some kind of declaration required to declare how many buffers there are?
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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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