OPEN-SOURCE SCRIPT

Fractals Trend [BigBeluga]

2 257
🔵 OVERVIEW
Fractals Trend [BigBeluga] is a trend-following overlay that leverages fractal swing points to define dynamic support and resistance zones. By storing and averaging recent high and low fractals, it determines trend direction and plots a smooth band that flips depending on market bias—displaying support during uptrends and resistance during downtrends.

🔵 CONCEPTS
  • Fractal Swings: Fractals are identified using a customizable length. A high fractal forms when the current high is the highest in a range; a low fractal when the current low is the lowest.
  • Fractal Memory: The indicator keeps a rolling window of recent high and low fractals inside arrays, limited by the user-defined storage quantity.
    Pine Script®
    switch upperF => FracrtalsUpper.push(high[fractalLen]) lowerF => FracrtalsLower.push(low[fractalLen]) FracrtalsUpper.size() > fCount => FracrtalsUpper.shift() FracrtalsLower.size() > fCount => FracrtalsLower.shift()
  • Trend Detection: Price crossing above the average, min/max or median high fractals signals an uptrend; crossing below average, min/max or median low fractals signals a downtrend.
  • Dynamic Band Plotting: Depending on the trend, the script plots the average of either the upper or lower fractals as a trailing support or resistance line.
    ảnh chụp nhanh
  • Visual Confirmation: Fractal labels appear as triangle markers at highs and lows, providing additional structural context.
    ảnh chụp nhanh


🔵 FEATURES
  • Automatically detects high and low fractals using customizable length.
  • Stores a defined number of fractals to smooth out noise and reduce false signals.
  • Flips trend bias dynamically with colored band and smooth transitions.
  • Plots fractal-based support in bullish trends, resistance in bearish trends.
  • Triangle markers show real-time fractal highs and lows.
  • Fully configurable visuals, color themes, and fractal detection logic.
  • Clean, non-intrusive overlay that works on any market or timeframe.


🔵 HOW TO USE
  • Use the colored band as a directional filter: green = uptrend (support), orange = downtrend (resistance).
  • Combine with entry signals or break/retest strategies when price approaches the band.
  • Use triangle markers to confirm structural swing points.
  • Adjust Fractals Length to tune sensitivity—shorter values detect quicker shifts, longer values reduce noise.
  • Change the fractal bands type to adapt trend detection to different market conditions.
  • Use in conjunction with momentum or volume tools for confluence.


🔵 CONCLUSION
Fractals Trend [BigBeluga] offers a lightweight, intuitive way to track market bias using price structure alone. Its smart switching logic and clean visuals make it a powerful tool for trend traders seeking structure-based dynamic S/R—without laggy moving averages or overcomplicated signals.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.