OPEN-SOURCE SCRIPT

TheStrat Alerts - TPC Edition

132
## TheStrat Alerts - TPC Edition

Finally, an indicator that monitors and sends alerts for TheStrat candle
combination setups — both as CONFIRMED signals and as EARLY WARNING
(pre-close) heads-up alerts, so you don't have to sit and watch every
ticker and timeframe yourself.

**How does the indicator work?**
The script labels every closed candle as a 1 (inside), 2u/2d (directional),
or 3 (outside) bar based on whether it broke the prior candle's high
and/or low. It then watches for specific sequences of these labels
(actionable setups) and fires an alert using TradingView's built-in
alert system.

**Two alert tiers:**
- Early Warning — fires the moment the precursor bars close, before the
live bar has done anything (e.g. "2-1-?" — watch for a developing 2-1-2)
- Confirmed — fires once the live bar has actually broken the required way

**Setups covered:**
2-1-2 · 3-1-2 · 1-2-2 reversal · 3-2-2 reversal · 2-2 reversal watch ·
Randy Jackson · Pivot Machine Gun (5x consecutive 2s) · Failed 2u/2d ·
1-3 Nirvana · 50% retracement after a 2u/2d

**Full Timeframe Continuity (FTFC):**
Optional filter that only allows directional alerts when Hour/Daily
(and optionally Weekly/Monthly) candles are aligned. 2-1-2 has no
directional bias and is exempt from this filter.

**To enable:**
1. Add the indicator to your ticker/timeframe of choice
2. Open the indicator settings (cog wheel) and toggle which setups
you want alerted on
3. Use TradingView's "Create Alert" feature, set the condition to
one of this indicator's alertconditions, and choose "Once Per Bar"
for Early Warning alerts or "Once Per Bar Close" for Confirmed alerts

*This indicator is not market or timeframe specific — apply it to any
ticker/timeframe combination you trade.*

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน