import React from 'react'; import { BookOpen, X } from 'lucide-react'; import 'katex/dist/katex.min.css'; import { BlockMath, InlineMath } from 'react-katex'; interface InsiderMathModalProps { isOpen: boolean; onClose: () => void; } export default function InsiderMathModal({ isOpen, onClose }: InsiderMathModalProps) { 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 */}

Insider Activity - Math & Logic Specification

Institutional Specification Manual

{/* Modal Body */}

3. Insider Activity Cluster Engine

Identifies corporate alignment patterns by tracking Form 4 open market purchases.

A. Filings Parser Pipeline

Analyzes SEC Form 4 filings XML streams to detect corporate insider purchases:

  • Transaction Code filter: isolates code P (Open Market Purchase) and discards codes like M (option exercises).
  • Rule 10b5-1 filter: purges automatic pre-planned sales or purchases to identify purely discretionary trades.

B. Clustering Algorithm

Insiders have unique company information, but clusters yield highest significance. A cluster is registered if:

Insiders must represent distinct entities (e.g. CEO, CFO, and Directors trading concurrently).

C. Insider Intensity Weighting

The Insider Intensity Score scales signals based on size, conviction value, and count of participants:

D. Overreaction Coupling

The engine cross-references corporate clusters with the Overreaction Scanner, isolating stocks with the highest rebound probabilities:

{"If "}{" and "}{":"}
Prioritize tickers showing asymmetric insider buying during panic drops, suggesting fundamental divergence from market sentiment.

); }