11 Commits

Author SHA1 Message Date
mindesbunister
de77cfe5fb test: Verify GitHub auto-sync hook 2025-12-05 08:02:58 +01:00
mindesbunister
6bfb02aa81 docs: Update main README to reference new documentation structure
- Add comprehensive documentation navigation section
- Link to all 8 subdirectory READMEs (setup, architecture, roadmaps, etc.)
- Organize by topic (performance, design, bugs, infrastructure)
- Add status-based finding (completed, in progress, analysis)
- Replace old flat list with category-based structure
- Essential reading section highlights key documents
2025-12-04 12:50:01 +01:00
mindesbunister
17071fe7ec docs: Update minimum quality score from 60 to 81 across documentation
- Updated .github/copilot-instructions.md key constraints and signal quality system description
- Updated config/trading.ts minimum score from 60 to 81 with v8 performance rationale
- Updated SIGNAL_QUALITY_SETUP_GUIDE.md intro to reflect 81 threshold
- Updated SIGNAL_QUALITY_OPTIMIZATION_ROADMAP.md current system section
- Updated BLOCKED_SIGNALS_TRACKING.md quality score requirements

Context: After v8 Money Line indicator deployed with 0.6% flip threshold,
system achieving 66.7% win rate with average quality score 94.2. Raised
minimum threshold from 60 to 81 to maintain exceptional selectivity.

Current v8 stats: 6 trades, 4 wins, $649.32 profit, 94.2 avg quality
Account growth: $540 → $1,134.92 (110% gain in 2-3 days)
2025-11-21 15:49:26 +01:00
mindesbunister
74bd0f9535 docs: Add Money Line v8 indicator explanation to README
Added comprehensive section explaining:
- How the indicator works (simple terms)
- What creates the line (ATR, multiplier, HalfTrend)
- v8 improvements (flip threshold, entry buffer, stickier bands)
- Simple analogy (traffic light for trading)
- Version comparison (v6/v7/v8)

Makes it easy to explain the system to others
2025-11-18 11:44:48 +01:00
mindesbunister
eeebfbc5df docs: update README leverage to 15x (from .env)
Changed leverage from 20x → 15x for SOL trading.

Reason: Liquidation price was too close for comfort.
Impact: 25% smaller positions, ~33% more liquidation cushion
        (-6.7% vs -5% move needed for liquidation)

README now reflects actual SOLANA_LEVERAGE setting from .env.
2025-11-12 12:42:53 +01:00
mindesbunister
912c87654a docs: update README with optimization progress bars
Added visual progress tracking for three active optimization initiatives:

Progress Bars:
- Signal Quality: [▓░░░░░░░░░] 0/20 (0%) - 2-3 weeks
- Position Scaling: [▓▓▓▓▓▓▓▓▓▓] 161/50 (322%)  - 3-4 weeks
- ATR-based TP: [▓░░░░░░░░░] 1/50 (2%) - 6-8 weeks

Live Status Section:
- Capital: $97.55 USDC
- Target: $2,500 (Phase 1)
- Leverage: 20x
- Win Rate: 60%+ target
- Trades: 161 executed

Expected combined impact: 35-40% P&L improvement
Goal acceleration: 6-7 months → 4-5 months to Phase 1 target

Makes git page instantly readable with visual progress tracking.
2025-11-12 12:38:42 +01:00
mindesbunister
715fa8bd11 Update README with comprehensive architecture, dual-layer redundancy, and current features
- Add dual-layer redundancy explanation (on-chain + Position Manager)
- Document dual stop-loss system (soft TRIGGER_LIMIT + hard TRIGGER_MARKET)
- Add complete trade flow documentation (signal → execution → monitoring → exit)
- Update supported timeframes (5min and 15min)
- Document database integration (PostgreSQL + Prisma)
- Add configuration system details (three-layer merge)
- Document recent bug fixes (TP2 calculation, race condition, order cancellation)
- Add comprehensive file structure
- Update API endpoints with all current routes
- Add real-world trade examples with P&L calculations
- Document singleton patterns and critical coding practices
- Add troubleshooting section with common issues
- Update testing commands and safety guidelines
2025-10-28 12:08:18 +01:00
mindesbunister
14d5de2c64 chore: Organize workspace structure - move docs, workflows, scripts to subdirectories
Organization:
- Created docs/ with setup/, guides/, history/ subdirectories
- Created workflows/ with trading/, analytics/, telegram/, archive/ subdirectories
- Created scripts/ with docker/, setup/, testing/ subdirectories
- Created tests/ for TypeScript test files
- Created archive/ for unused reference files

