OPEN-SOURCE SCRIPT
Atualizado

Colby's SS Finder

614
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!
Notas de Lançamento
Better labeling on the J_Intradaytrade SS levels automated
Notas de Lançamento
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.
Notas de Lançamento
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.
Notas de Lançamento
Updated incorrect rendering on last candle of a move that did not also serve as the extreme low or high of the move
Notas de Lançamento
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.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.