Query Market Memory
query_market_memoryAsk candle memory what happened after an event, and how that compares with ordinary windows. The question can be in any language: map it onto one event (move: close-to-close percent over N bars; excursion: a fall or rise inside N bars, recovered or not, which is what a trader usually means by 'fell 5%'; volume_spike; compression: a tight range; new_extreme: a new N-bar high or low; timestamps: dates the user names; level: a break or a test of support or resistance the engine finds itself without lookahead, a swing high or low, the previous day's or week's high or low, or a round number, where result.level counts how often the level failed within failWithinBars), optional context (UTC session or hours, weekday or weekend, volatility regime, above or below a moving average, event volume, distance from the high) and horizonBars. Convert days to bars for the interval yourself (30 days on 4h is 180 bars). Returns counts, outcome and baseline with 95% intervals, a split by era (or session, regime, trend), shape groups when groupBy is shape, dated episodes with chart links, a picture without words, and verdict flags. Answer in the user's language. Translate the rule, tags and legend; keep numbers as returned. Quote the event count, the baseline count and both outcomes side by side. Show picture.terminal in a code block unchanged, then the legend in the user's language. Say every verdict flag in words. Quote NO_TRADE verbatim. Never name a side or a size. Do not compute a statistic the result does not contain. Ask the engine instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"event": "<event>"
},
"name": "query_market_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | UTC date, inclusive. | |
| draw | No | median: the median form of all events. episodes: small charts of the first listed events. | median |
| from | No | UTC date, inclusive. Default: all stored history. | |
| event | Yes | ||
| symbol | No | BTCUSDT | |
| context | No | ||
| groupBy | No | shape clusters the events by the form of the bars before them, 2 to 4 groups, each with its own outcome. | none |
| splitBy | No | Second table: the same outcome split by this. era is on by default so a result that only held in one period shows. | era |
| episodes | No | How many individual events to list with dates and links. | |
| interval | No | 1h | |
| horizonBars | No | Bars after the event whose path is reported. | |
| episodeOrder | No | recent | |
| lookbackBars | No | Baseline for volume and range ratios. |