Designing a Reusable Library for Multiple Strategy Charts
Summary
This document describes the design of a reusable plotting library for strategies that need several charts. Its proposed interface supports candlestick records, time-series points, horizontal reference lines, titles, and event flags, with per-chart configuration for layout and dimensions. A test routine illustrates creating separate chart panels, adding series and annotations, and updating them as market data arrives.
The implementation tracks chart and series indexes, buffers line and flag data, updates chart configurations, and stores configuration state for recovery across restarts. A sample run is described as displaying multiple charts with concise function calls. The article is primarily about strategy visualization and platform-specific library design; it does not present a trading method or quantitative evidence about signals. The source shown is incomplete, and the author suggests extending the library to additional chart types, so behavior beyond the demonstrated features is not established.
Key ideas
- A multi-chart library can group candlesticks, lines, horizontal levels, titles, and flags by chart name.
- Per-chart settings can control layout and dimensions.
- The design maintains indexes linking chart series to their plotted data.
- Buffered line and flag data can be replayed when chart state is restored.
- The example demonstrates visualization features rather than a trading strategy or signal evaluation.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.