An advanced cryptocurrency trading bot with adaptive scanning, multiple strategies, and automated execution. Features both Python trading engine and React dashboard for monitoring.
# 1. Clone repository
git clone https://github.com/YOUR_USERNAME/crypto-trading-bot-dashboard.git
cd crypto-trading-bot-dashboard
# 2. Automated setup
python setup_bot.py
# 3. Start trading
python scalping_scanner.pyThat's it! The bot will start scanning for trading opportunities.
- 15-minute timeframe β Quick scalping opportunities
- 30-minute timeframe β If no 15m signals found
- 5-minute continuous β 24/7 scanning until signals found
- 1000+ symbols scanned in batches
- Scalping Scanner: RSI, EMA crossover, volume breakout, momentum
- Strategy Scanner: Liquidity, momentum, pattern, candlestick (your original bot logic)
- Risk Management: Position sizing, stop loss, take profit, daily limits
- Signal validation with confidence thresholds
- Position monitoring with automatic stop loss/take profit
- Trade logging to JSON files
- Real-time P&L tracking
- Testnet by default - Safe testing environment
- Position limits - Max 5 concurrent, 2% position size
- Daily limits - Max 10 trades, 5% loss limit
- Quality filters - Only high-confidence signals
scalping_scanner.py- Adaptive timeframe scanningstrategy_scanner.py- Original bot strategiestrading_executor.py- Trade execution and monitoring
- Real-time monitoring interface
- Portfolio tracking
- Strategy performance analysis
python scalping_scanner.py
# Finds quick scalping opportunities
# Adapts timeframes automatically
# Runs 24/7 until signals foundpython strategy_scanner.py
# Uses your original 4 strategies
# Better for swing trades
# 1-hour timeframe analysispython trading_executor.py
# Reads signals from scanner results
# Executes with risk management
# Monitors positions automaticallyscalping_results.json- Scalping signalsstrategy_results.json- Strategy signalstrade_executions.json- All executed tradesposition_closes.json- All closed positions
Edit config/bot_config.json:
{
"testnet": true,
"risk_config": {
"max_position_size": 0.02,
"daily_loss_limit": 0.05,
"stop_loss_pct": 0.02,
"take_profit_pct": 0.04
}
}python deploy.py --type localpython deploy.py --type server
# Creates systemd service for 24/7 operationpython deploy.py --type docker
# Creates Dockerfile and docker-compose.ymlpython deploy.py --type cloud
# Creates cloud deployment scriptscrypto-trading-bot-dashboard/
βββ dashboard/ # React frontend application
β βββ public/ # Static assets
β βββ src/
β β βββ components/ # Reusable UI components
β β β βββ Navbar.tsx
β β β βββ Sidebar.tsx
β β βββ pages/ # Page components
β β β βββ Dashboard.tsx
β β β βββ Portfolio.tsx
β β β βββ Strategies.tsx
β β βββ App.tsx # Main app component
β β βββ index.tsx # Entry point
β β βββ index.css # Global styles
β β βββ config.ts # Configuration
β βββ package.json
β βββ tailwind.config.js
βββ api_server.py # Python backend (optional)
βββ tests/ # Test files
βββ README.md
In the dashboard directory:
npm start- Start development servernpm build- Build for productionnpm test- Run testsnpm run eject- Eject from Create React App
The dashboard can be configured via environment variables:
# .env file in dashboard directory
REACT_APP_API_URL=http://localhost:8000
REACT_APP_WS_URL=ws://localhost:8000/ws- Bot status monitoring
- Real-time P&L tracking
- Performance metrics
- Interactive price charts
- Asset allocation visualization
- Portfolio performance tracking
- Balance monitoring
- Strategy configuration
- Performance comparison
- Enable/disable strategies
- Parameter tuning
- Create component in
src/components/orsrc/pages/ - Follow TypeScript best practices
- Use Tailwind CSS for styling
- Add proper prop types and interfaces
- Use Tailwind CSS utility classes
- Follow dark theme color scheme
- Maintain responsive design
- Use consistent spacing and typography
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - see LICENSE file for details
For issues and questions:
- Create an issue on GitHub
- Check existing documentation
- Review the code examples
Built with β€οΈ for the crypto trading community