Why EA is not open buy order when price was hit the set point? (EA Beginner)


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

void OnTick()

double PriceAsk = MarketInfo(Symbol(), MODE_ASK);
double PriceBid = MarketInfo(Symbol(), MODE_BID);
Comment(StringFormat("PriceAsk + %G\n",PriceAsk));

if ((PriceBid == 1.15758)||(PriceAsk == 1.15758)) {
else if ((PriceBid == 1.17334)||(PriceAsk == 1.17334)){
else if ((PriceBid == 1.18910)||(PriceAsk == 1.18910)){
else if ((PriceBid == 1.20486)||(PriceAsk == 1.20486)){
else if ((PriceBid == 1.22062)||(PriceAsk == 1.22062)){
else if ((PriceBid == 1.23638)||(PriceBid == 1.23638)){
EA.PNG  68 kb
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.