Skip to content
StatePath
Tool Atlasmarket.quote

Tool

Market Quote

market.quote

MarketStructure

Inputs

No typed inputs.

Outputs

Bundle (untagged)

A bundle of per-bar quote numbers - OHLCV, bid/ask/spread, last, the composites, the change fields and the symbol metadata - that downstream tools read individually. Wire ask into a buy path and bid into a sell path, gate on spread, or size a position from point and tick value.

Live market data for the current, just-closed bar in one node: open, high, low, close and volume, the executable bid, ask and spread, the last price, handy composites (hl2, hlc3, ohlc4, weighted close), the bar's change, your symbol's contract details (point, digits, tick size and value, contract size) and the bar time. Tap any field to build a rule without adding another tool.

Market Quote overview diagramquote.highquote.askquote.bidquote.low

How it works

It reads the last completed bar straight from the market context. Following how MetaTrader prices a Forex/CFD bar, the bid is the close, the ask is the close plus the recorded spread converted to price (spread in points times the symbol's point), and the last price is the close. Composites are the usual averages of the bar's prices, the change fields compare the bar to the one before it, and the metadata fields report the instrument's contract specification. Because it only ever reads a closed bar it never repaints, so a backtest matches the live robot.

Connects to

Feeds into

Examples

  • Direction-aware entries: wire ask into the buy leg and bid into the sell leg so each side pays the correct half of the spread.
  • Spread guard: read spread and block new orders when it widens beyond your limit around news.

Common mistakes

  • Using close for both buy and sell fills instead of ask for buys and bid for sells, which quietly ignores the spread cost.
  • Reading spread as a price when it is quoted in points - multiply it by point to convert it to a price distance.
  • Wiring bar_time into a time input - it is the legacy twin leaf (num.quote.bar_time), so no time input accepts it. Use the typed time leaf instead; that is the one that carries the clock.

See also