Building Multi-Chart Strategy Displays Across Candle Intervals
Summary
This tutorial demonstrates how to add several synchronized charts to a trading strategy so that price series and indicators can be inspected across different candle intervals. Its example configures separate candlestick panels for hourly, 15-minute, and daily data, overlays two EMA lines on one panel, and places MACD lines on a separate vertical axis in another.
A plotter object retrieves the interval-specific records, calculates indicators, and tracks the last bar timestamp for each series. When a bar is still forming, it updates the existing chart point; when a new bar appears, it appends a point and updates the relevant indicators. The document walks through the chart setup and plotting loop and shows a backtest display. It is a visualization example rather than a trading method: it does not evaluate strategy returns, and its indicator parameters and platform-specific chart calls are illustrative implementation choices.
Key ideas
- Separate chart panels can display price data from multiple candle intervals at once.
- Indicator lines can be overlaid on price or assigned to a separate vertical axis.
- Tracking each interval’s latest bar timestamp allows the display to update an open bar or append a new one.
- The example recalculates EMA and MACD values as new records are plotted.
- The tutorial covers visualization plumbing and does not test whether the displayed indicators produce profitable signals.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.