Case studyBuilt with Claude CodePythonPostgreSQL / TimescaleDBFastAPI + Reactsystemd

Sigmora: an AI-native market research and decision-support platform

A self-hosted platform that collects Indian (NSE/BSE) and US (NYSE/NASDAQ) market data every day, turns it into live signals, tests them in paper-trading simulation, and runs unattended 24/7 on one compact, low-power Linux host. Real money is gated behind strict statistical evidence.

Video walkthrough

About 3.5 minutes (12 MB). Real screens from the running system, with a synthetic voice-over.

The problem

Retail traders see signals everywhere and rarely know which ones hold up after costs. Brokerage, taxes and small position sizes can turn a good-looking signal into a loss, and testing many ideas on past data rewards luck unless the tests are corrected for it. I wanted one system that records everything it sees, tests every idea fairly, and acts only on evidence.

Architecture

Data sourcesExchange end-of-day files (NSE, BSE) · broker market-data API · public price feeds for the US · corporate actions and filings · news (sentiment only)
IngestionPython loaders on systemd timers · APScheduler orchestrator · data-quality checks on every load
StoragePostgreSQL 17 + TimescaleDB · daily and 1-minute time-series · signals, paper ledgers, research results · one schema family per market
EnginesLive radar · Top-10 models · swing, short and long-term engines · 56-screen technical workbench · strategy lab · daily backtest
Decision and controlPaper-trading simulators · evidence scorecard · order-management layer with safety gates · read-only journal
Serving and UIFastAPI read-only service · React, Vite and Tailwind dashboard · India and US in one UI
OperationsHealth checks with self-healing · nightly 50-check audit · messaging alerts · memory-capped job slices · single Linux host

Technology

LayerTechnologyRole
DatabasePostgreSQL 17, TimescaleDBTime-series storage, ledgers, research results
IngestionPython 3.12, systemd timers, APSchedulerDaily and live collection, corporate actions
APIFastAPI, pooled read-only database roleServes the dashboard with no write access to data
FrontendReact, Vite, TailwindOne dashboard for India and USA
HostingLinux, nginx, systemd user units and slicesSelf-hosted, memory-capped jobs
QualityUnit tests, nightly audit, health checksData accuracy and service recovery
AI useLanguage model for news sentiment onlyCore analysis is deterministic program code
ToolingBuilt with Claude Code as a pair-programmerDesign decisions and rules are mine

Walkthrough, screen by screen

1 · OVERVIEW
Overview page
Overview. Market context at a glance: global cues, regime, NIFTY 50, India VIX and market breadth, with one card per holding horizon from intraday to long term.
2 · PRE-MARKET AND OPEN
Pre-market page
Pre-market and open. Global cues at 08:50, a risk-on or risk-off verdict with its track record, watch lists for a buy or short at the open, and live gaps after 09:15.
3 · LIVE RADAR
Live radar page
Live radar. Recomputed from the newest 1-minute bars. Time-stamped BUY and SELL signals, newest first, with a protective exit level and a confidence score. Signals expire when their window ends. Watch-only: it places no orders.
4 · INTRADAY OPPORTUNITIES
Intraday opportunities page
Consensus. Every engine's opinion merged into one row per stock, with agreement dots showing which engines are bullish, bearish or silent, and entry, stop and target for each.
5 · INTRADAY MOVERS
Intraday movers page
Movers. All 1,478 traded stocks ranked by day move, latest-bar move and volume, with adjustable filters and auto-refresh.
6 · LIVE TRADE SIMULATOR
Live trade simulator page
Live trade simulator. A paper account that follows the signals through the day, with cash, invested amount and equity shown separately, real costs charged on every trade, a daily loss limit and a rules gate checked against a 20-session replay.
7 · TOP 10 DAILY
Top 10 daily page
Top 10 daily. The ten strongest candidates per category from models trained on every NSE stock since 2024, each with a plan. Calibration check: the model claimed 20% on average and 19% actually hit across 140 picks.
8 · SWING PORTFOLIO
Swing portfolio page
Swing portfolio. A walk-forward backtest (10 Jul 2025 to 13 Nov 2026, costs included): +43.85% against +6.11% for the average liquid stock, max drawdown −10.76%, profit factor 1.52, 113 trades at a 50% win rate. Backtest result. Live validation comes before any real money.
9 · TECHNICAL WORKBENCH
Technical workbench page
Technical workbench. 56 parameterised technical screens with walk-forward backtests, and a Full Analysis that runs all dimensions in one pass. The page states that agreement is not a guarantee of a win.
10 · SCREENER CHECKS
Screener checks page
Fundamentals. Quality filters from manual screens, uploaded by hand. They are used as a filter and cross-check, not as evidence of an edge.
11 · SYSTEM HEALTH
System health page
Operations. Data freshness for every feed and every service with its state, last result and memory use. The same checks drive the alerts.

Measured results

+43.9%

Swing portfolio, walk-forward backtest with costs (10 Jul 2025 to 13 Nov 2026), against +6.1% for the average liquid stock. Max drawdown −10.8%, profit factor 1.52, 113 trades.

20% claimed, 19% hit

Top-10 model calibration across 140 picks: stated chances match what actually happened.

2,234 stocks, 259 sessions

Research dataset behind 44 trading ideas tested, with the last 40 sessions kept untouched as a holdout.

1,478 stocks, minute by minute

Traded stocks watched live through the day across NSE and BSE.

56 technical screens

Parameterised, each with a walk-forward backtest.

50 nightly checks

Automated audit including data accuracy against the exchange's official files.

Backtest and paper results. Real money is considered only after live validation.

What stands out

Evidence on every list

Each recommendation shows its source's measured record beside it.

Consensus view

Many engines merged into one row per stock, with agreement and conflicts shown.

Live, expiring signals

Scored, time-stamped and gone when the window ends.

Calibrated probabilities

Model claims checked against outcomes: 20% claimed, 19% hit.

Evidence-gated actions

Nothing is acted on until its record is proven, and a source that weakens loses its status the same night.

Two markets, one engine

India and the USA share the same engines through market adapters.

Safety and operations

Built end to end

2 markets

India and the USA on one shared engine.

24/7

Unattended operation with self-healing on one Linux host.

One engineer

Data, models, simulation, dashboard and operations, designed, built and run by one person with AI coding agents.

Next