OPEN-SOURCE SCRIPT
EMA Envelope + SMA + Purple Dot

This indicator combines three tools into one:
📈 EMA Envelope with wedge and range contraction signals to highlight volatility squeezes.
🔵 SMA with optional smoothing (SMA/EMA/WMA/SMMA/VWMA) and optional Bollinger Bands.
🟣 Purple Dot “PowerBars” that mark strong momentum bars when price ROC (%) and volume exceed user-defined thresholds.
It also includes:
Background highlighting of contraction zones (bullish/bearish/neutral colors).
A summary table showing PowerBar count and return (%) over custom lookback periods.
Flexible display settings (table position, dark/light theme, highlight toggle).
Designed for traders who want to track momentum bursts, volatility contraction, and trend strength all in one tool.
📈 EMA Envelope with wedge and range contraction signals to highlight volatility squeezes.
🔵 SMA with optional smoothing (SMA/EMA/WMA/SMMA/VWMA) and optional Bollinger Bands.
🟣 Purple Dot “PowerBars” that mark strong momentum bars when price ROC (%) and volume exceed user-defined thresholds.
It also includes:
Background highlighting of contraction zones (bullish/bearish/neutral colors).
A summary table showing PowerBar count and return (%) over custom lookback periods.
Flexible display settings (table position, dark/light theme, highlight toggle).
Designed for traders who want to track momentum bursts, volatility contraction, and trend strength all in one tool.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.