OPEN-SOURCE SCRIPT
Cascade Trigger Network [forexobroker]

Cascade Trigger Network fires only when three linked conditions light up across three timeframes in the correct order: the low timeframe triggers, then the medium timeframe confirms, then the high timeframe is already biased the same way -- all within a configurable window. One level alone is common; the full cascade is rare, and rare setups outperform noisy ones.
Built for multi-timeframe traders who need the LTF entry to be validated by MTF structure and HTF direction before committing capital.
🔶 CONCEPTS
Multi-timeframe alignment is a well-known edge, but most tools simply stack three moving averages from different timeframes and ask "are they all up?" That misses the key idea: direction should flow downward in timeframe -- HTF sets the bias, MTF confirms the swing, LTF fires the trigger. If the LTF trigger fires in isolation it's noise; if it fires while MTF and HTF are already pointing the same way, it's an entry. Adding a time window forces the cascade to complete quickly, rejecting stale triggers that come long after the MTF/HTF setup existed.
🔶 HOW IT WORKS
- LTF trigger: close crosses above/below LTF EMA with RSI supporting (>50 for bull, <50 for bear)
- MTF confirm: MTF close above/below MTF EMA with positive/negative slope
- HTF bias: HTF close above/below HTF EMA with positive/negative slope
- Tracks the last LTF trigger bar and requires it to be within Cascade Window Bars
- All three levels must be aligned simultaneously for the cascade to complete
- Combines level alignment and RSI into a 0-100 Cascade Score
- Classifies state as BROKEN, PARTIAL, LINKED, or CHAINED
- Fires signal on the bar where the full three-level alignment first appears
🔶 HOW TO USE
1. Add the indicator -- background tints when levels are aligning
2. Watch the dashboard (top-right) for live LTF trigger, MTF state, HTF state, and level counts
3. Green BUY triangles with "CASCADE ↑" label fire on completed bullish cascades; pink SELL triangles on bearish
4. The LTF EMA plotted with glow shows where the LTF trigger happens
5. Choose MTF and HTF to match your trading style (e.g. 60/240 for a 15m chart)
🔶 FEATURES
- Non-repainting signals (barstate.isconfirmed, no lookahead in security calls)
- Works on all timeframes and instruments
- 9 alert conditions with JSON webhook support
- True multi-timeframe cascade logic rather than MA stacking
- Time-windowed trigger so only recent LTF triggers count
🔶 SETTINGS GUIDE
- MTF Timeframe / HTF Timeframe -- Higher timeframes whose state gates the signal
- LTF / MTF / HTF EMA Length -- EMA length used on each timeframe
- LTF RSI Length -- RSI length used on the trading timeframe
- Cascade Window Bars -- Max bars between LTF trigger and cascade completion
- Cascade Score Threshold -- Minimum 0-100 score required at fire
- Signal Cooldown Bars -- Minimum bars between consecutive signals
🔶 ALERTS
- CTN Buy Cascade -- Full bullish cascade completed
- CTN Sell Cascade -- Full bearish cascade completed
- CTN Any Signal -- Any cascade signal
- CTN Chained -- Cascade score reaches 85+
- CTN LTF Bull Trigger -- Low-timeframe bullish trigger (informational)
- CTN LTF Bear Trigger -- Low-timeframe bearish trigger (informational)
- CTN Higher-TF Bull -- MTF and HTF both bullish
- CTN Higher-TF Bear -- MTF and HTF both bearish
- CTN Webhook JSON -- Generic webhook payload for external automation
🔶 LIMITATIONS & DISCLAIMER
- This is a technical analysis tool, not financial advice. Always use proper risk management.
- request.security introduces standard one-bar MTF/HTF delay; expected and non-repainting.
- If HTF is already opposed, cascades on the trading timeframe will be rare by design.
- The Cascade Score is a composite heuristic, not a calibrated probability.
Built for multi-timeframe traders who need the LTF entry to be validated by MTF structure and HTF direction before committing capital.
🔶 CONCEPTS
Multi-timeframe alignment is a well-known edge, but most tools simply stack three moving averages from different timeframes and ask "are they all up?" That misses the key idea: direction should flow downward in timeframe -- HTF sets the bias, MTF confirms the swing, LTF fires the trigger. If the LTF trigger fires in isolation it's noise; if it fires while MTF and HTF are already pointing the same way, it's an entry. Adding a time window forces the cascade to complete quickly, rejecting stale triggers that come long after the MTF/HTF setup existed.
🔶 HOW IT WORKS
- LTF trigger: close crosses above/below LTF EMA with RSI supporting (>50 for bull, <50 for bear)
- MTF confirm: MTF close above/below MTF EMA with positive/negative slope
- HTF bias: HTF close above/below HTF EMA with positive/negative slope
- Tracks the last LTF trigger bar and requires it to be within Cascade Window Bars
- All three levels must be aligned simultaneously for the cascade to complete
- Combines level alignment and RSI into a 0-100 Cascade Score
- Classifies state as BROKEN, PARTIAL, LINKED, or CHAINED
- Fires signal on the bar where the full three-level alignment first appears
🔶 HOW TO USE
1. Add the indicator -- background tints when levels are aligning
2. Watch the dashboard (top-right) for live LTF trigger, MTF state, HTF state, and level counts
3. Green BUY triangles with "CASCADE ↑" label fire on completed bullish cascades; pink SELL triangles on bearish
4. The LTF EMA plotted with glow shows where the LTF trigger happens
5. Choose MTF and HTF to match your trading style (e.g. 60/240 for a 15m chart)
🔶 FEATURES
- Non-repainting signals (barstate.isconfirmed, no lookahead in security calls)
- Works on all timeframes and instruments
- 9 alert conditions with JSON webhook support
- True multi-timeframe cascade logic rather than MA stacking
- Time-windowed trigger so only recent LTF triggers count
🔶 SETTINGS GUIDE
- MTF Timeframe / HTF Timeframe -- Higher timeframes whose state gates the signal
- LTF / MTF / HTF EMA Length -- EMA length used on each timeframe
- LTF RSI Length -- RSI length used on the trading timeframe
- Cascade Window Bars -- Max bars between LTF trigger and cascade completion
- Cascade Score Threshold -- Minimum 0-100 score required at fire
- Signal Cooldown Bars -- Minimum bars between consecutive signals
🔶 ALERTS
- CTN Buy Cascade -- Full bullish cascade completed
- CTN Sell Cascade -- Full bearish cascade completed
- CTN Any Signal -- Any cascade signal
- CTN Chained -- Cascade score reaches 85+
- CTN LTF Bull Trigger -- Low-timeframe bullish trigger (informational)
- CTN LTF Bear Trigger -- Low-timeframe bearish trigger (informational)
- CTN Higher-TF Bull -- MTF and HTF both bullish
- CTN Higher-TF Bear -- MTF and HTF both bearish
- CTN Webhook JSON -- Generic webhook payload for external automation
🔶 LIMITATIONS & DISCLAIMER
- This is a technical analysis tool, not financial advice. Always use proper risk management.
- request.security introduces standard one-bar MTF/HTF delay; expected and non-repainting.
- If HTF is already opposed, cascades on the trading timeframe will be rare by design.
- The Cascade Score is a composite heuristic, not a calibrated probability.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
🔵Gain access to our powerful tools : kestutisbalciunas.com/tradingview/
🔵Join our free telegram for updates : t.me/algotradingedge
All scripts & content provided by Forexobroker are for informational & educational purposes only.
🔵Join our free telegram for updates : t.me/algotradingedge
All scripts & content provided by Forexobroker are for informational & educational purposes only.
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
🔵Gain access to our powerful tools : kestutisbalciunas.com/tradingview/
🔵Join our free telegram for updates : t.me/algotradingedge
All scripts & content provided by Forexobroker are for informational & educational purposes only.
🔵Join our free telegram for updates : t.me/algotradingedge
All scripts & content provided by Forexobroker are for informational & educational purposes only.
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。