Editors' picks
OPEN-SOURCE SCRIPT
Updated

Deviation Trend Profile [BigBeluga]

39 324
🔵 OVERVIEW
A statistical trend analysis tool that combines moving average dynamics with standard deviation zones and trend-specific price distribution.
This is an experimental indicator designed for educational and learning purposes only.

🔵 CONCEPTS
  • Trend Detection via SMA Slope: Detects trend shifts when the slope of the SMA exceeds a ±0.1 threshold.
  • Standard Deviation Zones: Calculates ±1, ±2, and ±3 levels from the SMA using ATR, forming dynamic envelopes around the mean.
  • Trend Distribution Profile: Builds a histogram that shows how often price closed within each deviation zone during the active trend phase.


🔵 FEATURES
  • Trend Signals: Immediate shift markers using colored circles at trend reversals.
  • SMA Gradient Coloring: The SMA line dynamically changes color based on its directional slope.
    snapshot
  • Trend Duration Label: A label above the histogram shows how many bars the current trend has lasted.
    snapshot
  • Trend Distribution Histogram: Visual bin-based profile showing frequency of price closes within deviation bands during trend lookback period.
    snapshot
  • Adjustable Bin Count: Set the granularity of the distribution using the “Bins Amount” input.
  • Deviation Labels and Zones: Clearly marked ±1, ±2, ±3 lines with consistent color scheme.
    snapshot
  • Trend Strength Insight:
      • Wide profile skewed to ±2/3 = strong directional trend.
      • Profile clustered near SMA = potential trend exhaustion or range.
    snapshotsnapshotsnapshot


🔵 HOW TO USE
  • Use trend shift dots as entry signals:
      • 🔵 = Bullish start
      • 🔴 = Bearish start
  • Trade with the trend when price clusters in outer zones (±2 or ±3).
  • Be cautious or fade the trend when price distribution contracts toward the SMA.
    snapshot
  • View across multiple timeframes for trend confluence or divergence.


🔵 CONCLUSION
Deviation Trend Profile [BigBeluga] visualizes how price distributes during trends relative to statistical deviation zones.
It’s a powerful confluence tool for identifying strength, exhaustion, and the rhythm of price behavior—ideal for swing traders and volatility analysts alike.
Release Notes
-thumbnail
Release Notes
-

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.