MT5.BidAskSpread.Rd
This function is for obtaining the higher bid, the lower ask and the spread between them.
MT5.BidAskSpread(sSymbol)
sSymbol | character; target symbol. |
---|
Data.frame \([1x4]\) is returned, with follow informations:
sSymbol {character}
: symbol used.
fBid {numeric}
: higher bid.
fAsk {numeric}
: lower ask.
Spread {numeric}
: difference between lower ask and higher bid.
For same result, use MT5.BidAskBook()
and calculate the difference between the best bid and ask.
For Forex brokers this function will return an empty data.frame
.
https://www.investopedia.com/terms/o/order-book.asp