Sidechair

bid

Browse the reference

The best price a buyer is currently bidding, available only on tick charts in real time.

Try it in the editor

bid is a series float with the highest price at which someone is offering to buy, taken from the top of the order book. It is the price a market sell fills at, and ask is the matching sell side.

It exists only on the 1-tick timeframe. On every other timeframe, and on historical bars, it is na.

Type

series float

Remarks

  • The midpoint, (ask + bid) / 2, is a fairer estimate of value than the last trade when the spread is wide.
  • On Sidechair: not supported yet; a script that reads bid stops with the error "bid" isn't defined.

Example

Pine ScriptMidpoint of the bookOpen in editor
//@version=6
indicator("Book midpoint", overlay = true)
plot((ask + bid) / 2, "Mid", color.blue)
plot(close, "Last", color.gray)

See also

Not on Sidechair yet