Algoh
Production Trading Architecture

Rock Solid Strategy Structure

Six core fault-tolerance guarantees engineered into every Algoh bot so live execution never breaks under real market stress.

Check #27 • Order IntegrityDeterministic State-Verified Execution
Included

Cascading Order Verification (Entry → SL → Fill Check)

Dependent orders are never fired blindly. Each execution leg confirms real broker fill status before advancing to stop-loss or target placement.

Why It Matters (Benefit)

The execution state machine polls broker orderbooks and WebSocket callbacks until Entry is COMPLETE, dispatches SL/Target legs using exact filled price and quantity, and confirms SL is OPEN or TRIGGER_PENDING.

Risk If Missing (Damage)

If an entry order rejects for margin while the bot assumes it filled, blind SL/target orders can open unwanted reverse naked positions.

Check #28 • System & SessionZero-Data-Loss State Continuity
Included

5-Layer Storage Fallback (DB → Backup DB → CSV → JSON → Text)

Active positions, stop-loss levels, and trailing targets persist across a five-tier failover chain so a primary database lock never blinds your strategy.

Why It Matters (Benefit)

Every trade transition writes to the primary database first, automatically failing over to Backup SQLite, structured CSV, atomic JSON snapshots, and append-only recovery logs with full state reconciliation.

Risk If Missing (Damage)

A database lock or disk hiccup during high volatility followed by a restart can erase active stop-loss tracking for open trades.

Check #29 • Broker & ExecutionAutomated Session Recovery & Replay
Included

Self-Healing Retry & Token Recovery

Mid-session token expiry, transient 401/429 responses, or brief network drops are automatically detected, healed, and replayed safely.

Why It Matters (Benefit)

A deterministic recovery wrapper catches session invalidation or API timeouts, triggers silent TOTP/token renewal, and retries the original order request strictly inside configured slippage bounds.

Risk If Missing (Damage)

A mid-day broker token reset can leave a critical exit signal unexecuted while the market moves sharply against your position.

Check #30 • System & SessionNon-Critical Errors Never Halt Trading
Included

Execution-Above-All Priority Isolation

Your core signal evaluation and order placement loop is strictly isolated from peripheral UI, Telegram, chart, or analytics failures.

Why It Matters (Benefit)

Non-blocking async queues decouple telemetry and notifications from the trading thread, ensuring logging or alert formatting glitches never interrupt active position management.

Risk If Missing (Damage)

An unhandled exception in a notification formatter or dashboard query can crash the entire bot right before a stop-loss exit.

Check #31 • Broker & ExecutionCross-Broker Emergency Continuity
Included

Disaster Management & Fallback Broker Failover

If your primary broker suffers an outage after entry, protective exit or counter-hedge orders can automatically route through a connected fallback broker.

Why It Matters (Benefit)

Continuous API health and latency monitoring detects primary broker downtime or repeated 5xx failures and diverts emergency square-off or hedge orders to your secondary broker account.

Risk If Missing (Damage)

A 45-minute primary broker API outage while holding live futures or options leaves your capital completely exposed.

Check #32 • System & SessionAuto-Patched OS & Reserved Trading Compute
Included

Secure VPS Hardening & 30/70 Resource Pinning

Automated security patching combined with strict CPU/RAM pinning reserves 30% compute exclusively for Python trading scripts and 70% for everything else.

Why It Matters (Benefit)

Systemd cgroups and process priorities guarantee your live trading daemons always retain 30% dedicated headroom while heavy charts, exports, or background jobs share the remaining 70%.

Risk If Missing (Damage)

A heavy background log export or browser spike hitting 100% CPU can delay a time-critical stop-loss order by several seconds.

Speed

< 100ms Trade Execution

Sub-100ms signal-to-order dispatch on Mumbai co-located VPS nodes for sharp entries and exits.

Emergency Control

Telegram Server Kill Switch

Square off open trades, stop daemons, or shut down the entire trading server directly from Telegram.

Continuity

Daily Database & Project Backups

Automated daily snapshots of your Python code, databases, and strategy configs for instant restore.

Order Safety

Protected Orders & Backup Broker

Limit/SL-protected execution with automatic backup broker routing if your primary broker stalls.

Included Free With Every Build

What You Get Free With Your Strategy

Algoh Streaming Charts

Free self-hosted HTML5 charting terminal with 112+ indicators & multi-chart grids.

₹0 Included

Custom Strategy Indicator

Your exact strategy converted into a chart indicator and pre-loaded on your terminal.

₹0 Included

Regular Automated Backups

Scheduled backups of your bot code, databases, and strategy configurations.

₹0 Included

Tight Server Security

Hardened VPS, auto-patching, SSL, and 30%/70% trading resource protection.

₹0 Included