thank you very much for your help 
Posts made by Eralcar
-
RE: Problem with variablesposted in Questions & Answers
Hi, I'm trying to create an EA that sells when the difference between 2 prices is greater or equal a certain value. I have created a double variable with value 0 and then I set a formula block that calculates the difference between the 2 relevant prices and stores the result in the initial variable. After this, the EA moves to a condition block that checks if the value in the variable is greater or equal a numeric value say 0.0010; in the condition block I've selected the function "Global variables" then I chose my varibale.
Then the EA moves to a Sell Now block if the conditions are met. The problem is that when I download this EA and put in Metatrader nothing happens, even if a choose a small control number like 0.0001. Can anyone help me with this problem?Thank you very much for your attention