Simple slope strategy — Intel, 1-second prices

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.

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.

Results by window — Intel, all 20 days

Why it performs poorly

This window, every Intel day

Same rule on 29 other stocks × 20 days ($10,000 per stock per day)

Raw data: summary.json. Prices are the free IEX feed (last trade each second).