OPEN-SOURCE SCRIPT

TS vs Previous Candle (TSC/TSD)

98
This indicator detects **Turtle Soup (TS) reversal triggers** using a strict **previous-candle reference** and prints signals **only on bar close** (non-repainting intrabar).

* **TS Bull:** the current bar **sweeps below the prior low** (liquidity grab) and then **closes back above the prior low**.
* **TS Bear:** the current bar **sweeps above the prior high** and then **closes back below the prior high**.

An optional strict mode can require the close to remain **inside the previous candle’s range** for cleaner mean-reversion structure.

Each signal is further classified as:

* **TSC (Clean):** candle body aligns with the TS direction (bull body for TS Bull, bear body for TS Bear).
* **TSD (Dirty):** candle body contradicts the TS direction (or doji), highlighting weaker/less “clean” reversals.

Use it to map **liquidity sweeps + reversal closes** and to separate higher-quality TS setups (TSC) from more ambiguous ones (TSD) for further filtering (trend, levels, sessions, risk rules).

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.