OPEN-SOURCE SCRIPT
24H Volume Anomaly Indicator

检测任意K线周期下的24小时累计成交量异动,对放量K线染色并支持自定义均线/颜色/警报。
注意:只适合加密市场
【1】24小时累计成交量
自动适配当前K线周期,将成交量聚合为24小时累计值,
适合发现不同时段间的资金活跃度变化。
【2】异动检测与K线染色
以历史N根K的24H成交量均线为基准,
当当前24H成交量超过「均线 × 倍数阈值」时,
对当前K线进行半透明染色:
- 阳线(收涨):红色
- 阴线(收跌):绿色
【3】可调均线系统
支持 EMA / SMA / WMA 三种均线类型,
均线周期(默认90根K)和倍数阈值均可自定义。
【4】 副图可视化
- 24H成交量柱(异动时变色,非异动时为默认灰色)
- 均线参考线(叠加于成交量柱上方)
【5】预警功能
异动触发时可通过 TradingView 警报系统推送通知。
━━━━ 参数说明 ━━━━
均线设置
· 均线周期:计算均线的K线根数(默认90)
· 均线类型:EMA / SMA / WMA
异动检测
· 异动倍数阈值:当前量 > 均线 × 倍数(默认1.0)
颜色设置
· 放量阳K颜色、阴K颜色、均线颜色、成交量柱颜色均可自定义
副图显示
· 显示/隐藏成交量柱和均线参考线
━━━━ 注意事项 ━━━━
本指标使用 request.security() 获取多时间周期数据,
创建警报时会提示"计算基于重绘指标",属正常现象,勾选确认即可。
注意:只适合加密市场
【1】24小时累计成交量
自动适配当前K线周期,将成交量聚合为24小时累计值,
适合发现不同时段间的资金活跃度变化。
【2】异动检测与K线染色
以历史N根K的24H成交量均线为基准,
当当前24H成交量超过「均线 × 倍数阈值」时,
对当前K线进行半透明染色:
- 阳线(收涨):红色
- 阴线(收跌):绿色
【3】可调均线系统
支持 EMA / SMA / WMA 三种均线类型,
均线周期(默认90根K)和倍数阈值均可自定义。
【4】 副图可视化
- 24H成交量柱(异动时变色,非异动时为默认灰色)
- 均线参考线(叠加于成交量柱上方)
【5】预警功能
异动触发时可通过 TradingView 警报系统推送通知。
━━━━ 参数说明 ━━━━
均线设置
· 均线周期:计算均线的K线根数(默认90)
· 均线类型:EMA / SMA / WMA
异动检测
· 异动倍数阈值:当前量 > 均线 × 倍数(默认1.0)
颜色设置
· 放量阳K颜色、阴K颜色、均线颜色、成交量柱颜色均可自定义
副图显示
· 显示/隐藏成交量柱和均线参考线
━━━━ 注意事项 ━━━━
本指标使用 request.security() 获取多时间周期数据,
创建警报时会提示"计算基于重绘指标",属正常现象,勾选确认即可。
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.