Skip to main content

Data Window

The Data Window module provides a comprehensive panel for viewing and analyzing raw market data. It displays historical price bars, tick data, and other market information in tabular format.

Key Features

  • Historical bar data display (OHLCV)
  • Real-time tick data streaming
  • Data export functionality (CSV, Excel)
  • Customizable column selection
  • Timeframe filtering
  • Data search and filtering

Architecture / Behavior

The Data Window module is implemented as a right sidebar panel that fetches historical data through the data feed's getBars method and subscribes to real-time updates via subscribeBars. It maintains internal state for the displayed data and uses the GlobalStore for data-related state management.

API Usage

Initialization

The Data Window module is enabled by default in the chart configuration:

const chart = Chart.create(document.getElementById('container'), {
// ... other options
enabled_features: ['data_window'], // Enable data window panel
});

Methods

The Data Window module automatically displays crosshair and bar data. It does not provide direct API methods for data retrieval, but supports:

  • Crosshair data display (automatically shown when cursor moves over chart)
  • Main series data (OHLCV values)
  • Compare series data
  • Indicator values
  • Real-time updates as data arrives

Configuration Options

OptionTypeDefaultDescription
enabled_featuresstring[]['data_window']Enable/disable the data window panel
data_window_columnsstring[]['time', 'open', 'high', 'low', 'close', 'volume']Columns to display in data window
data_window_max_rowsnumber1000Maximum number of rows to display

Events

The Data Window module emits events through the GlobalStore:

  • data_window:loaded - When historical data is loaded
  • data_window:updated - When new data is received
  • data_window:exported - When data is exported

Customization

  • Column display can be customized via data_window_columns option
  • UI styling can be customized via CSS classes
  • Data formatting can be customized using the data_format option

Use Cases

  • Detailed market data analysis
  • Algorithmic trading strategy development
  • Backtesting historical data
  • Data quality verification
  • Market microstructure analysis

Limitations

  • Requires data feed implementation of getBars, subscribeBars, and related methods
  • Limited to data supported by the connected data provider
  • No built-in data transformation or calculation capabilities

✅ Supported

  • Historical data display
  • Real-time data streaming
  • Data export functionality
  • Customizable column selection

❌ Not Supported

  • Advanced data manipulation (filtering, aggregation, calculations)
  • Multi-symbol comparison in data window
  • Data visualization within the data window

⚠️ Partial / Custom

  • Advanced data analysis features require custom implementation
  • Data import functionality requires custom implementation

Integration

This module should be linked from:

  • Charting section → Right Sidebar Panels
  • Advanced Features → Modules
  • API Reference → Data Feed Interface