Only the buy position opens

 
Only the purchase position opens

Can you help?

thank you all


void OnTick() {

  if (Bid > High[1])  {
  
  OrderSend(Symbol(),OP_BUY,1,Ask,0,Bid+40,0);
   ;
  
  }
  
  if  (Bid < Low[1]) {
  
  OrderSend(Symbol(),OP_SELL,1,Bid,0,Ask+40,0);
 ;
  
  }
}


 
  1. When you post code please use the CODE button (Alt-S)! (For large amounts of code, attach it.) Please edit your post.
              General rules and best pratices of the Forum. - General - MQL5 programming forum
              Messages Editor

  2. Check your return codes for errors, report them and you would know why. Don't just silence the compiler, it is trying to help you.
              What are Function return values ? How do I use them ? - MQL4 and MetaTrader 4 - MQL4 programming forum
              Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
    Only those functions that return a value (e.g. iClose, MarketInfo, etc.) must you call ResetLastError before in order to check after.

Reason: