A Python-based trading bot that uses technical indicators to make trading decisions on the Alpaca trading platform.
- Technical analysis using MACD, RSI, and Stochastic indicators
- Composite indicator for trade signals
- Telegram bot integration for monitoring and control
- 5-minute timeframe trading with 35-minute composite signals
- Automated trade execution via Alpaca API
- Install dependencies:
pip install -r requirements.txt- Create a
.envfile with your Alpaca credentials:
ALPACA_API_KEY=your_api_key
ALPACA_SECRET_KEY=your_secret_key
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
- Run the bot:
python run_market_hours.pytrading.py: Main trading execution logicindicators.py: Technical indicators and signal generationstrategy.py: Trading strategy implementationfetch.py: Data fetching from Alpacatelegram_bot.py: Telegram bot for monitoring and control
MIT