Indicators
sessionSequences
Extract and plot bounded regimes once after a completed memory replay
sessionSequences (all)
Extract and plot bounded regimes once after a completed memory replay
Input parameters
| Prop | Type | Default | Description |
|---|---|---|---|
| id | string | flow | Session sequence instance id |
| maxLarge | number | 2 | Adaptive large-regime cap (1–2) |
| maxSmall | number | 4 | Adaptive small-regime cap (1–4) |
| smallSeconds | number | 60 | Small-scale aggregation seconds |
| largeSeconds | number | 300 | Large-scale aggregation seconds |
| minSmallSeconds | number | 180 | Minimum duration of additional small regimes |
| minLargeSeconds | number | 900 | Minimum duration of additional large regimes |
| splitPenalty | number | 0.15 | Penalty for extra regimes; higher values make fewer splits |
| volumeWeight | number | 0.25 | Observed volume-rate contribution to segmentation |
| volatilityWeight | number | 0.25 | Price-change contribution to segmentation |
| maxSamples | number | 2048 | Per-scale sample limit (3–4096); increase cadence for long replays |
| timeContext | boolean | true | Attach timezone-aware regional participation-window labels (heuristics, not exchange schedules) |
| plot | boolean | true | Plot both regime scales at memory completion |
| plotPadding | number | 3 | Small-track y = close + padding, in price units |
| plotLargePadding | number | 6 | Large-track y = close + padding, in price units |
| plotWidth | number | 3 | Regime plot line width |
SQL example
IF sessionSequences id="flow" maxLarge=2 maxSmall=4 plot=true plotPadding=3 plotLargePadding=6