Commit Graph

17 Commits

Author SHA1 Message Date
7666f970c0 feat: add Hurst Bands, strategy panel, signal markers and multiple UI enhancements 2026-03-04 19:41:16 +01:00
4d5b1e1416 feat: add oscillator pane support with lightweight-charts v5
- Upgrade CDN from v4.1.0 to v5.1.0
- Add displayMode property to indicators ('overlay' vs 'pane')
- Mark oscillators (RSI, MACD, Stoch, ATR) as pane-type indicators
- Rewrite drawIndicatorsOnChart() to render oscillators in separate draggable panes
- Update all chart.addSeries() calls to v5 API with paneIndex parameter
- Add pane layout configuration with resizable separators
2026-02-24 11:50:30 +01:00
06b2a4eac4 Redesign indicators panel: dynamic catalog, multi-instance, chart legend
- Build indicator list dynamically from class getMetadata() instead of hardcoded array
- Remove checkboxes; single-click previews config, double-click adds to chart
- Support multiple instances of same indicator type (unique IDs)
- Add TradingView-style column legend overlay on chart (top-left)
- Recalculate indicators when historical data is prefetched on scroll
- Make indicator list and config panels scrollable (hidden scrollbars)
- Remove AVAILABLE_INDICATORS from strategies/config.js
2026-02-24 11:21:30 +01:00
610911bca0 Improve indicators panel and fix data collector startup
Dashboard:
- Add indicator checkboxes with multi-select support
- Show color dots for each plot group in indicator list
- Config panel always visible with helpful empty state message
- Support multi-color indicators (HTS shows Fast/Slow colors)
- Add line type selector (solid/dotted/dashed) and line width
- Combine SMA/EMA into unified MA indicator with type selector

Data Collector:
- Fix missing asyncio import in database.py (caused NameError on timeout)
- Add startup backfill for all standard intervals on collector restart
- Add gap detection + time-based backfill for robustness
- Add backfill_gap.py tool for manual gap filling
- Optimize custom timeframe generation to only generate missing candles (not all from beginning)

Files changed:
- src/api/dashboard/static/js/ui/indicators-panel.js
- src/api/dashboard/static/js/indicators/index.js, ma_indicator.js
- src/api/dashboard/static/js/strategies/config.js
- src/api/dashboard/static/js/ui/chart.js
- src/api/dashboard/static/js/app.js
- src/api/dashboard/static/index.html
- src/data_collector/database.py
- src/data_collector/main.py
- src/data_collector/custom_timeframe_generator.py
- src/data_collector/backfill_gap.py (new)
2026-02-24 10:21:41 +01:00
09ec51c185 Add chart navigation controls with keyboard shortcuts
- Navigation buttons (<, >, >>) appear when mouse within 30px of bottom
- Left/Right arrows shift timeline 0.8 window width
- Up arrow jumps to most recent candle
- Buttons: < move left, > move right, >> go to recent
2026-02-18 12:43:08 +01:00
c3cf0578f5 Improve chart UX: dynamic price line color, smooth historical data prefetch
- Add custom price line (green/red based on candle direction)
- Disable default orange price line visibility
- Chart scrolls to recent data on timeframe switch
- Implement dynamic buffer for historical data prefetch (2x visible bars)
- Silently refills buffer when below 80% threshold
2026-02-18 12:16:57 +01:00
30bedcbb67 Refactor dashboard JS to ES modules; fix collector strategy loading and add auto-backfill
- Split inline JS into separate ES module files (indicators/, strategies/, ui/, utils/)
- Fix brain.py strategy registry to use MAStrategy directly instead of missing modules
- Add auto-backfill for detected data gaps in collector monitoring loop
- Fix chart resize on sidebar toggle
- Fix chart scrollToTime -> setVisibleLogicalRange
2026-02-18 11:07:30 +01:00
eafba745b1 local strategy 2026-02-17 10:39:39 +01:00
fcac738e64 powinno działać 2026-02-16 13:04:38 +01:00
c2e5b23b89 Fix sidebar toggle button visibility when collapsed; add hover effect 2026-02-16 10:32:48 +01:00
2dfd97e7b8 Fix historical data loading on chart scroll; add separate trade lines and improved marker styling 2026-02-13 13:37:51 +01:00
ad2b93ba39 Improve simulation marker UX: remove alert, adjust spacing, add hover tooltips 2026-02-13 12:47:14 +01:00
003ab43086 feat: implement MVP of client-side strategy architecture
- Added /api/v1/candles/bulk endpoint for high-performance data download
- Implemented ClientStrategyEngine in JS with support for 7 indicators
- Added Multi-Timeframe support for strategy confirmation
- Added Risk Management module (Risk % per trade, Stop Loss %)
- Overhauled dashboard simulation UI with TF selector and risk inputs
- Removed server-side backtest dependency for simulations
2026-02-13 09:55:23 +01:00
d7bdfcf716 feat: implement strategy metadata and dashboard simulation panel
- Added display_name and description to BaseStrategy
- Updated MA44 and MA125 strategies with metadata
- Added /api/v1/strategies endpoint for dynamic discovery
- Added Strategy Simulation panel to dashboard with date picker and tooltips
- Implemented JS polling for backtest results in dashboard
- Added performance test scripts and DB connection guide
- Expanded indicator config to all 15 timeframes
2026-02-13 09:50:08 +01:00
38f0a21f56 Improve dashboard rendering stability and increase DB pool size 2026-02-12 08:39:54 +01:00
ec37fae0fd Implement custom timeframes (37m, 148m) with real-time refresh for all intervals 2026-02-11 23:27:21 +01:00
933537d759 Initial commit: BTC Bot with dashboard, TA analysis, and 14 timeframes 2026-02-11 22:27:51 +01:00