Quantitative Platform Blueprint & Execution Handbook
A comprehensive, mathematically rigorous reference manual for professional traders, quantitative analysts, and fundamental investors. Learn the formulas, invalidation rules, statutory insider metrics, legislative alignment algorithms, and portfolio risk equations powering this terminal.
Chapter 1: The 4 In-Terminal Workspaces & Viewport-Adaptive Architecture
Traditional financial terminals force analysts to scroll through dozens of stacked widgets, causing severe cognitive overload and losing chart context. Our terminal splits analysis into 4 modular domains anchored directly beneath the live price chart, with fully responsive viewport layout optimization:
Answers: โWhere do I enter, where is my stop, and when do I take profit?โ Houses the Minervini VCP accumulation ladder, Intraday Position Sizer, and ATR14 volatility bands.
Answers: โWhat are politicians, corporate executives, and option market makers doing?โ Displays US House/Senate STOCK Act filings, Legislative Alignment Index (0-100), dark pool ATS volumes, and options sweeps.
Answers: โHow healthy is the company and what is the macro regime?โ Displays 5-Factor profile radar, 9-point Piotroski F-Scores, and FRED 10Y-2Y yield curve spreads.
Answers: โIf a peer or supplier collapses, how does the shock cascade?โ Displays directed supply-chain topologies, Cornish-Fisher M-VaR, and self-healing hit rate calibrations.
๐ฑ Mobile-First Layout Reordering & Viewport Physics
On mobile viewports (<1024px), the terminal dynamically inverts DOM order (order-1 lg:order-2) so the active ticker hero, price, timeframe controls, and candlestick chart appear at the focal top. The Watchlist sidebar collapses into an intuitive accordion with horizontally scrollable filter pills (overflow-x-auto no-scrollbar) and auto-collapses upon selecting a ticker.
Chapter 2: Interactive Dual-Horizon Candlestick & Indicator Engine
The platform embeds an institutional TradingView Lightweight Charts canvas that dynamically adapts its time scale, indicators, and mathematical percentage baselines according to your selected trading persona:
- Timeframes:
1m(45-min scalp),5m(3.75-hr session),15m(12-hr multi-session),1h(weekly trend). - Primary Overlay: Volume-Weighted Average Price (VWAP) in amber (
#f59e0b). Institutional benchmark for intraday mean-reversion. - Time Scale: Microsecond UTC Unix epoch timestamps formatted for high-frequency price action.
- Horizons:
1M(22 daily bars),6M(130 daily bars),1Y(252 daily bars),3Y(156 weekly bars),5Y(60 monthly bars). - Primary Overlay: 20 Exponential Moving Average (20 EMA) in sky blue (
#38bdf8). Dynamic support floor for institutional pullbacks. - Time Scale: Calendar-accurate ISO
YYYY-MM-DDdate formatting with strict monotonic ordering.
๐ฏ Metric Disambiguation: Watchlist Row vs. Chart Header Return
To eliminate confusion between short-term noise and long-term trends, the terminal explicitly separates two distinct percentage return calculations:
Measures purely today's daily trading change relative to yesterday's closing bell (e.g. +2.65% 24H).
Measures total cumulative trajectory across the active dataset with explicit horizon pill tag (e.g. +28.40% 1Y or +0.80% 5M).
Chapter 3: Algorithmic Execution Formulas, ATR States & Screener Math
Our execution engine replaces emotional discretion with concrete mathematical boundaries based on Mark Minervini's Volatility Contraction Pattern (VCP) and Linda Raschke's 20 EMA pullback setup.
๐ 1. Exact Position Sizing Equation
Never risk more than your pre-defined capital threshold ($1\%โ2\%$ of account equity per trade). The terminal calculates exact share volume using:
Example: With a \$50,000 portfolio risking 1% (\$500) buying NVDA at \$213.05 with a Stop Loss at \$201.35 (\$11.70 per share risk), the sizer dictates buying exactly 42 shares.
๐ฏ 2. Dual Take-Profit Ladder (TP1 & TP2)
Formula: Spot + (2.5 * ATR14). Once price touches TP1, scale out 50% of the position to lock in profit and automatically raise the stop loss on the remaining 50% to breakeven.
Formula: Spot + (4.5 * ATR14). Trail the remaining 50% runner along the 20 EMA until a daily candle closes below the moving average.
โก 3. The 4 Mathematical ATR Execution States
Every candidate in the terminal and screener is dynamically classified into one of four disjoint execution states based on price relative to ATR bands:
Condition: Optimal Entry Min โค Spot โค Optimal Entry Max. Asset is resting directly inside institutional accumulation volume.
Condition: Optimal Entry Max < Spot < Target 1. Trade is active and trending toward the first scale-out level.
Condition: Spot > Target 1. Price is extended past ATR bands; buying here carries elevated mean-reversion risk.
Condition: Spot < Stop Loss. Technical structure has broken down; strict capital preservation dictates exiting.
๐ 4. Screener Numerical Filter Thresholds
Chapter 4: Congressional STOCK Act, Legislative Alignment & Staleness Decay
Under Public Law 112-105 (Stop Trading on Congressional Knowledge Act of 2012), members of the US Congress and Senate are legally mandated to disclose securities transactions within 45 days. The terminal processes these disclosures through a quantitative intelligence pipeline:
โ๏ธ 1. Quantitative Legislative Alignment Index (0โ100)
ALGORITHMMeasures the empirical strength of regulatory and legislative tailwinds behind a politician's trade:
- Committee Jurisdiction Overlap (+16 to +32 pts): Direct committee oversight matching asset sector (e.g., Armed Services/Intelligence purchasing Defense AI; Energy & Commerce purchasing Semiconductors; Foreign Affairs purchasing global pharma).
- Dollar Sizing Bracket (+5 to +15 pts): Scales conviction according to transaction size ($50kโ$100k, $250kโ$500k, $1Mโ$5M).
- 3-Year Historical Track Record (+4 to +10 pts): Factors in audited multi-year politician win rates (>75%) and annualized alpha.
โฑ๏ธ 2. STOCK Act Filing Latency & Signal Time-Decay
RISK PROTECTIONIf a politician disclosed a trade 60 days after execution, the price move is already priced in. To protect retail traders from buying stale news, the terminal applies an exponential time-decay penalty:
0 pt penalty. 100% full signal conviction.
-5 pt penalty. Normal statutory compliance.
-16 pt penalty. Approaching statutory deadline.
-32 pt penalty. Explicit priced-in mean reversion warning.
๐๏ธ 3. Regulatory Policy Milestones in Catalyst Engine
Upcoming legislative committee hearings (e.g. AI Compute Export Control Waivers, Medicare GLP-1 Coverage Votes, DoD NDAA Appropriations Reviews) are directly mapped into the ticker catalyst calendar alongside earnings and clinical trial readouts.
Chapter 5: 5-Factor Fundamental DNA & Piotroski Score
The platform synthesizes thousands of fundamental balance sheet data points into a multi-dimensional quantitative profile:
Calculated via 3-year revenue CAGR, forward EPS expansion rate, and free cash flow acceleration.
Measures Return on Invested Capital (ROIC > 15%), gross profit margin moats, and low financial leverage.
Derived from PEG ratio, EV/EBITDA multiple discounts, and enterprise DCF fair value spreads.
Scores 8-9 indicate pristine balance sheet quality; scores โค 3 signal structural accounting insolvency.
Chapter 6: Mathematical Invariants, Cornish-Fisher VaR & Self-Healing Engine
Standard Gaussian Value-at-Risk assumes symmetric normal distributions, severely underestimating fat-tail crash risks in equity markets. Our quantitative engine applies a polynomial Cornish-Fisher expansion adjusted for non-normal Skewness and excess Kurtosis:
Cornish-Fisher Expansion Formula:
Where S is sample skewness (clipped to [-3.0, 3.0]) and K is excess kurtosis (clipped to [-1.0, 10.0]). This eliminates polynomial inversion on outlier shocks and strictly guarantees that 99% VaR is more conservative than 95% VaR.
The terminal guarantees: Stop Loss < Optimal Entry Min โค Optimal Entry Max โค Current Spot < Target 1 < Target 2. Accumulation zones are strictly capped at or below spot price.
Sortino, Calmar, Pain, and Reward-to-Risk ratios enforce minimum denominator floors to prevent artificial ratio spikes on ultra-tight stops.
๐ค The Self-Healing Forecast Auditor
AUTO-CALIBRATIONThe engine continuously audits its own forward price and risk predictions through a 3-pillar self-healing mechanism:
- Kupiec Proportion of Failures (POF) Test: Statistically tests if actual price breaches exceed the nominal VaR confidence level (ฮฑ = 5%).
- Walk-Forward RMSE Error Tracking: Measures root-mean-square forecasting errors over rolling 30-day windows.
- Dynamic Volatility Expansion: If forecast errors widen, the model automatically expands confidence intervals by +15% to preserve conservative risk bounds.
Chapter 7: Multi-Source Synthesis, FRED Macro Regimes & Cross-App Sync
Pure technical price action creates frequent false breakouts when market liquidity is hostile. To eliminate blindspots, the terminal continuously correlates 4 authoritative quantitative streams into a unified Composite Conviction Score (0โ100):
Tracks 10Y-2Y Treasury Yield Curve spreads (T10Y2Y) and High-Yield Option-Adjusted Credit Spreads (BAMLH0A0HYM2). Applies a dynamic 0.5x to 1.25x Macro Risk Multiplier to scale position budgets based on systemic credit stress.
Filters open-market stock purchases (โฅ $100,000 USD) by CEOs, CFOs, and Board Directors under Section 16(a) of the Securities Exchange Act of 1934 (mandatory 2-day disclosure). Verified directly against official SEC EDGAR CIK databases.
Embedded directly into the main chart header to answer โWhy is this stock moving today?โ in under 1 second, connecting earnings beats, FDA trial readouts, and AI chip demand to price momentum.
Synchronizes positions across /, /portfolio, and /screener using unified local storage keys (FINANCE_USER_PORTFOLIO and FINANCE_PORTFOLIO_V1) with zero manual re-entry.
Chapter 8: The No-BS Plain-English Jargon Buster
Wall Street loves complicated words because it lets them charge high management fees. Here is what all that technical jargon actually means in plain, unfiltered human English:
The Worst-Case Crash Test
If the market has a terrible day tomorrow, how much money will you actually lose? VaR 95% means โ19 out of 20 days, your losses wonโt exceed this number.โ
The BS & Accounting Truth Detector
A 9-point checklist created by a Stanford professor to see if a company is secretly drowning in debt or actually printing real cash. A score of 8 or 9 means their financial books are squeaky clean.
Money-Making Efficiency
If you hand the CEO \$100, how many dollars do they bring back? An ROIC of 25% means they turn every \$100 of invested cash into \$25 of pure profit every single year.
The Politician Delay Penalty
US politicians are legally allowed up to 45 days to tell the public what stocks they bought. If a politician bought 35 days ago, you are seeing old news โ beware of chasing green candles late.
Downside Body Armor
Like the famous Sharpe ratio, but smarter: it only punishes the stock for scary drops, without penalizing it for explosive upside gains. Higher is better.
The Coiled Spring Setup
When a stock goes from wild 15% daily swings down to calm 2% swings on low volume, sellers have run out of ammo. When buyers step back in, it erupts like a coiled spring.