MQL4 Bid Predefined Variable

Overview

  • **Type:** double
  • **Description:** The latest known buyer's price (offer price, bid price) of the current symbol.
  • **Update:** The RefreshRates() function must be used to update the bid price.
  • Related Functions

  • RefreshRates()
  • MarketInfo()
  • See Also

  • [Bars](/predefined/bars)
  • [Close](/predefined/close)
  • Example Snippet

    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);
    }