A cryptocurrency trading bot that uses technical indicators to make trading decisions on Binance Futures.
- Uses multiple technical indicators:
- Stochastic Oscillator
- RSI (Relative Strength Index)
- ATR (Average True Range)
- Linear Regression Channel (LRC)
- Implements ATR-based stop loss and take profit orders
- Real-time market data monitoring
- Comprehensive logging system
- Configurable parameters for risk management
- Clone the repository:
git clone <your-repository-url>
cd trading_bot
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file with your Binance API credentials:
API_KEY=your_api_key_here
SECRET_KEY=your_secret_key_here
Run the bot with default parameters:
python bot.py
Or with custom parameters:
python bot.py --symbol ETH/USDT --amount 20 --leverage 20 --atr_multiplier 3.0 --tp_ratio 2.0 --lookback_days 150
--symbol
: Trading pair (default: ETH/USDT)--amount
: USDT amount per trade (default: 20)--leverage
: Leverage multiplier (default: 20)--atr_multiplier
: ATR multiplier for stop loss (default: 3.0)--tp_ratio
: Take profit ratio (default: 2.0)--lookback_days
: Days of historical data to load (default: 150)
This bot is for educational purposes only. Trading cryptocurrencies involves significant risk of loss. Use at your own risk.
MIT License