PROTECTED SOURCE SCRIPT
AFOL

Alligator + Fractals + Open-ATR Levels
Comprehensive Trading Toolkit – Pine Script v5
Description
This indicator overlays three independent but complementary concepts on your price chart to give you a complete “map” of trend, momentum and intraday support/resistance.
Alligator Lines (Bill Williams)
• Five smoothed moving averages (SMMA / EMA / SMA) with classic Alligator periods and forward-shifts.
• Color-coded jaws, teeth, lips and two additional balance lines that visually reveal the market’s “sleep” and “awake” phases.
• Every line’s period, shift, color and width are fully customizable via the “Alligator Lines” group.
Fractals (5-bar pattern)
• Classic Williams fractals: an up-fractal when the central bar has the lowest low, a down-fractal when it has the highest high.
• Period length can be adjusted; default is 2 (5-bar).
• Drawn as small triangles above/below the respective bars to mark potential swing highs / lows.
Open-ATR Levels (Daily Pivot-Ranges)
• Calculates the current session’s opening price and the 14-period Average True Range.
• Projects eight intraday reference levels:
R2, R1.5, R1, R0.5 | Open | S0.5, S1, S1.5, S2 (multiples of ATR).
• Lines are dashed and color-coded: purple for 0.5×, blue 1×, red 1.5×, black 2×, white for the open itself.
• Option to keep historical levels or display only the live session.
• Lines extend 500 bars to the right so they stay visible for the rest of the trading day.
How to Use
• Trend Filter – align trades with the Alligator’s direction: green above red/black = bullish, red/black above green = bearish.
• Entry Triggers – use fractals as breakout or reversal points inside the trend.
• Profit / Stop Placement – treat Open-ATR levels as intraday targets and invalidation zones.
Settings Summary
“Alligator Lines” – toggle type, period, shift, color, width for each of the five lines.
“Fractals (5-bar)” – adjust the fractal period.
“Open-ATR Levels” – set ATR length and decide whether old levels remain on chart.
Load once, tune to your style, and you have a clean yet information-rich chart ready for scalping, intraday or swing decisions.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。