Add trading signal and execution layers with database integration
- Introduced `TradingSignalLayer` and `TradeExecutionLayer` for visualizing buy/sell signals and trade entries/exits on charts. - Implemented signal validation and filtering mechanisms to ensure data integrity and user-configurable options. - Enhanced market data layout to support new timeframes for improved user experience. - Updated documentation to reflect the new signal layer architecture and its integration with the dashboard. - Ensured compatibility with existing components while maintaining a modular structure for future enhancements.
This commit is contained in:
@@ -14,6 +14,8 @@ Components:
|
||||
- BollingerBandsLayer: Bollinger Bands overlay with fill area
|
||||
- RSILayer: RSI oscillator subplot
|
||||
- MACDLayer: MACD lines and histogram subplot
|
||||
- TradingSignalLayer: Buy/sell/hold signal markers
|
||||
- TradeExecutionLayer: Trade entry/exit point visualization
|
||||
"""
|
||||
|
||||
from .base import (
|
||||
@@ -47,6 +49,22 @@ from .subplots import (
|
||||
create_common_subplot_indicators
|
||||
)
|
||||
|
||||
from .signals import (
|
||||
BaseSignalLayer,
|
||||
SignalLayerConfig,
|
||||
TradingSignalLayer,
|
||||
BaseTradeLayer,
|
||||
TradeLayerConfig,
|
||||
TradeExecutionLayer,
|
||||
create_trading_signal_layer,
|
||||
create_buy_signals_only_layer,
|
||||
create_sell_signals_only_layer,
|
||||
create_high_confidence_signals_layer,
|
||||
create_trade_execution_layer,
|
||||
create_profitable_trades_only_layer,
|
||||
create_losing_trades_only_layer
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# Base layers
|
||||
'BaseChartLayer',
|
||||
@@ -68,6 +86,16 @@ __all__ = [
|
||||
'RSILayer',
|
||||
'MACDLayer',
|
||||
|
||||
# Signal layers
|
||||
'BaseSignalLayer',
|
||||
'SignalLayerConfig',
|
||||
'TradingSignalLayer',
|
||||
|
||||
# Trade layers
|
||||
'BaseTradeLayer',
|
||||
'TradeLayerConfig',
|
||||
'TradeExecutionLayer',
|
||||
|
||||
# Convenience functions
|
||||
'create_sma_layer',
|
||||
'create_ema_layer',
|
||||
@@ -76,7 +104,14 @@ __all__ = [
|
||||
'create_common_overlay_indicators',
|
||||
'create_rsi_layer',
|
||||
'create_macd_layer',
|
||||
'create_common_subplot_indicators'
|
||||
'create_common_subplot_indicators',
|
||||
'create_trading_signal_layer',
|
||||
'create_buy_signals_only_layer',
|
||||
'create_sell_signals_only_layer',
|
||||
'create_high_confidence_signals_layer',
|
||||
'create_trade_execution_layer',
|
||||
'create_profitable_trades_only_layer',
|
||||
'create_losing_trades_only_layer'
|
||||
]
|
||||
|
||||
__version__ = "0.1.0"
|
||||
|
||||
1009
components/charts/layers/signals.py
Normal file
1009
components/charts/layers/signals.py
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user