An automated cryptocurrency trading bot that uses technical analysis and AI-driven signals to execute trades on Alpaca Markets.
- Real-time market data monitoring
- Technical analysis indicators (RSI, Volume, CVD)
- Automated trade execution with bracket orders
- Stop loss and take profit management
- Position tracking and P&L monitoring
- Trade history logging
- Paper trading support
- Python 3.8+
- Alpaca Markets account (with API keys)
- Required Python packages (see requirements.txt)
- Clone the repository:
git clone https://github.com/yourusername/ai-trading-signals.git
cd ai-trading-signals- Install dependencies:
pip install -r requirements.txt- Create a
config.pyfile with your Alpaca API credentials:
ALPACA_API_KEY = 'your_api_key'
ALPACA_API_SECRET = 'your_api_secret'
SYMBOL = 'BTC/USD'
INTERVAL = '1m'
USE_PAPER = True # Set to False for live tradingRun the trading bot:
python main.pyClose all positions:
python close_position.pySYMBOL: Trading pair (default: BTC/USD)INTERVAL: Timeframe for analysis (1m, 5m, 15m, 1h, 1d)USE_PAPER: Toggle between paper trading and live trading
- Automatic stop loss and take profit orders
- Position size management (1% of portfolio per trade)
- Error handling and logging
- Paper trading mode for testing
This software is for educational purposes only. Use at your own risk. The authors take no responsibility for any financial losses incurred through the use of this software.