OPEN-SOURCE SCRIPT
已更新 Volume & Range Spike Diamond

Volume & Range Spike Diamond
Detect significant volume and price range breakouts directly on your chart with this intuitive indicator.
Key Features:
How It Works:
Customization Options:
Pine Script®
Alerts Configuration:
Enhance your trading strategy by detecting high-probability breakout opportunities with this reliable indicator!
Detect significant volume and price range breakouts directly on your chart with this intuitive indicator.
This TradingView indicator highlights bullish and bearish breakout opportunities by analyzing both volume and price range spikes. Perfect for identifying strong market movements in real-time.
Key Features:
- Volume Increase Threshold (%): Customize the percentage increase in volume required to trigger a spike.
- Price Range Increase Threshold (%): Define the percentage increase in the price range for additional precision.
- Volume Lookback Period: Set the number of bars to calculate the average volume for comparison.
- Bullish and Bearish Signals: Highlights bullish spikes below bars and bearish spikes above bars using colored diamonds.
- Detailed Labels: Optionally display labels with percentage increases for volume and range.
- Alerts Integration: Receive notifications for bullish and bearish breakout conditions.
How It Works:
- The indicator compares the current bar's volume to the average volume of previous bars over the specified lookback period.
- It also evaluates the price range (high - low) of the current bar against the previous bar.
- If both volume and price range exceed their respective thresholds, a breakout condition is flagged.
- Bullish spikes are displayed with upward-pointing diamonds below the bars, while bearish spikes use downward-pointing diamonds above the bars.
- Optional labels show detailed percentage increases for both metrics.
Customization Options:
// Inputs
volumeIncreaseThreshold = input.float(50, "Volume Increase Threshold (%)", minval=0, step=5)
rangeIncreaseThreshold = input.float(200, "Price Range Increase Threshold (%)", minval=0, step=5)
lookbackPeriod = input.int(5, "Volume Lookback Period", minval=1, maxval=50)
showLastLabel = input.bool(false, "Show Only Last Label")
Alerts Configuration:
- Bullish Volume Breakout: Triggered when a bullish spike is detected.
- Bearish Volume Breakout: Triggered when a bearish spike is detected.
Enhance your trading strategy by detecting high-probability breakout opportunities with this reliable indicator!
版本注释
Added market hours configuration.开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Support me on Patreon.
👉 patreon.com/MoneyMakerTradingView 👈
👉 patreon.com/MoneyMakerTradingView 👈
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Support me on Patreon.
👉 patreon.com/MoneyMakerTradingView 👈
👉 patreon.com/MoneyMakerTradingView 👈
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。