OPEN-SOURCE SCRIPT
已更新 Swing-Based Volatility Index

Swing-Based Volatility Index
This indicator helps traders quickly determine whether the market has moved enough over the past few hours to justify scalping.
It measures the percentage price swing (high to low) over a configurable time window (e.g., last 4–8 hours) and compares it to a minimum threshold (e.g., 1%).
✅ If the percent move exceeds the threshold → Market is volatile enough to scalp (green background).
🚫 If it's below the threshold → Market is too quiet (red background).
Features:
Adjustable lookback period in hours
Custom threshold for volatility sensitivity
Automatically adapts to the current chart timeframe
This tool is ideal for scalpers and short-term traders who want to avoid entering trades in low-volatility environments.
This indicator helps traders quickly determine whether the market has moved enough over the past few hours to justify scalping.
It measures the percentage price swing (high to low) over a configurable time window (e.g., last 4–8 hours) and compares it to a minimum threshold (e.g., 1%).
✅ If the percent move exceeds the threshold → Market is volatile enough to scalp (green background).
🚫 If it's below the threshold → Market is too quiet (red background).
Features:
Adjustable lookback period in hours
Custom threshold for volatility sensitivity
Automatically adapts to the current chart timeframe
This tool is ideal for scalpers and short-term traders who want to avoid entering trades in low-volatility environments.
發行說明
📊 Swing-Based Volatility IndexThe Swing-Based Volatility Index is a tool for short-term traders and scalpers that evaluates whether the market has shown enough recent movement to justify initiating trades.
🧠 How It Works
This indicator measures the percentage swing between the highest and lowest prices over a user-defined lookback period (in hours). It dynamically calculates how many candles that represents based on the chart's current timeframe.
It then computes:
Swing % = (Highest High - Lowest Low) / Lowest Low × 100
This swing percentage is compared to a minimum volatility threshold (e.g., 1%). If the market has moved more than the threshold, it's considered sufficiently volatile for scalping.
✅ Signal Conditions
Green Background = Swing % exceeds your threshold → market is active, favorable for scalping.
Red Background = Swing % is below your threshold → market is calm, avoid trades.
⚙️ Features
Adjustable lookback period (in hours)
Configurable volatility threshold
Automatically adapts to any chart timeframe
Visual background coloring to guide decision-making
🎯 Use Case
This indicator is best used as a volatility filter before entering trades. It helps avoid choppy, range-bound environments where scalping strategies may perform poorly. Instead, it highlights conditions where price has moved significantly over recent hours — often indicating momentum or breakout potential.
Updated Indicator Name.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。