OPEN-SOURCE SCRIPT
Turtle Soup vs Previous Candle

This indicator highlights **Turtle Soup (TS)** setups by comparing **the current candle to the previous one**—and it only triggers **once the candle is fully closed**, so it doesn’t “paint and disappear” while the bar is still forming.
**What it detects**
* **TS Bear (bearish):**
Price *breaks above the previous candle’s high* (liquidity grab), then closes **bearish**, returning back below that prior high.
→ Concept: “fake breakout up, then reversal.”
* **TS Bull (bullish):**
Price *breaks below the previous candle’s low* (liquidity grab), then closes **bullish**, back above that prior low.
→ Concept: “fake breakdown down, then rebound.”
**Strict vs Flexible mode (the indicator switch)**
* ✅ **Allow close outside the previous range (ON):** more flexible.
The close can finish outside the prior candle’s range. Useful in fast, impulsive moves.
* ❌ **Allow close outside the previous range (OFF):** stricter.
The close must finish **inside** the previous candle’s range (cleaner signals, usually fewer of them).
**The key feature**
* Signals are plotted **only after the candle closes on your current timeframe**.
If you’re on M15, it confirms at the M15 close. If you’re on H1, at the H1 close.
Result: more reliable signals and less “indicator drama.”
**What it’s good for**
* Spotting potential **quick reversals** right after a sweep of highs/lows.
* Identifying areas where price often reacts due to **liquidity runs**.
**Practical note**
This isn’t a magic button—signals work best with context (trend, key levels, range/session timing, market structure). Fine-tune strict vs flexible per asset/timeframe and you’ll go from “random dots” to “useful tells.”
**What it detects**
* **TS Bear (bearish):**
Price *breaks above the previous candle’s high* (liquidity grab), then closes **bearish**, returning back below that prior high.
→ Concept: “fake breakout up, then reversal.”
* **TS Bull (bullish):**
Price *breaks below the previous candle’s low* (liquidity grab), then closes **bullish**, back above that prior low.
→ Concept: “fake breakdown down, then rebound.”
**Strict vs Flexible mode (the indicator switch)**
* ✅ **Allow close outside the previous range (ON):** more flexible.
The close can finish outside the prior candle’s range. Useful in fast, impulsive moves.
* ❌ **Allow close outside the previous range (OFF):** stricter.
The close must finish **inside** the previous candle’s range (cleaner signals, usually fewer of them).
**The key feature**
* Signals are plotted **only after the candle closes on your current timeframe**.
If you’re on M15, it confirms at the M15 close. If you’re on H1, at the H1 close.
Result: more reliable signals and less “indicator drama.”
**What it’s good for**
* Spotting potential **quick reversals** right after a sweep of highs/lows.
* Identifying areas where price often reacts due to **liquidity runs**.
**Practical note**
This isn’t a magic button—signals work best with context (trend, key levels, range/session timing, market structure). Fine-tune strict vs flexible per asset/timeframe and you’ll go from “random dots” to “useful tells.”
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.