Moved files:
- 17 documentation files → docs/
- 16 workflow JSON files → workflows/
- 10 shell scripts → scripts/
- 4 test files → tests/
- 5 unused files → archive/

Updated:
- README.md with new file structure and documentation paths

Deleted:
- data/ (empty directory)
- screenshots/ (empty directory)

Critical files remain in root:
- telegram_command_bot.py (active bot - used by Dockerfile)
- watch-restart.sh (systemd service dependency)
- All Dockerfiles and docker-compose files
- All environment files

Validation:
 Containers running (trading-bot-v4, telegram-trade-bot, postgres)
 API responding (positions endpoint tested)
 Telegram bot functional (/status command tested)
 All critical files present in root

No code changes - purely organizational.
System continues running without interruption.

Recovery: git revert HEAD or git reset --hard cleanup-before
2025-10-27 12:59:25 +01:00
mindesbunister
26864c10f2 feat: Add container restart functionality from web UI
- Added restart button to settings page
- Created /api/restart endpoint (file-flag based)
- Implemented watch-restart.sh daemon
- Added systemd service for restart watcher
- Updated README with restart setup instructions
- Container automatically restarts when settings changed

Settings flow:
1. User edits settings in web UI
2. Click 'Save Settings' to persist to .env
3. Click 'Restart Bot' to apply changes
4. Watcher detects flag and restarts container
5. New settings loaded automatically
2025-10-24 15:06:26 +02:00
mindesbunister
9e0d9b88f9 docs: Update README with Docker deployment and web interface details
- Added Docker deployment section with architecture details
- Documented web interface (/settings) features
- Added API endpoint examples for all operations
- Updated Phase 3 status to COMPLETE
- Added settings management API documentation
- Included Docker commands and container details
- Updated file structure to reflect current layout
2025-10-24 14:36:05 +02:00
mindesbunister
2405bff68a feat: Complete Trading Bot v4 with Drift Protocol integration
Features:
- Autonomous trading system with Drift Protocol on Solana
- Real-time position monitoring with Pyth price feeds
- Dynamic stop-loss and take-profit management
- n8n workflow integration for TradingView signals
- Beautiful web UI for settings management
- REST API for trade execution and monitoring

- Next.js 15 with standalone output mode
- TypeScript with strict typing
- Docker containerization with multi-stage builds
- PostgreSQL database for trade history
- Singleton pattern for Drift client connection pooling
- BN.js for BigNumber handling (Drift SDK requirement)

- Configurable stop-loss and take-profit levels
- Breakeven trigger and profit locking
- Daily loss limits and trade cooldowns
- Slippage tolerance controls
- DRY_RUN mode for safe testing

- Real-time risk calculator
- Interactive sliders for all parameters
- Live preview of trade outcomes
- Position sizing and leverage controls
- Beautiful gradient design with Tailwind CSS

- POST /api/trading/execute - Execute trades
- POST /api/trading/close - Close positions
- GET /api/trading/positions - Monitor active trades
- GET /api/trading/check-risk - Validate trade signals
- GET /api/settings - View configuration
- POST /api/settings - Update configuration

- Fixed Borsh serialization errors (simplified order params)
- Resolved RPC rate limiting with singleton pattern
- Fixed BigInt vs BN type mismatches
- Corrected order execution flow
- Improved position state management

- Complete setup guides
- Docker deployment instructions
- n8n workflow configuration
- API reference documentation
- Risk management guidelines

- Runs on port 3001 (external), 3000 (internal)
- Uses Helius RPC for optimal performance
- Production-ready with error handling
- Health monitoring and logging
2025-10-24 14:24:36 +02:00