Karios Lab回测手记
← 返回

箱体 支撑/阻力 回测(2026-08-24)

2026-08-26 · 回测 · 验证

箱体 支撑/阻力 回测(2026-08-24)

问题:之前箱体→突破上涨→回踩箱体上沿止跌(支撑)/上涨至前箱体上沿止涨(阻力)是否成立?方法同 §22.7ahead 10d 分层,CN liquid1500 聚合 2023-01~2026-08n≥500 采信。

口径

  • 箱体n=20 / 60box_high = max(high,n) / box_low = min(low,n)shift(1) 前视隔离)。is_narrow = (box_high-box_low)/close < 20%分位(挤压箱体)。
  • 突破close > box_high(上破)/close < box_low(下破)。
  • 支撑回踩:上破后 20dclose ∈ [box_high*0.98, box_high*1.02]support_any)且 前箱 narrowsupport_narrow);另测 无突破过滤close ∈ [box_high, box_high*1.02](支撑)vs [0.98*box_high, box_high)(阻力)。
  • baseCN 1500 全票-日 10d 均值 +0.76% win47.5%up 0.54% / down 0.94%

支撑(上破→回踩)

箱体 条件 n mean median win vs base
20d up_support_any 上破后20d内回踩 46,950 +0.86% -0.20% 48.6% +0.10%
20d up_support_narrow 窄箱 12,821 +1.64% +0.48% 53.6% +0.88%
60d up_support_any 23,459 +0.90% -0.18% 48.8% +0.14%
60d up_support_narrow 7,235 +2.15% +0.44% 53.5% +1.39%

解读any 箱体回踩≈base(+0.1%),窄箱回踩才 +0.88~1.39% excess、median>0win53-54% 略优,但 未达 win>70% 杠杆线,且 median 0.44% 远小于 mean 2.15%(厚尾)。

阻力/支撑(无突破过滤,纯位置)

箱体 条件 n mean median win vs base
20d resist_any 接近上沿下方 0.98-1.00 88,702 +0.87% 0.00% 49.5% +0.11%
20d resist_narrow 窄箱 37,123 +1.46% +0.39% 52.9% +0.70%
20d support_any 站上沿上方 1.00-1.02 35,307 +1.21% 0.00% 49.6% +0.45%
20d support_narrow 窄箱 11,974 +2.17% +0.63% 54.8% +1.41%
60d resist_any 32,448 +1.16% +0.08% 51.1% +0.40%
60d resist_narrow 14,219 +1.77% +0.32% 53.2% +1.01%
60d support_any 14,962 +1.23% +0.02% 50.2% +0.47%
60d support_narrow 5,383 +2.21% +0.22% 53.1% +1.45%
20d break_up 上破当日 60,227 +1.35% -0.48% 47.4% +0.59%
20d break_down 下破 81,035 +1.03% 0.00% 49.7% +0.27%

解读

  • 支撑成立但弱:窄箱支撑 +2.17~2.21% 为全场最强 Excess +1.4%,但 win53-54% median 0.2-0.6%未达 70% 高置信,且 any 箱仅 +0.4%
  • 阻力不成立上涨至前箱体上沿 本应 mean<0(止涨下跌),实测 resist_any +0.87%~1.16% win49-51% 仍为正,窄箱亦 +1.46~1.77% 正向 — 价格并未在前高压制,继续上涨,与直觉相反。break_up +1.35% 亦正向,说明突破延续而非假突破。

结论(记录)

  1. “箱体支撑”有 +1.4% 弱 edge,仅窄箱60d narrow support +2.15% (+1.39% excess) win53.5% n7k20d +2.17% win54.8%CN 上箱体最强,但 mean-median 1.7%win≈53%属厚尾小样本偏态,非 win>70%可杠杆天平,作提示层可以。
  2. “箱体阻力”证伪上涨至前箱体止涨20d/60dmean>0+0.87~1.77%),阻力并未阻止上涨n32-88k 大样本下仍正向,不可用作止盈/止涨依据。
  3. 不进系统:不纳入 S-3 参数表、不改 sleeve 择优;窄箱支撑 可作 holdings 提示(“回踩窄箱上沿 +2.1% 弱支撑”),但 excess<2% win≈53% 不加仓。箱体 本质是 MA20±2σbw 窄化版,与 bollinger squeeze +0.93% 同量级。

脚本:box_high/low n=20/60 + 20d回踩窗口 + ahead10d + daily 1500 liquid 聚合;数据 daily 2023-01~2026-08cost 未扣不改结论。