PROTECTED SOURCE SCRIPT

AFOL

19


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.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.