Viprasol Trendline Volume Breakout## Overview
The Trendline Volume Breakout (TVB) indicator automatically detects trendlines from pivot points, extends them in real time, and confirms breakouts with volume surge validation. It handles both bearish (descending) and bullish (ascending) trendlines, scoring every breakout on a 0-10 scale based on trendline age, volume quality, slope steepness, and candle displacement.
Designed for breakout traders, this tool eliminates manual trendline drawing while adding institutional-quality filters that separate high-probability breaks from noise.
## How It Works
**Trendline Detection:**
The indicator identifies consecutive pivot highs (for bearish/descending trendlines) and pivot lows (for bullish/ascending trendlines). A slope factor threshold ensures only meaningfully angled trendlines are tracked. Duplicate/overlapping trendlines are automatically filtered out.
**Breakout Confirmation:**
A breakout fires when price closes beyond the trendline by a configurable percentage. Before display, each breakout is validated through:
- Volume surge gate: volume must exceed its moving average by a user-defined percentage
- The breakout candle must satisfy both price and volume conditions simultaneously
**Breakout Scoring (0-10):**
Every confirmed breakout receives a quality rating:
- Trendline age (+1 to +3 — older trendlines = more significant breaks)
- Volume surge present (+3)
- Slope steepness (+1 to +2)
- Displacement candle quality (+2 — large body ratio)
**Retest Detection:**
After a breakout, the indicator watches for price to return to the broken trendline level within a configurable window. A confirmed retest (touch + close in breakout direction) is marked with an RT label.
## Key Features
- **Dual Trendline Detection** — both descending (bearish) and ascending (bullish) trendlines from pivot points
- **Volume Surge Gate** — configurable volume threshold filters out low-conviction breakouts
- **Breakout Scoring (0-10)** — transparent quality rating with star system and tooltip breakdown
- **Retest Detection** — automatic identification of pullbacks to broken trendline levels
- **Smart TP/SL** — ATR-based targets (TP1/TP2) with stop loss projected from breakout point
- **Channel / Polygon Modes** — parallel channel bands or polygon fill from trendline to extreme
- **Trendline Age Labels** — periodic display of how many bars old each active trendline is
- **Volume % Bar** — optional visual bar showing volume surge magnitude on breakout
- **Duplicate Filtering** — overlapping trendlines are automatically removed
- **Info Dashboard** — active trendline count, breakout totals, last score, volume surge status
- **Dynamic v6 Alerts** — ticker, timeframe, price, score, and volume % in every alert message
- **6 Alert Conditions** — bullish/bearish breakout, high-confidence, any breakout, volume surge
## How to Use
1. **Apply to a standard candlestick chart** on any liquid instrument
2. **Trendlines appear automatically** as pivot highs/lows form
3. **Watch for BO labels** — breakouts are marked with direction arrows and star ratings
4. **Check tooltips** on breakout labels for detailed score breakdown
5. **Monitor retest labels (RT)** for potential re-entry opportunities
6. **TP/SL lines** give clear risk-reward targets from the breakout point
7. **Dashboard** shows active trendline count and breakout statistics
**Recommended Settings:**
- Scalping (1m-5m): Pivot Length 2, Breakout % 1-2, Volume Surge 30%
- Day Trading (5m-15m): Default settings (Pivot 3, Breakout 3%, Volume 50%)
- Swing Trading (1H-4H): Pivot Length 4-5, Breakout % 4-5, Volume Surge 60%
## Settings
| Group | Description |
|---|---|
| Trendline Detection | Pivot length, slope factor, bearish/bullish toggle, age labels |
| Breakout Settings | Breakout percentage threshold |
| Volume Confirmation | Surge %, require volume toggle, volume MA period, volume bar |
| Visual Mode | Channel vs Polygon, shading toggle |
| Retest Detection | Enable/disable, retest window, tolerance % |
| Take Profit / Stop Loss | ATR-based SL, R:R ratios for TP1/TP2, display bars |
| Dashboard | Position, size, visibility |
| Style | Bull/bear/channel/breakout/background colors |
## Alerts
**Dynamic Alerts (v6):**
- Bullish breakout (descending TL broken upward) with score, volume %, ticker, price
- Bearish breakout (ascending TL broken downward) with score, volume %, ticker, price
**Static Alert Conditions:**
- Bullish Breakout / Bearish Breakout
- High Score Bullish BO (7+/10) / High Score Bearish BO (7+/10)
- Any Breakout (either direction)
- Volume Surge (above threshold)
## Limitations & Disclaimer
- This is an analytical overlay, NOT a trading system. Always use proper risk management.
- Trendline detection is based on pivot points — very short-term noise can create false trendlines on low timeframes.
- Breakout scoring is a heuristic guide — higher scores correlate with but do not guarantee better outcomes.
- Channel mode uses polylines which have a TradingView limit of 100 per chart.
- Best used on liquid markets where volume data is reliable.
- Use standard candlestick charts for accurate breakout detection.
## Credits
Based on the "Trendline Breakout with Volume Confirmation" concept by Dots3Red. Significantly enhanced with bullish trendline detection, breakout scoring, retest detection, smart TP/SL, trendline age labels, configurable volume gate, dashboard, and dynamic alerts under Viprasol branding.
Pine Script®指標






















