Is MT4 having problems with String Symbols?

 
I am trying to get my EA, which runs on the Euro 5M chart, to read indicators from the GBP 60M chart. Specifically, I am using the Demarker indicator. When it is above 0.60 I am buying. But I am seeing that even when it is below 0.60 my EA is still buying. Is there a bug? Must be, I would think. Any input is greatly appreciated. Thanks and take care.

Matt
 
Have you tried to print the value which you are getting from there so see based on which figure your expert is making the decision?


Markus
 
Markus,

I did not know you could even do such a thing! Could you tell me how to do this? Thanks.

Matt
 
Just add
Print("Value ", somevalue);

(with the respective variables of course) to your program. The output will then appear on the Experts tab in the Terminal pane (if you're running real time) or on the Journal tab in the Testers pane (if you're backtesting).

This way you can output values at various points in your program to see what they are and to follow the control flow through your program.


Markus