OPEN-SOURCE SCRIPT

Multi-Timeframe BOS / CHoCH

520
What it does: Shows a table with the market structure — Bullish/Bearish trend, plus the last BOS or CHoCH event — for 5min, 15min, 1H, 4H, and Daily all at once, plus a confluence row.

How it decides: Uses swing highs/lows (pivots). A close beyond the last swing point in the trend's direction = BOS (continuation). A close beyond it against the trend = CHoCH (potential reversal) and flips the trend.

Use case: Quick multi-timeframe structure check — e.g., confirm 1H/4H are still bullish (no CHoCH) before taking a lower-timeframe long.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.