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.
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.
The time stamps don't match!