3.9 Enhance chart functionality with indicator management and data export features

- Updated `ChartBuilder` to support dynamic indicator integration, allowing users to specify overlay and subplot indicators for enhanced chart analysis.
- Implemented a new `get_indicator_data` method in `MarketDataIntegrator` for fetching indicator data based on user configurations.
- Added `create_export_controls` in `chart_controls.py` to facilitate data export options (CSV/JSON) for user analysis.
- Enhanced error handling and logging throughout the chart and data analysis processes to improve reliability and user feedback.
- Updated documentation to reflect new features and usage guidelines for indicator management and data export functionalities.
This commit is contained in:
Vasily.onl
2025-06-06 12:57:35 +08:00
parent 8572a7a387
commit c121b469f0
10 changed files with 512 additions and 654 deletions

View File

@@ -10,7 +10,8 @@ from components.charts.indicator_manager import get_indicator_manager
from components.charts.indicator_defaults import ensure_default_indicators
from dashboard.components.chart_controls import (
create_chart_config_panel,
create_time_range_controls
create_time_range_controls,
create_export_controls
)
logger = get_logger("default_logger")
@@ -80,6 +81,7 @@ def get_market_data_layout():
# Create components using the new modular functions
chart_config_panel = create_chart_config_panel(strategy_options, overlay_options, subplot_options)
time_range_controls = create_time_range_controls()
export_controls = create_export_controls()
return html.Div([
# Title and basic controls
@@ -115,9 +117,15 @@ def get_market_data_layout():
# Time Range Controls (positioned under indicators, next to chart)
time_range_controls,
# Export Controls
export_controls,
# Chart
dcc.Graph(id='price-chart'),
# Hidden store for chart data
dcc.Store(id='chart-data-store'),
# Enhanced Market statistics with integrated data analysis
html.Div(id='market-stats', style={'margin-top': '20px'})
])