The chronological evolutionary record of the QuadraTrades algorithmic platform — from Day 1 domain modeling to an 18-strategy institutional execution engine with dynamic profit retention.
Constructed the immutable core domain models, pydantic settings engine, IST timezone-aware simulated and live clock (SimulatedClock, IST_TZ), and unified system enumerations (MarketRegime, StructureEventType, TradeState).
Engineered the real-time Tick Store and Candle Builder for high-throughput live feed aggregation. Supports simultaneous 1-minute and 5-minute OHLCV bar generation, session boundaries, and tick interpolation with sub-millisecond latency.
Implemented algorithmic detection of fractally confirmed Swing Highs and Lows. Built Change of Character (CHoCH) and Break of Structure (BOS) detectors with body-close confirmation filters to eliminate premature false breaks.
Constructed Buy-Side Liquidity (BSL) and Sell-Side Liquidity (SSL) mapping across Equal Highs/Lows, Previous Day High/Low (PDH/PDL), and session boundaries. Added Displacement velocity verification measuring impulse expansion candles.
Engineered 3-candle imbalance detection for Bullish and Bearish Fair Value Gaps with 50% Consequent Encroachment (CE) midpoint tracking. Built Inversion FVG state transitions and institutional Order Block mitigation logic.
Implemented institutional benchmark indicators: Anchored Session VWAP, Average True Range (ATR), ADX trend strength, and 9/21/50 EMA ribbons. Built an automated Regime State Machine classifying the market into TREND_UP, TREND_DOWN, EXPANSION, or CHOPPY_ROTATION.
Constructed the first 5 core systematic trading strategies: LiquiditySweepReversal, LiquiditySweepFVG, BOSContinuation, FVGRetest, and FirstPullback. Established standardized setup signal generation interfaces.
Engineered the Confluence Scorer weighting orthogonal market evidence (Structure, Momentum, Volume, Participation, Regime). Implemented dual (+0.08) and triple (+0.15) agreement bonuses, conflict resolution between contradictory signals, and enforced the ≥ 70.0% Conviction Quality Gate.
Built automated option chain resolution targeting ATM and slightly ITM strikes with Delta between 0.40 and 0.60. Added Black-Scholes Greeks engine calculating Delta, Gamma, Theta, and Vega, contract symbol formatting for NSE/FYERS conventions, and weekly expiry rollovers.
Constructed the institutional risk framework: fixed 1.0% account equity risk per trade, structural stop-loss buffers (max 35 pt cap), strict 3.0% daily account loss circuit breaker, and NSE whole-lot quantization ensuring zero fractional lot violations.
Built the initial TradeManager state machine (OPEN, PARTIAL_1, PARTIAL_2, RUNNER) and DynamicRunnerEngine supporting multi-tier expansion milestones and opposing CHoCH early exits.
Integrated official FYERS API v3 REST and WebSocket pipelines: auto-refreshing OAuth access tokens, real-time depth & quote parsing, simulated fallback broker for offline testing, and automated subscription management for NIFTY spot and option strikes.
Engineered idempotent order dispatch routing, execution retries with exponential backoff, fill confirmation handlers, and an automated Position Reconciler comparing local system trade models against live broker book to prevent ghost positions.
Implemented real-time alerts via dedicated Telegram Bot (@expansion_trade_bot) with rich card formatting for entries, target milestones, and trailing adjustments. Built JSONL structured audit logging for forensic accounting.
Constructed event-driven paper simulation engine with realistic bid-ask spread slippage, partial fills modeling, margin tracking, and portfolio ledger calculating gross P&L, brokerage, statutory charges, and net cash balance in real time.
Engineered tick-by-tick and 1-minute historical replay architecture for testing strategy configurations against historical NIFTY datasets, generating Sharpe ratios, max drawdown curves, and trade distribution analytics.
Added the Feed Watchdog circuit breaker triggering emergency auto-square-off on >5.0s network silence. Integrated cryptographic Live Trading Safety Gate requiring operator handshake before real capital dispatch, and automatic 15:30 IST EOD session archiver.
Constructed a zero-dependency embedded HTTP server serving a modern dark terminal UI and real-time REST APIs at port 8080. Features 1000ms polling heartbeat, live chart telemetry, interactive Kill Switch, and Emergency Square-Off action endpoints.
Expanded institutional suite with Strategies 6 through 10: VWAPReclaim, OpeningRangeBreakRetest, FailedBreakout, CompressionExpansion, and the multi-timeframe TrendDayRunner.
Expanded system from 10 to 18 systematic strategies by integrating advanced Order Flow, Volume Profile, and Options Greeks modules: VolumeProfileOBVForce, OptionChainOIImbalance, ExpiryGammaBlast (0DTE gamma spikes), OrderFlowDivergence, SniperLiquidityReversal, and TrendlineBreakSafety.
Engineered the trade copier subsystem enabling a single master execution signal to replicate simultaneously across multiple client broker accounts with individual position sizing, token auto-extraction, and session isolation.
Provisioned and configured dedicated AWS EC2 Linux Cloud host in Mumbai (13.207.146.76) with Python virtualenv, firewall rules, and systemd service (nifty-runner.service) ensuring 99.9% uptime, auto-restart upon crash, and background operation independent of local workstations.
Ran forward testing on live market feeds across 4 consecutive market sessions. Captured 24 trades with 11 winning expansions, generated real-time Telegram alerts, and executed daily EOD session archival with full trading journal tracking.
Conducted root-cause technical investigations into non-executing strategies (FVGRetest, FailedBreakout, ExpiryGammaBlast). Created interactive SVG/HTML visual guides for LiquiditySweepReversal, FirstPullback, FVGRetest, and FailedBreakout.
Detailed mathematical audit of all 24 forward trades revealed why gross wins (+₹20,606.95) shrunk to +₹374.55 net. Identified the 5 core vulnerabilities: 20% micro-booking at +1.5R, dormant trailing runner engine prior to +5.0R, 1.5R giveback gap at Milestone 2 (+3.0R), total premium drop math flaw, and post-13:00 IST afternoon theta bleed.
Engineered the 5 structural solutions: (1) Rebalanced booking to 40% at +1.5R, 30% at +3.0R, 15% at +5.0R (15% runner); (2) Activated dynamic runner evaluation across PARTIAL_1, PARTIAL_2, and RUNNER; (3) Ratcheted Milestone 2 stop to at least +2.0R lock; (4) Tiered Accumulated Dollar Gain Retention (65%/75%/80%); and (5) Afternoon Theta Stagnation Defense (exits stagnant trades flat ≥25m post-13:00 IST at 85% peak gain).
Successfully executed the complete local test suite with all 468 unit tests passing (100% with zero regressions). Deployed updated models, runner engine, and trade manager to AWS EC2 (13.207.146.76). Restarted and validated nifty-runner.service via systemd with verified healthy daemon status. Authored marketing presentation deck (system_presentation_deck.html) and comprehensive milestones chronicle.