A professional-grade automated cryptocurrency trading bot for Bybit exchange. Designed for both spot and futures trading with multiple strategies, real-time monitoring, and risk management.
This trading bot is a comprehensive solution for automated cryptocurrency trading on Bybit. It combines technical analysis, risk management, and automated execution to help traders execute strategies consistently without emotional interference.
Key Highlights:
- Multiple trading strategies (Grid, DCA, Scalping, Trend Following)
- Real-time market data analysis
- Automated position management with Stop Loss & Take Profit
- Backtesting capabilities
- Telegram/Discord alerts for trade notifications
| Feature | Description |
|---|---|
| 🔄 Automated Trading | Fully automated trade execution based on configured strategies |
| 📊 Multiple Timeframes | Support for 1m, 5m, 15m, 1H, 4H, 1D charts |
| 📈 Multiple Strategies | Grid, DCA, Scalping, Trend Following, RSI/EMA strategies |
| 🛡️ Risk Management | Stop Loss, Take Profit, position size management |
| 📉 Backtesting | Test strategies on historical data before live trading |
| 🔔 Real-time Alerts | Get notified via Telegram/Discord for all trade activities |
| 💰 Futures Trading | USDT Perpetual futures support |
| 🎯 Spot Trading | Spot market trading capability |
- Python 3.8 or higher
- Bybit account with API keys
git clone https://github.com/ImranDev3/bybit-trading-bot.git
cd bybit-trading-botpip install -r requirements.txtOr manually:
pip install requests pandas numpy ta scikit-learn- Go to Bybit
- Navigate to: Account → API Management → Create New Key
- Select permissions: Trade + Read
- IP Whitelist: Leave empty or add your IP address
- Copy your API Key and API Secret
Edit the configuration in the bot files:
# Example configuration
API_KEY = "your_api_key_here"
API_SECRET = "your_api_secret_here"
# Trading settings
SYMBOL = "BTCUSDT"
TIMEFRAME = "15"
LEVERAGE = 10
STOP_LOSS_PERCENT = 2
TAKE_PROFIT_PERCENT = 4# Run the main trading bot
python rgb_bot.py
# Or run web-based version
python web_bot.py
# Check positions
python check_pos.pyAlways test your strategies in demo mode first:
IS_DEMO = True # Enable demo tradingbybit-trading-bot/
├── README.md # This file
├── requirements.txt # Python dependencies
├── rgb_bot.py # Main trading bot (RGB strategy)
├── web_bot.py # Web interface version
├── check_pos.py # Position checker utility
└── config.py # Configuration file (optional)
Places buy/sell orders at predetermined price levels to profit from market volatility.
Buys at regular intervals to average down/up the entry price.
Quick trades targeting small price movements with high frequency.
Uses EMA/Moving Average crossovers to identify market trends.
Combines RSI overbought/oversold signals with EMA for entries.
Trading cryptocurrency carries significant risk. Please note:
⚠️ Always use demo mode first to test strategies⚠️ Only trade with money you can afford to lose⚠️ Set proper Stop Loss to limit losses⚠️ The bot may not guarantee profits⚠️ Market conditions can change rapidly
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
Happy Trading! 🚀