Skip to content
All library documents

Designing a Multi-Chart Plotting Library for Trading Strategies

Article FMZ forum · Author: Ninabadass

Summary

The document outlines a reusable plotting interface for strategy code that needs several charts at once. Its proposed functions create candlestick and line series, add horizontal levels and event flags, change chart titles, and return chart configurations. A chart name identifies each chart, while series names distinguish its data; optional layout settings control dimensions and display arrangement.

The implementation example shows how to feed market records and live ticker values into charts, retain series buffers, and restore chart state after a restart. It demonstrates combinations of candlesticks, lines, annotations, and multiple chart layouts, but provides no quantitative trading signal or performance evidence. The source is incomplete in the supplied text, and the examples depend on the platform’s chart API and persistence functions. The approach is therefore most useful as a design pattern for visualization infrastructure; additional chart types and platform-specific behavior would need to be implemented and checked separately.

Key ideas

  • A chart configuration name can group multiple data series in one chart.
  • Separate plotting functions can handle candles, lines, horizontal levels, titles, and flags.
  • Optional layout settings support charts with different sizes and display arrangements.
  • Buffered series data and persistent configuration can help rebuild charts after a restart.
  • The examples demonstrate visualization mechanics rather than a trading strategy or evidence of returns.

Tags

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