MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Predefined variables  Ask

 
double Ask
The latest known seller's price (ask price) for the current symbol. The RefreshRates() function must be used to update.
See also MarketInfo().
Sample:
  if(iRSI(NULL,0,14,PRICE_CLOSE,0)<25)
    {
     OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-StopLoss*Point,Ask+TakeProfit*Point,
               "My order #2",3,D'2005.10.10 12:30',Red);
     return;
    }