OPEN-SOURCE SCRIPT

Volume mura vision

63
Overview
A simple, readable volume tool that highlights volume spikes relative to a moving-average baseline. Bars are color-coded:
  • Spike UP (price closed up)
  • Spike DOWN (price closed down)
  • Below-average volume
  • Near/above MA but not a spike (neutral)

Optional: plot the selected Volume MA as a line.

How it works
1. Compute a Volume MA (SMA/EMA/RMA/WMA) over Volume MA Length.
2. A spike occurs when Volume ≥ MA × (1 + Spike threshold%).
3. Bar color:
  • Spike + up candle → Spike UP color
  • Spike + down candle → Spike DOWN color
  • Volume < MA → Below-MA grey
  • Otherwise → Base grey

4. The MA line can be shown/hidden.

Inputs
  • Volume MA Length (len) — lookback for the volume moving average.
  • Spike threshold (%) over MA (thr_pct) — how far above the MA a bar must be to count as a spike.
  • MA Type (ma_type) — SMA / EMA / RMA / WMA for the volume baseline.
  • Show MA line (showMA) — toggle the MA overlay on the volume pane.

Colors
  • Base grey — volume near/above MA but below spike threshold.
  • Below-MA grey — volume below the MA.
  • Spike UP — spike on an up candle (close ≥ open).
  • Spike DOWN — spike on a down candle.

Alert
Volume spike — fires when Volume ≥ MA × (1 + threshold).

Usage tips
  • Lower the threshold to catch more activity; raise it to see only major bursts.
  • Shorter MA length reacts faster (more spikes); longer length smooths noise.
  • Combine with price action (breakouts, reversals) to confirm whether spikes signal participation or exhaustion.

Disclaimer
Educational tool, not financial advice. Trading involves risk.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.