import React from 'react'; import { Settings, X } from 'lucide-react'; interface ScannerBlueprintModalProps { isOpen: boolean; onClose: () => void; } export default function ScannerBlueprintModal({ isOpen, onClose }: ScannerBlueprintModalProps) { React.useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { if (e.key === 'Escape') { onClose(); } }; if (isOpen) { window.addEventListener('keydown', handleKeyDown); } return () => { window.removeEventListener('keydown', handleKeyDown); }; }, [isOpen, onClose]); if (!isOpen) return null; return (
{/* Modal Header */}

Anomalies Scanner - Operational Blueprint

System User Manual & Interface Mechanics

{/* Modal Body */}

Scanner Metrics & Signals

Operational details of the anomaly scanner and valuation filters.

{/* Core Mechanics */}

1. 52-Week Drop Mechanics

Filters the stock database for liquid companies trading at significant percentage discounts relative to their 52-week peak. Isolates severe drawdowns caused by asymmetric market overreactions.

2. Welles Wilder RSI-14 Velocity

Uses the smoothed Wilder Relative Strength Index to identify deep oversold thresholds (RSI < 25). Momentum velocity measures standard deviation shocks in the indicator to forecast buy-exhaustion and selloff capitulations.

3. FMP Valuation Overlay

Parses active valuation multiples: Price-to-Earnings (P/E), Price-to-Book (P/B), Dividend Yield, and Price/Earnings-to-Growth (PEG) ratios. Analyzes whether the selloff is justified fundamentally or is a dislocation from value.

{/* Interface Specifications */}

User Actions & Interface Mechanics

Diagnostic Drawers: Clicking on any row in the scanner table opens an interactive drawer where you can analyze the drop catalyst: *Systemic Selloff, Supply Chain Disruption, Executive Shift, Regulatory Issue / Fine,* or *Earnings Miss*.

GJR-GARCH Rebound Probability: The drawer displays a real-time rebound probability score. The GJR-GARCH model calculates conditional downside volatility, while the selected catalyst dynamically adjusts the rebound expectations based on historical asset-recovery statistics.

Deep-Check Search Mask: Permits manual lookup of individual tickers. Ingests cash flow and balance sheet metrics from the backend API, displaying current Sloan ratios and GJR-GARCH conditional Value-at-Risk limits.

); }