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 trying to get the values of a custom indicator to use in an EA.
My problem is that I cannot get the same values inside my EA as the values in the Data Window of the Indicator.
In the attached picture you can see the values in the Data Window are different from the values that the EA is printing.
The code in the EA is below and is very simple. I used similar code in other EA's but never had this problem before.
Could someone tell me what I am doing wrong?
I attached the source of the Indicator I am using.
Cheers,
Eric.
Edit: In the picture I put a rectangle on the wrong line in the Terminal. I marked the 3rd line while I am talking about the first line. The idea is the same.
The price in the Data Window does not match the price in the EA.