How himanshu-pro01/tradealgo works
Algobot is a browser-based trading desk and research toolkit layered around OpenAlgo—not a live-order trading bot. A trader defines or edits a strategy, supplies historical prices, reviews its plain-English interpretation, and runs a cost- and risk-aware backtest; look-ahead and reality checks then challenge the evidence. Separate desk workflows support position sizing, journaling, options analysis, fake-money practice, alerts, and sandbox-only broker testing. The sampled engine and pages establish key runtime connections; other capability links reflect README documentation, with uncertain wiring omitted.
Main entry points: 3_Practice_room.py Practice room · 5_Backtest.py Backtest page · engine.py Backtest engine · signal_alerts.py Signal alerts
Components 31
Trading desk
- Desk home
Trading_Desk.py - Backtest page
pages/5_Backtest.py
Strategy research
- Market data
algobot/data.py - Strategy config
algobot/config.py - Backtest runner
algobot/runner.py - Strategy rules
algobot/strategy.py - Backtest engine
algobot/engine.py - Risk manager
algobot/risk.py - Cost model
algobot/costs.py - Look-ahead checks
algobot/lookahead.py - Reality audit
algobot/audit.py - Strategy lab
algobot/lab.py
Practice and options
- Options analysis
algobot/options.py - Practice room
pages/3_Practice_room.py - Synthetic markets
algobot/worlds.py - AI advisor
algobot/ai_advisor.py - Paper trading
algobot/paper_trading.py
Trade tools
- Position sizing
algobot/sizing.py - Pre-trade gate
algobot/gate.py - Trade journal
algobot/journal.py - P&L reports
algobot/report.py - Signal alerts
algobot/signal_alerts.py
External integrations
- Sandbox page
pages/14_Upstox_Sandbox.py - Sandbox client
algobot/upstox_sandbox.py - OpenAlgo bridge
algobot/openalgo_bridge.py
Other components
- Trader
- Market data service
- OpenAlgo
- Upstox sandbox
- AI provider
- Telegram
Connections 40
- Trader → Desk home: opens desk
- Trader → Backtest page: configures test
- Desk home → OpenAlgo bridge: fetches chart data
- OpenAlgo bridge → OpenAlgo: requests candles
- Trader → Market data: provides price file
- Market data → Market data service: fetches history
- Backtest page → Strategy config: validates strategy
- Backtest page → Backtest runner: runs test
- Backtest page → Market data: loads prices
- Backtest runner → Backtest engine: runs simulation
- Backtest runner → Strategy rules: creates strategy
- Backtest engine → Strategy rules: requests decisions
- Backtest engine → Risk manager: checks limits
- Backtest engine → Cost model: prices fills
- Backtest page → Look-ahead checks: checks future leakage
- Trader → Reality audit: audits strategy
- Trader → Strategy lab: tests variations
- Trader → Position sizing: sizes position
- Trader → Pre-trade gate: checks trade
- Pre-trade gate → Trade journal: reads limits
- Trader → Trade journal: records trades
- Trader → P&L reports: reviews performance
- P&L reports → Trade journal: reads trades
- Trader → Signal alerts: requests alert
- Signal alerts → Position sizing: calculates lots
- Signal alerts → Pre-trade gate: checks limits
- Signal alerts → Telegram: sends notification
- Trader → Practice room: starts practice
- Practice room → Synthetic markets: generates market
- Practice room → Options analysis: prices options
- Practice room → AI advisor: requests suggestion
- AI advisor → AI provider: requests analysis
- Practice room → Paper trading: records practice trades
- Practice room → Market data service: streams prices
- Practice room → Sandbox client: places practice order
- Trader → Sandbox page: tests sandbox
- Sandbox page → Market data: fetches prices
- Sandbox page → Backtest runner: checks strategy
- Sandbox page → Sandbox client: sends sandbox order
- Sandbox client → Upstox sandbox: uses sandbox API