Chart Layout Manager
The Chart Layout Manager enables traders to save, auto-sync, duplicate, rename, share, and quickly switch between customized charting workspaces. Layout templates seamlessly preserve indicators, drawings, intervals, candle styles, and scale preferences across trading sessions.
Ctrl + S
Instant layout save shortcut
Every 10 Seconds
Smart change detection loop
Hotkey: . (Dot)
Quick layout switch palette
5 Free / Unlimited Pro
Expandable workspace slots
Layout Manager Overview
The Layout Popup is a responsive toolbar dropdown anchored directly next to the multi-chart layout grid selector in the top navigation bar. It displays the currently active workspace name (defaulting to Unnamed or the last loaded layout stored in cl_active_layout_name) and gives one-click access to all layout lifecycle operations.
Every layout record persists the active symbol, timeframe resolution, chart style (Candlestick, Renko, Heikin Ashi, etc.), all indicator overlays & oscillators with input parameters, all vector drawing objects and coordinates, and custom visual styling settings.
Click on the Layout Name button or dropdown chevron in the top bar. You can also press Ctrl + S to save directly or press . (Dot) to open the layout search modal.
Save Layout & Keyboard Shortcuts
Clicking Save layout or pressing the global hotkey Ctrl + S serializes the entire current chart state and writes it directly to your saved layout library.
When a layout is saved manually, a visual cloud save indicator pulses in the toolbar and a toast alert confirms: "Layout <Name> saved successfully".
If the trader is currently in historical bar replay mode, saving is paused and a safety modal (ReplayLayoutAlertPopup) alerts the user to exit replay mode first to avoid overwriting live chart timestamps.
Autosave & Background Sync
The layout manager includes an integrated Autosave switch toggling the cl_layout_autosave preference. When enabled, BacktestX runs a non-blocking background heartbeat every 10 seconds to automatically preserve work-in-progress modifications.
Intelligent State Hashing (Zero-Lag Optimization)
To avoid unnecessary storage writes, disk wear, and canvas redraw pauses, the autosave engine computes a composite state key:
${name}_${symbol}_${interval}_${chartType}_${drawings.length}_${indicators.length}_${settings.length}.
If no new drawing objects, indicator changes, or symbol transitions have occurred since the last cycle, the heartbeat skips quietly with zero performance impact.
Make a Copy & Rename Workspaces
Quickly duplicate existing trading templates for different asset classes or strategies without rebuilding indicators and style preferences from scratch.
Opens SaveLayoutPopup prefilled with ${layoutName} (Copy). Verifies plan limits, clones all indicators, drawings, and interval settings, and registers the duplicate under a new distinct workspace key.
Opens RenameLayoutPopup allowing users to update the active workspace label. Re-indexes the layout and updates the top navigation title immediately.
Recently Used Layouts
The layout dropdown features a dedicated RECENTLY USED section displaying the top 3 most recently opened or saved layouts sorted descending by timestamp.
Clicking any recent layout automatically loads its symbol, timeframe, indicators, drawings, and visual options into the viewport while invalidating stale rendering caches.
Open Layout Modal & Hotkey
Selecting Open layout... or typing the single hotkey . (Dot) opens the full-screen layout manager dialog.
Filter through saved templates instantly with real-time text matching across layout names, tickers, and intervals.
Rename layouts inline or permanently delete outdated templates using the trash can trigger with DeleteLayoutPopup confirmation.
Click any layout row to immediately restore the active canvas view, drawing stack, and indicators without page reloads.
Download Chart Data (Table View)
Clicking Download chart data... connects directly to the chart widget's Table View engine (tableview.js).
Interactive Data Table & Export Formats
The Table View displays the full active OHLCV bar series in an interactive grid:
- Timestamp: Formatted ISO date and local time for every candle.
- Open, High, Low, Close: Precision-formatted price coordinates snapped to decimal rules.
- Volume: Total trading volume recorded for the period.
- Export triggers: Export directly to CSV (for Excel/Python analysis) or JSON formats with one click.