OPEN-SOURCE SCRIPT
TheStrat Alerts - TPC Edition

## 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.*
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.*
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.