Just look for already existing EAs (there are so many) and study how it is done there!
It is faster and the learning effect is a lot better!
stefanocandido: I've read that i should use the iCustom function
Just get the value of the indicator into the EA and do what you want with it.
You should encapsulate your
iCustom calls to make your code self-documenting.
Detailed explanation of iCustom - MQL4 and MetaTrader 4 - MQL4 programming forum

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
Hi, I am approaching this programming language for the first time.
I currently have an indicator that generates very reliable arrows. I would like to create a strategy that can intercept these arrows.
The indicator uses buffer 0 to buy and 1 to sell. I've read that i should use the iCustom function
Can you explain to me how to write a simple code that when an arrow occurs it will produce a alert?
Thanks!