OPEN-SOURCE SCRIPT
Updated Colby's SS Finder

For people using J_Intradaytrade's Shit Show model, here is my version of a finder. I use his method for my swing locations, I don't fully trade his way, but I find great application in these levels. In particular, I'm not going short with 2 or 3 SS levels just above me. I hope you find use in this!
Release Notes
Better labeling on the J_Intradaytrade SS levels automatedRelease Notes
v2.0 — Refined detection logic. Added HH/LL confirmation so only impulsive swing sequences qualify. Improved duplicate filtering using price proximity instead of exact bar match. Swept levels now preserved as historical segments rather than deleted. Pattern pending queue uses P1 break for activation and P2 breach for invalidation.Release Notes
Cleaned up the logic considerbly. Also, re-integrated deprecated levels that have been taken (faded, dashed) so they don't get in the way of the live SS levels still on the chart.Release Notes
Updated incorrect rendering on last candle of a move that did not also serve as the extreme low or high of the moveRelease Notes
v5.0 — Rewritten detection logic based on explicit #1/#2/#3 swing confirmation model.Direction (UP/DOWN) now switches only on x-2 bars (strict HH+HL or LL+LH vs prior bar). Inside/outside bars are ignored — direction persists through them.
A swing is the extreme of a segment between two opposite-direction reversals. Each swing is classified vs the most recent same-type swing: HH/LL if it sweeps the prior extreme by 1+ tick, otherwise LH/HL.
An SS level forms only when two CONSECUTIVE qualifying swings appear in opposite directions:
• (LL, HH) → Sell-side (orange) candidate, drawn at the HH
• (HH, LL) → Buy-side (cyan) candidate, drawn at the LL
A non-qualifying intermediate swing silently invalidates the setup.
The SS line is drawn the moment price wicks 1+ tick past #1 (#3 confirmation — no reversal required, wick is sufficient). If price wicks past #2 in the #1→#2 direction before #3 fires, the candidate is killed.
Swept levels are preserved on-chart as dashed/faded history for context.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.