Skip to content
All library documents

Designing a Multi-Chart Plotting Library for Trading Strategies

Article FMZ digest · Author: Ninabadass

Summary

The document explains how to extend a single-chart plotting utility into a library that manages multiple charts. It describes functions for creating candlestick and line series, adding horizontal lines and flags, changing chart titles, and retrieving chart configurations. Optional layout settings control a chart’s display arrangement and dimensions, while series names identify the data to update.

A sample strategy demonstrates plotting exchange candles and live ticker values across several charts, then adding annotations at specified times. The source also outlines configuration and series-index tracking, buffering, chart resets, and persistence so chart data can be restored after a restart. Example screenshots are mentioned as evidence that the interface can display multiple chart types together. The document is mainly a software design example, not a trading method: it gives no performance analysis, and the supplied implementation is partly omitted. It introduces the approach and notes that other visualizations could be added, but does not detail those extensions.

Key ideas

  • The library separates charts by configuration name and data series by series name.
  • Its functions support candles, lines, horizontal levels, titles, and flags.
  • Layout options let callers set chart placement and dimensions.
  • The example uses exchange market data to update several charts during a strategy loop.
  • Configuration and buffered series data can be persisted and restored.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.