Richard Donchian’s channels are among the oldest systematic trading tools. The Turtle Traders used them in the 1980s. The rules were simple: buy when price breaks above the 20-bar high, sell when it breaks below the 20-bar low. The math is equally simple: Three lines. No smoothing, no ratios, no weighting. Just the extremes and… Continue reading
Posts Tagged → algolithms
Why %K Broke the O(1) Pattern (and How I Fixed It)
Every indicator in quantedge-ta before the Stochastic Oscillator shares a design pattern: each new bar’s contribution decays over time. SMA: uniform average, old bars age out as the window slides. EMA: exponential weight, old contributions shrink but never hit zero. RSI: Wilder’s smoothing, same story. MACD: two EMAs composing. ATR: Wilder’s smoothing on True Range. None of… Continue reading