Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -0,0 +1,259 @@
|
||||
# Changelog
|
||||
|
||||
Tutte le modifiche significative a TradingBot sono documentate qui.
|
||||
|
||||
Formato basato su [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), segue [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
---
|
||||
|
||||
## [1.5.2] - 2024-12-22
|
||||
|
||||
### Added
|
||||
- **Detailed Capital Metrics in Sidebar**: Portfolio Summary espansa con metriche complete
|
||||
- Capitale Totale: Somma di disponibile + investito
|
||||
- Capitale Investito: Valore posizioni aperte correnti
|
||||
- Capitale Disponibile: Cash disponibile per trading
|
||||
- P&L Corrente: Profitto/perdita non realizzato sulle posizioni aperte
|
||||
- ROI: Return on Investment percentuale sul capitale iniziale
|
||||
- **Real-time Updates**: Metriche aggiornate automaticamente
|
||||
- Su ogni cambio di prezzo
|
||||
- Su ogni trade eseguito
|
||||
- Su ogni cambio di status
|
||||
|
||||
### Changed
|
||||
- Portfolio Summary sidebar completamente ridisegnata
|
||||
- Color-coding per metriche (verde=profit, rosso=loss, arancio=investito, blu=disponibile)
|
||||
- Calcolo ROI basato su capitale iniziale + P&L realizzato e non realizzato
|
||||
|
||||
### Technical
|
||||
- Event-driven updates su OnPriceUpdated, OnTradeExecuted, OnStatusChanged
|
||||
- Separazione chiara tra capitale investito e disponibile
|
||||
- P&L calculation: (Current Value - Entry Value) per posizioni aperte
|
||||
|
||||
---
|
||||
|
||||
## [1.5.1] - 2024-12-22
|
||||
|
||||
### Added
|
||||
- **Positions Management Page**: Pagina dedicata gestione posizioni aperte
|
||||
- Visualizzazione completa posizioni attive
|
||||
- Real-time P&L unrealized calculation
|
||||
- Manual close position functionality
|
||||
- Confirmation modal con dettagli completi
|
||||
- Header statistics (Active positions, Total value, Total P&L)
|
||||
- Empty state quando nessuna posizione aperta
|
||||
- Success notifications
|
||||
- **ClosePositionManuallyAsync**: Metodo pubblico TradingBotService
|
||||
- Close manual positions via API
|
||||
- Safety checks (bot running, position exists)
|
||||
- Automatic logging
|
||||
|
||||
### Changed
|
||||
- MainLayout navigation menu aggiornato con link Positions
|
||||
- Version display aggiornata a v1.5.1
|
||||
|
||||
### Technical
|
||||
- Event-driven updates per real-time P&L
|
||||
- Position cards con holding time formattato
|
||||
- Color-coded P&L (green=profit, red=loss)
|
||||
- Modal confirmation per sicurezza
|
||||
- No manual opening - solo chiusura
|
||||
|
||||
---
|
||||
|
||||
## [1.5.0] - 2024-12-22
|
||||
|
||||
### Added
|
||||
- **Multi-Strategy Trading System**: Sistema completo di gestione strategie multiple per asset
|
||||
- 8 strategie di trading famose implementate
|
||||
- Assignment multiplo strategie per asset
|
||||
- Sistema di voting per decisioni aggregate
|
||||
- Trading Control page dedicata
|
||||
- **Trading Strategies**: 8 strategie professionali preimpostate
|
||||
- RSI Strategy (Oscillator - Medium risk)
|
||||
- MACD Strategy (Momentum - Medium risk)
|
||||
- Bollinger Bands (Volatility - Low risk)
|
||||
- Mean Reversion (Contrarian - High risk)
|
||||
- Momentum (Trend Following - Medium risk)
|
||||
- EMA Crossover / Golden Cross (Trend - Low risk)
|
||||
- Scalping (Short-term - Very High risk)
|
||||
- Breakout (Volatility - High risk)
|
||||
- **TradingStrategiesService**: Gestione centralizzata strategie
|
||||
- Strategy registry con metadata
|
||||
- Asset-strategy mapping
|
||||
- Decision aggregation con voting
|
||||
- Persistence delle configurazioni
|
||||
- **Trading Control Page**: Interfaccia gestione strategie
|
||||
- Grid asset con stato real-time
|
||||
- Strategy selector modal per category
|
||||
- Visualizzazione decisioni aggregate
|
||||
- Risk e timeframe indicators
|
||||
- **Version Display**: Versione applicazione visibile in sidebar footer
|
||||
- Version number (v1.5.0)
|
||||
- Build date
|
||||
|
||||
### Changed
|
||||
- TradingBotService integrato con TradingStrategiesService
|
||||
- MainLayout aggiornato con link Trading Control
|
||||
- Navigation menu riorganizzato
|
||||
|
||||
### Technical
|
||||
- 8 strategy implementations (ITradingStrategy interface)
|
||||
- Voting algorithm: 60% consensus threshold
|
||||
- Strategy metadata: Category, Risk Level, Timeframe
|
||||
- Persistence: `strategy-mappings.json`
|
||||
- Confidence-based decision making
|
||||
|
||||
---
|
||||
|
||||
## [1.4.0] - 2024-12-22
|
||||
|
||||
### Added
|
||||
- **Indicators System**: Sistema completo di indicatori tecnici configurabili
|
||||
- 7 indicatori predefiniti: RSI, MACD, SMA (20/50), EMA 12, Bollinger Bands, Stochastic
|
||||
- Configurazione parametri per ogni indicatore
|
||||
- Abilitazione/disabilitazione selettiva indicatori
|
||||
- Soglie personalizzabili (ipercomprato/ipervenduto)
|
||||
- **Indicators Page**: Interfaccia dedicata gestione indicatori
|
||||
- Configurazione real-time di tutti i parametri
|
||||
- Status live per ogni asset attivo
|
||||
- Visualizzazione condizioni mercato
|
||||
- Raccomandazioni basate su indicatori
|
||||
- **Indicator Signals**: Sistema di segnali trading
|
||||
- Segnali BUY/SELL/HOLD con strength rating
|
||||
- Storia ultimi 100 segnali generati
|
||||
- Filtro segnali per symbol
|
||||
- Notifiche real-time nuovi segnali
|
||||
- **Trading Recommendations**: Raccomandazioni aggregate
|
||||
- Analisi multi-indicatore per ogni asset
|
||||
- Livello di confidenza basato su consenso
|
||||
- Lista indicatori di supporto
|
||||
- Azioni consigliate (BUY/SELL/HOLD)
|
||||
- **Indicator Models**: Nuovi modelli dati
|
||||
- IndicatorConfig - Configurazione indicatore
|
||||
- IndicatorSignal - Segnale trading
|
||||
- IndicatorStatus - Status per asset
|
||||
- TradingRecommendation - Raccomandazione trading
|
||||
|
||||
### Changed
|
||||
- MainLayout aggiornato con link Indicators
|
||||
- IndicatorsService registrato come singleton
|
||||
- Configurazione indicatori persistita in `indicators-config.json`
|
||||
|
||||
### Technical
|
||||
- Persistenza configurazione indicatori in `/app/data`
|
||||
- Event-driven updates per UI real-time
|
||||
- Supporto 8 tipi di indicatori (RSI, MACD, SMA, EMA, BB, Stochastic, Volume, ATR)
|
||||
- Market conditions: Overbought, Oversold, Bullish, Bearish, Neutral, Ranging, Trending
|
||||
|
||||
---
|
||||
|
||||
## [1.3.0] - 2024-12-21
|
||||
|
||||
### Added
|
||||
- **Logs Page**: Comprehensive logging system with real-time monitoring
|
||||
- Real-time log updates with auto-scroll
|
||||
- Advanced filtering (Level, Category, Symbol)
|
||||
- Color-coded log levels (Debug, Info, Warning, Error, Trade)
|
||||
- Trade-specific logs with detailed information
|
||||
- 500 log entries buffer with automatic rotation
|
||||
- Clear logs functionality
|
||||
- **LoggingService**: Centralized logging management
|
||||
- Structured log entries with timestamps
|
||||
- Category and symbol-based filtering
|
||||
- Event-driven updates for real-time UI
|
||||
- **Enhanced TradingBotService**: Integrated logging
|
||||
- Bot lifecycle events (start/stop)
|
||||
- Trade execution logs (buy/sell)
|
||||
- Detailed trade information in logs
|
||||
|
||||
### Changed
|
||||
- MainLayout updated with Logs navigation item
|
||||
- TradingBotService now logs all major operations
|
||||
|
||||
---
|
||||
|
||||
## [1.2.0] - 2024-12-21
|
||||
|
||||
### Added
|
||||
- **Trade Persistence**: Complete persistence system for trade history and active positions
|
||||
- TradeHistoryService for JSON-based data storage
|
||||
- Automatic save every 30 seconds
|
||||
- Immediate save after each trade execution
|
||||
- Automatic data restore on application startup
|
||||
- **Data Management UI**: Settings page section for persistent data management
|
||||
- View trade count and data size
|
||||
- View active positions count
|
||||
- Clear all data functionality with confirmation modal
|
||||
- **Graceful Shutdown**: TradingBotBackgroundService for data persistence on application exit
|
||||
- Automatic save on container stop/restart
|
||||
- No data loss on unexpected shutdowns
|
||||
|
||||
### Changed
|
||||
- TradingBotService now integrates with TradeHistoryService
|
||||
- Buy/Sell methods are now async to support immediate persistence
|
||||
- Settings page enhanced with data management section
|
||||
|
||||
### Technical
|
||||
- Data stored in `/app/data` directory
|
||||
- JSON format for human-readable persistence
|
||||
- Compatible with Docker volume mapping
|
||||
- Background service registered as IHostedService
|
||||
|
||||
---
|
||||
|
||||
## [1.1.0] - 2024-12-17
|
||||
|
||||
### Added
|
||||
- **Automated Deployment**: MSBuild post-build per push automatico su Gitea Registry
|
||||
- **Multiple Docker Tags**: latest, version, version-date per ogni release
|
||||
- **Versioning System**: Script PowerShell `bump-version.ps1` per gestione versioni
|
||||
- **Unraid Support**: Template XML per installazione 1-click
|
||||
- **Documentation**: Guide complete per deployment e versioning
|
||||
|
||||
### Changed
|
||||
- Riorganizzata struttura progetto (`/deployment`, `/docs`)
|
||||
- Default WebUI port cambiato da 8080 a 8888
|
||||
- Health check timing aumentato a 40s per startup Blazor
|
||||
|
||||
### Fixed
|
||||
- WebUI icon non visibile in Unraid Docker tab
|
||||
- Port mapping non configurabile in template
|
||||
- Template URL path corretto
|
||||
|
||||
---
|
||||
|
||||
## [1.0.0] - 2024-12-15
|
||||
|
||||
### Added
|
||||
- **Initial Release** di TradingBot
|
||||
- Blazor Server UI con dashboard real-time
|
||||
- Simple Moving Average (SMA) trading strategy
|
||||
- 15 criptovalute supportate
|
||||
- Simulazione market data per testing
|
||||
- Trade history e statistics
|
||||
- Settings persistenti via JSON
|
||||
- Indicatori tecnici: SMA, EMA, RSI, MACD, Bollinger Bands
|
||||
- Docker support con multi-stage build
|
||||
- Health checks integrati
|
||||
|
||||
---
|
||||
|
||||
## Version Legend
|
||||
|
||||
- **Added**: Nuove features
|
||||
- **Changed**: Modifiche a funzionalità esistenti
|
||||
- **Deprecated**: Features da rimuovere
|
||||
- **Removed**: Features rimosse
|
||||
- **Fixed**: Bug fixes
|
||||
- **Security**: Security fixes
|
||||
- **Technical**: Miglioramenti tecnici e infrastrutturali
|
||||
|
||||
---
|
||||
|
||||
[1.5.0]: https://gitea.encke-hake.ts.net/Alby96/Encelado/compare/v1.4.0...v1.5.0
|
||||
[1.4.0]: https://gitea.encke-hake.ts.net/Alby96/Encelado/compare/v1.3.0...v1.4.0
|
||||
[1.3.0]: https://gitea.encke-hake.ts.net/Alby96/Encelado/compare/v1.2.0...v1.3.0
|
||||
[1.2.0]: https://gitea.encke-hake.ts.net/Alby96/Encelado/compare/v1.1.0...v1.2.0
|
||||
[1.1.0]: https://gitea.encke-hake.ts.net/Alby96/Encelado/compare/v1.0.0...v1.1.0
|
||||
[1.0.0]: https://gitea.encke-hake.ts.net/Alby96/Encelado/releases/tag/v1.0.0
|
||||
Reference in New Issue
Block a user