chart_state
What the deck's chart would show for one market, timeframe and window, as ONE JSON object computed in code: the bars (count, first and last, the last candle), the indicators drawn, the trader's own marked levels and zones (theirs — they may be used as levels the trader gave), the envelope under its draw gate and its facts, and the fact sheet of the window (open, close, high, low, range, change, volume, session). Use it instead of reading pixels: every number is measured, not read. Past windows only; at most 600 bars.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tf | Yes | timeframe | |
| to | Yes | window end, ISO-8601 UTC, in the past (the logical clock for a replay) | |
| from | Yes | window start, ISO-8601 UTC | |
| market | Yes | the market | |
| indicators | No | indicator ids to include, e.g. ["ema20","vwap","envelope"]; defaults to ema20 and envelope |