OPEN-SOURCE SCRIPT
Regime Turbo System

This indicator is a “Regime Turbo System” that classifies the market into trend and volatility regimes across multiple timeframes. It combines multi‑timeframe trend detection, volatility filters, and an information panel to show the current market state clearly.
Trend regime: The script checks 60m, 30m, 15m, and 5m timeframes using both EMA200 and a Supertrend‑style filter. When all four timeframes agree up, it labels the environment as “UP”; when they all agree down, it labels “DOWN”; anything else is “MIXED”.
Volatility regime: It computes ATR percentile to label volatility as HIGH / NORMAL / LOW, and uses Bollinger Band width to detect “squeeze” (low‑volatility contraction). An “energy” measure based on recent price change identifies whether volatility is expanding or fading.
Regime zone: Combining trend and volatility, it classifies each bar into Long Zone, Short Zone, or Neutral. Long Zone requires aligned uptrend plus strong and rising volatility; Short Zone requires aligned downtrend plus strong but weakening volatility. Colored dots at the top of the pane mark these zones.
Info panel: A small table in the top‑right summarizes key states in real time: multi‑timeframe trend, volatility label, BB squeeze status, and expansion/fade of energy.
Plots: The lower part of the pane shows an ATR percentile histogram and the energy line so you can visually see changes in volatility and regime strength over time.
In short, you use this indicator to decide:
whether the market is in a strong bullish, strong bearish, or neutral regime,
whether volatility is high or low, compressing or expanding,
and then choose trend‑following or mean‑reversion tactics accordingly.
Trend regime: The script checks 60m, 30m, 15m, and 5m timeframes using both EMA200 and a Supertrend‑style filter. When all four timeframes agree up, it labels the environment as “UP”; when they all agree down, it labels “DOWN”; anything else is “MIXED”.
Volatility regime: It computes ATR percentile to label volatility as HIGH / NORMAL / LOW, and uses Bollinger Band width to detect “squeeze” (low‑volatility contraction). An “energy” measure based on recent price change identifies whether volatility is expanding or fading.
Regime zone: Combining trend and volatility, it classifies each bar into Long Zone, Short Zone, or Neutral. Long Zone requires aligned uptrend plus strong and rising volatility; Short Zone requires aligned downtrend plus strong but weakening volatility. Colored dots at the top of the pane mark these zones.
Info panel: A small table in the top‑right summarizes key states in real time: multi‑timeframe trend, volatility label, BB squeeze status, and expansion/fade of energy.
Plots: The lower part of the pane shows an ATR percentile histogram and the energy line so you can visually see changes in volatility and regime strength over time.
In short, you use this indicator to decide:
whether the market is in a strong bullish, strong bearish, or neutral regime,
whether volatility is high or low, compressing or expanding,
and then choose trend‑following or mean‑reversion tactics accordingly.
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.