OPEN-SOURCE SCRIPT

Swing High Low Detector + 4 EMA (buy Coi)

62
Indicator Name: Swing High-Low Detector (Close-Confirmed) & 4 EMA Cross
Key Features:

Confirmed Swing Points: Identifies technical Swing Highs and Lows based on a user-defined strength (default: 5 bars). Unlike standard indicators, it requires a "Close Confirmation":

Swing High: The 5th bar after the peak must close below the peak bar's close.

Swing Low: The 5th bar after the valley must close above the valley bar's close.

Dynamic Support/Resistance: Automatically draws horizontal lines from swing points. Current active levels are thick/solid, while historical levels are thin/dotted.

Liquidity Sweep Option: Optional setting to automatically delete past levels once price breaks through them (sweeping liquidity).

4-EMA Trend Filter: Includes 8, 13, 21, and 55 EMAs.

Crossover Signals: Generates "B" (Buy) and "S" (Sell) labels when the shorter EMAs (8, 13, 21) cross above or below the 55 EMA baseline.

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.