MQL4参考 预定义变量 Bid

double Bid

The latest known buyer's price (offer price, bid price) of the current symbol. The RefreshRates() function must be used to update.

Example:

  if(iRSI(NULL,0,14,PRICE_CLOSE,0)>75)
    {
     OrderSend("EURUSD",OP_SELL,Lots,Bid,3,NormalizeDouble(Ask+StopLoss*Point,Digits),NormalizeDouble(Bid-TakeProfit*Point,Digits),
               "My order #2",3,D'2005.10.10 12:30',Red);
     return(0);
    }

See also

MarketInfo()