A real-time, multi-indicator crypto paper trading bot built in Python, using the Binance Testnet API.
This bot monitors selected crypto pairs, detects trading signals using indicators like RSI, EMA, MACD, ADX, and Bollinger Bands, and sends real-time Telegram alerts, with auto-logging to Google Sheets.
- RSI – Overbought/oversold detection
- MACD – Momentum shift confirmation
- EMA – Trend following
- ADX – Trend strength
- Bollinger Bands – Volatility breakout
- ✅ Stop Loss (SL)
- ✅ Take Profit (TP)
- ✅ Trailing Stop Loss (TSL)
- ✅ Daily Max Loss Guard
- ✅ Cooldown + Duplicate Trade Blocker
- Trade Confidence Score (based on multiple indicators)
- Per-coin configuration using
config.json
- 📈 Trade Executed (BUY/SELL)
- 🚨 SL/TP/TSL Triggered
- 💬 Trade Summary (daily/weekly)
⚠️ Capital issues / loss guard
- ✅ Trade history
- ✅ P&L tracking
- ✅ Per-symbol worksheets (BTCUSDT, ETHUSDT, etc.)
| 📌 Feature | 🛠️ Description | 🎯 Why It's Important | ✅ Priority | 🚦 Status |
|---|---|---|---|---|
| Add More Indicators | Add 2 advanced indicators to support RSI, EMA, MACD | Improve accuracy, confirm signals | ✅ Immediate | ✅ DONE |
| Real Balance Awareness | Bot checks USDT wallet before trading | Prevents over-trading, protects capital | ✅ Immediate | ✅ DONE |
| Smart Capital Allocation | Use % of total balance per trade (not fixed $15) | Adapts to wallet size, safer scaling | ✅ Immediate | ✅ DONE |
| Diversification Logic | Invest in 2–3 strongest signals across different coins | Lowers risk, increases opportunity | ✅ Immediate | ✅ DONE |
| Trailing Stop Loss (TSL) | Dynamically lock in profits as price rises | Avoids profit reversal | ✅ Next Step | ✅ DONE |
| Daily Max Loss Guard | If total loss > $X in a day, stop trading | Avoids wipeouts on bad days | ✅ Next Step | ✅ DONE |
| Trade Confidence Scoring | Only trade if multiple indicators confirm | Filters out false signals | 🔄 Optional | N/A |
| Trade Journal Logging | Log reasons for each trade in detail | For audit, review, debugging | ✅ Recommended | ✅ DONE |
| Profit Target Exit | Automatically exit after X% profit | Lock in wins when available | 🔄 Optional | N/A |
| Dynamic Rebalancing | Re-allocate funds weekly based on performance | For serious long-term optimization | 🔄 Future | ✅ DONE |
Chart Screenshot on Trade Execution
Indicator Confirmation Message
Crypto-Trading-Bot/ │ ├── main.py # Main bot script ├── config.json # SL/TP/TSL settings for each coin ├── requirements.txt # Python libraries ├── .env.example # Shows required env keys (no secrets) ├── charts/ # Optional: folder for trade chart images ├── screenshots/ # Optional: Google Sheets or bot output └── README.md # Full project documentation
⚙️ Setup Instructions
git clone https://github.com/KhushiThakur-AI/Crypto-Trading-Bot.git cd Crypto-Trading-Bot
2. Install Dependencies
pip install -r requirements.txt
3. Configure API Keys Rename .env.example → .env Then fill in your credentials:
Secret BINANCE_API_KEY=your_key BINANCE_API_SECRET=your_secret TELEGRAM_TOKEN=your_bot_token TELEGRAM_CHAT_ID=your_chat_id
4. Run the Bot python main.py
🧠 Skills Demonstrated = ✅ Python Development ✅ API Integration (Binance, Telegram, Google Sheets) ✅ Trading Strategy Design ✅ Automation & Alert Systems ✅ Real-world product mindset
| 🧭 Phase | 🛠️ Action | 🧰 Tools Used | 🎯 Goal |
|---|---|---|---|
| ✅ 1. Paper Trading (Now) | Use your bot in Binance Testnet | Binance Testnet, Google Sheets, Telegram | Practice signals, SL/TP/TSL, logging alerts |
| 🔜 2. Real Trading (Soon) | Switch to real Binance API keys | Same bot with RealMoney: true |
Trade with small capital ($5–$20) |
| 🤖 3. AI Signal Assistant | Add ChatGPT & TradingView chart analysis | ChatGPT API, TradingView Webhook | Get market suggestions and signal validation |
| 📈 4. Long-Term Investment Bot | Build weekly trend-following bot | Python, EMA/RSI, Daily Charts, Auto-rebalance | Smart long-term crypto investing |
If you found this project useful, interesting, or inspiring, feel free to ⭐ star it, fork it, or share it!
This is an open-source paper trading bot. If you have ideas for new indicators, risk strategies, or features, contributions are welcome!
👩💻 GitHub: @KhushiThakur-AI
💬 Telegram: Coming soon
📫 LinkedIn: Khushi Thakur
Security Note: This project is configured for paper trading only. All API keys and sensitive details are stored privately using environment variables and are not exposed anywhere in this repository.
🙌 Created by @KhushiThakur-AI