get_aligned_history
Align closed OHLCV bars from multiple TradingView charts by their exact UTC timestamps, reporting missing bars or resolution mismatches as quality conditions.
Instructions
Align closed OHLCV bars already loaded in two or more TradingView layout charts on their exact UTC timestamps. It never changes charts and never forward-fills; forming bars, different resolutions, missing bars, and retrieval failures are reported as quality conditions. Use a layout where each required market is already open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Closed bars to inspect per chart before alignment. Default: 200 | |
| chart_indexes | No | Charts to align. Default: every chart in the current layout; at least two are required | |
| max_missing_ratio | No | Block when the worst chart's timestamp-missing ratio exceeds this value. Default: 0.05 |