draho wrote:
Hello,
Can anybody tell me how to write a EA code based on Indicator code?
I have spent several hours however I am not getting the same numbers.........
iBuff01[0] is the value which needs to be calculated for each tick and compared to another value.
I would appreciate any help.
Thank you.
I think you may be looking for the iCustom function. That function allows a MQL4 program to retrieve values from another MQL4 indicator. By using that you do not have to replicate the indicator code in the EA, rather you just need to remember to take the referenced indicator file along with the EA and time you copy the EA to another computer.

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
Hello,
Can anybody tell me how to write a EA code based on Indicator code?
I have spent several hours however I am not getting the same numbers.........
iBuff01[0] is the value which needs to be calculated for each tick and compared to another value.
I would appreciate any help.
Thank you.