Rule: slope over the last W seconds (least squares). Not holding and slope > 0 → buy. Holding and slope < 0 → sell. Orders fill at the next actual trade. Open position at the close = forced exit. $10,000 at the start of each day, 1 bp cost per side (half of Intel's ~1.8 bp spread). The only variable is the window W.
Top: Intel price, green dot = buy, red dot = sell (red ✕ = forced exit at the close), green shading = holding. Bottom: the slope ($ per second) with the zero line. Hover any dot for price, time, slope at the decision and the trade's profit or loss. Drag to zoom (both panels stay aligned), double-click to reset.
Raw data: summary.json. Prices are the free IEX feed (last trade each second).