MQL4 Predefined Variable: Ask

Type

double

Description

The latest known seller's price (ask price) for the current symbol.

Requirements

The RefreshRates() function must be called to update the Ask price.

Related

  • _Point
  • _Symbol
  • Bid
  • Close
  • Digits
  • High
  • Low
  • Open
  • Point
  • Time
  • Volume
  • MarketInfo()
  • RefreshRates()
  • Example Snippet

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