Why EA is not open buy order when price was hit the set point? (EA Beginner)
if ((PriceBid == 1.15758)||(PriceAsk == 1.15758)) {
Doubles are rarely equal. Understand the links in:
The == operand. - MQL4 programming forum #2 2013.06.07
Prices do not move by only one point.
Good Morning, I am the new one for EA coding. My expectation is "EA should open "ONLY BUY ORDER" when the graph was crossing the red line. My problem is "Sometime when the price was hit the red line, EA can open Buy Order. Buy, Sometime EA is not open buy when the price was hit the read line as you can see in the picture.
Please kindly help to solve this problem or explain the reason behind this problem. Thank you so much