I would appreciate if anyone could help with an issue i've got :
Let's assume the following :
iOpen(Symbol(),0,1) == 231.11
Bid == 231.10
Therefore :
(iOpen(Symbol(),0,1) - Bid) should equal 0.01
When I try to make this expression :
if ((iOpen(Symbol(),0,1) - Bid) == Point) Alert ("Equal");
I don't get the alert.
The only things that make this work is if I write it like this :
if (NormalizeDouble( (iOpen(Symbol(),0,1) - Bid), Digits) == Point)
Alert ("Equal");
What I am assuming is when I deduct the open price from the bid, I'm probably getting a double which is presented as 0.0100000000000, while Point equals 0.01
In MQL4 does 0.01 not equal 0.010000000000
Do i have to normalize the expression before trying to check if equal ?
Let's assume the following :
iOpen(Symbol(),0,1) == 231.11
Bid == 231.10
Therefore :
(iOpen(Symbol(),0,1) - Bid) should equal 0.01
When I try to make this expression :
if ((iOpen(Symbol(),0,1) - Bid) == Point) Alert ("Equal");
I don't get the alert.
The only things that make this work is if I write it like this :
if (NormalizeDouble( (iOpen(Symbol(),0,1) - Bid), Digits) == Point)
Alert ("Equal");
What I am assuming is when I deduct the open price from the bid, I'm probably getting a double which is presented as 0.0100000000000, while Point equals 0.01
In MQL4 does 0.01 not equal 0.010000000000
Do i have to normalize the expression before trying to check if equal ?