INVITE-ONLY SCRIPT

Support & Resistance (高成交量箱体)

46
支撑与阻力(高成交量箱体)— 基于成交量方向与枢轴点自动绘制“箱体”支撑/阻力,突破变虚线、保持为实线,并用中文字符“阻/撑”与标签提示突破与回测;作者:李天天;Pine v5,叠加到主图。
Name: Support & Resistance (High-Volume Boxes) — auto-draws “box” support/resistance from directional volume and pivot points; dashed when broken and solid when held, with Chinese glyphs “阻/撑” and labels highlighting breakouts/retests; Author: Li Tiantian; Pine v5, overlay on price.

阻力支撑箱体

原理:以 K 线涨跌判定买卖量,构造“正负成交量”序列;当出现 pivot low 且正量显著 时在低位绘制支撑箱体,出现 pivot high 且负量显著 时在高位绘制阻力箱体;箱体厚度 = ATR(200) × 宽度系数,右边界随时间自适应延展。
Mechanism: classify up/down bars to build a signed volume stream; draw a support box at a pivot low with strong positive volume and a resistance box at a pivot high with strong negative volume; box thickness = ATR(200) × width factor, with the right edge auto-extended over time.

阻力支撑箱体

突破与保持:价格 向上穿越阻力上沿 记为突破阻力,未上破阻力 记为阻力保持;价格 向下穿越支撑下沿 记为跌破支撑,未跌破支撑 记为支撑保持;突破后箱体边框改为虚线并改变底色透明度。
Break & hold: crossing above resistance upper band flags a breakout, failing to close above resistance means it holds; crossing below support lower band flags a breakdown, failing to close below support means it holds; after break, the box switches to dashed border and adjusted fill.

阻力支撑箱体

可视化:图上绘制 “阻力保持=‘阻’(红,K线上方)/ 支撑保持=‘撑’(绿,K线下方)”;当 阻力转支撑 或 支撑转阻力 且保持时,分别用“撑”或“阻”标记;同时在突破当根前一根位置打出 “突破阻力 / 跌破支撑” 标签。
Visualization: plots “阻” (red, above bars) for resistance hold and “撑” (green, below bars) for support hold; when resistance flips to support or support flips to resistance and holds, it prints “撑” or “阻” accordingly; breakout labels (“Break Resistance” / “Break Support”) are printed one bar back at the level.

阻力支撑箱体

参数与设置:回看周期 控制 pivot 灵敏度(越大越稳健);成交量差过滤长度 用于筛除低量噪声(越大越严格);箱体宽度调整 以 ATR(200) 为基准控制箱体厚度;最大箱体数默认 50。
Inputs & settings: Lookback period tunes pivot sensitivity (larger = more robust); volume-delta length filters low-volume noise (larger = stricter); box width factor scales thickness from ATR(200); max box count defaults to 50.

阻力支撑箱体

使用方法:将脚本添加至图表并叠加主图→根据品种与周期调大/调小回看周期与成交量过滤→用箱体边界作为结构位,观察“阻/撑”与标签提示 突破/保持/转换 来辅助判定进出场与止损迁移。
How to use: add to chart (overlay) → calibrate lookback and volume filtering for your symbol/timeframe → treat box bounds as structure levels; read “阻/撑” and labels for break/hold/flip to guide entries and stop adjustments.

阻力支撑箱体

调参建议:波动剧烈或假突破多时,提高回看周期 与 加大过滤长度;趋势单边强时,可略 放宽过滤 以更快识别新箱体;箱体过厚影响精度时,下调 箱体宽度调整。
Tuning tips: in whipsaw/high-noise markets, increase lookback and raise filter length; in strong one-sided trends, loosen filtering to detect fresh boxes earlier; if boxes look too thick, reduce the width factor.

阻力支撑箱体

注意事项:本指标不含 alertcondition,主要依靠可视标记;对象数量受平台上限影响,历史过长或频繁触发时可适当缩短回看或减少过滤开销;仅作为技术参考,不构成交易建议。
Notes: no built-in alertcondition; use the on-chart marks for cues; object counts are platform-limited—trim history or adjust filters if performance/clutter arises; for research only, not investment advice.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.