How muhammadaskar/stock-trading-bot works
This repository is an educational stock-analysis and intraday trading bot. Its user-facing workflow is to run the bot, obtain market data, evaluate stocks, rank recommendations, and report results through the console or Telegram; the README also describes historical-data moving-average decisions and simulated trades with profit/loss. The sampled code shows additional dynamic selection, technical indicators, and optional AI analysis. Source excerpts are incomplete, so uncertain internal wiring is omitted; no actual broker order execution is evidenced.
Main entry points: main.py Trading bot
Components 15
Trading workflow
- Trading bot
main.py - Recommendation ranking
main.py - Trade simulation
main.py - Results and P/L
main.py - Watchlist export
main.py - Telegram notifications
main.py
Analysis and selection
- Stock selection
main.py - Market data fetch
main.py - Technical indicators
main.py - Trading signals
main.py - AI analysis
main.py
External integrations
- Yahoo Finance
- AI providers
- Telegram API
Other components
- Bot operator
Connections 14
- Bot operator → Trading bot: runs
- Trading bot → Stock selection: selects stocks
- Trading bot → Market data fetch: requests data
- Market data fetch → Yahoo Finance: fetches prices
- Trading bot → Technical indicators: calculates indicators
- Trading bot → Trading signals: evaluates signals
- Trading bot → AI analysis: requests analysis
- AI analysis → AI providers: sends prompts
- Trading bot → Recommendation ranking: ranks results
- Trading bot → Trade simulation: simulates trades
- Trading bot → Results and P/L: reports results
- Trading bot → Watchlist export: exports
- Trading bot → Telegram notifications: dispatches messages
- Telegram notifications → Telegram API: sends messages