MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Predefined variables  Bid

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
double Bid
The latest known buyer's price (offer price, bid price) of the current symbol. The RefreshRates() function must be used to update.
See also MarketInfo().
Sample:
  if(iRSI(NULL,0,14,PRICE_CLOSE,0)>75)
    {
     OrderSend("EURUSD",OP_SELL,Lots,Bid,3,Ask+StopLoss*Point,Bid-TakeProfit*Point,
               "My Order #2",3,D'2005.10.10 12:30',Red);
     return(0);
    }
 Bars Close