How iamsaisamhithreddy/tradingbot works
TradingView Alerts Bot is a self-hosted forex signal and trade-grading platform, with Telegram delivery, data collection, administration, research and charting. Its main workflow receives five-candle alerts, evaluates a pattern and target, distributes a signal, then grades trades against candle data. The README documents several capabilities whose implementation was not sampled; those links cite the README. The repository also contains a substantial Lightweight Charts library, shown as a separate charting dependency rather than as part of the PHP signal pipeline.
Main entry points: webhook.php Bot commands · db.php Trade predictions · admin_dashboard.php Admin panel · plot Trade plotter
Components 20
Signals and grading
- Alert receiver
receiver.php - Raw alerts
db.php - Pattern engine
lib_candle_algo.php - Trade predictions
db.php - Trade grading
evaluate_win_loss.php
Market data
- Candle collector
dataset/add.php - Candle data
dataset
Telegram and events
- Bot commands
webhook.php - Economic calendar
fetch_news.php
Administration
- Admin panel
admin_dashboard.php - Firmware updates
ota
Research and charts
- Trade research
analysis - Trade reports
Trade_report.php - Trade plotter
plot - Live terminal
livechart - Chart library
lightweight-charts-master/src/api/create-chart.ts - PDF generation
fpdf.php
Other components
- TradingView
- ESP32 collector
- Telegram
Connections 18
- TradingView → Alert receiver: sends alerts
- Alert receiver → Raw alerts: stores candles
- Raw alerts → Pattern engine: evaluates pattern
- Pattern engine → Trade predictions: records target
- Trade predictions → Bot commands: serves bot
webhook.php - Trade predictions → Trade grading: grades trades
- ESP32 collector → Candle collector: posts candles
- Candle collector → Candle data: updates data
- Candle data → Trade grading: provides candles
- Bot commands → Telegram: sends replies
webhook.php - Economic calendar → Bot commands: supplies events
- Admin panel → Firmware updates: manages updates
- Admin panel → Trade research: offers analytics
- Trade research → Trade reports: generates reports
- Trade plotter → Chart library: uses charts
- Live terminal → Chart library: uses charts
- Bot commands → PDF generation: creates PDFs
webhook.php - Trade plotter → PDF generation: generates PDFs