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.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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