OPEN-SOURCE SCRIPT
Regime Overlay — 30m/1h Supertrend + Tint + Flip Alerts

One-liner
Fast/slow Supertrend (30m & 1h) with majority-vote bias tinting and flip alerts—quickly see when structure changes.
What it does
Plots 30m (fast) and 1h (slow) Supertrend lines.
Computes a majority regime (Bull / Bear / Mixed) from the 30m & 1h directions.
Tints candles by the majority regime (green = bull, red = bear, orange = mixed).
Marks and alerts on regime flips (30m, 1h, and Majority).
How it works
Uses TradingView’s built-in ta.supertrend(multiplier, atrLength) on 30m and 1h via MTF security calls.
Direction is +1 (up) or –1 (down). The majority vote is the sum of both directions:
0 → Bull Regime
< 0 → Bear Regime
= 0 → Mixed (disagreement)
Inputs
TF A / TF B: default 30m and 1h (change if you prefer other pairs).
ATR Length, Multiplier: Supertrend parameters (defaults 10 & 3.0).
Toggles: Show 30m, Show 1h, Tint candles, Tint transparency, Flip markers.
Alerts included
30m Flip Up/Down
1h Flip Up/Down
Majority Regime Flip Up/Down
Turn on the ones you care about (fast flips for scalps, 1h/majority for bigger bias shifts).
How to use
Keep both lines visible to read fast vs slow structure.
Use the tint as a quick bias filter; trade only with the prevailing color if that’s your style.
Combine with your entries/exits (e.g., RSI/volume/price action); the overlay provides context, not signals.
If you change the TFs, retune ATR/Multiplier to match volatility.
Notes
MTF behavior: The 30m/1h values finalize on their bar close; they may update intra-bar.
Works on crypto, FX, stocks; parameters may need per-asset tuning.
Credits
Built by @hacklenajee with GPT-5 Thinking (ChatGPT).
For education/research only. Not financial advice.
Fast/slow Supertrend (30m & 1h) with majority-vote bias tinting and flip alerts—quickly see when structure changes.
What it does
Plots 30m (fast) and 1h (slow) Supertrend lines.
Computes a majority regime (Bull / Bear / Mixed) from the 30m & 1h directions.
Tints candles by the majority regime (green = bull, red = bear, orange = mixed).
Marks and alerts on regime flips (30m, 1h, and Majority).
How it works
Uses TradingView’s built-in ta.supertrend(multiplier, atrLength) on 30m and 1h via MTF security calls.
Direction is +1 (up) or –1 (down). The majority vote is the sum of both directions:
0 → Bull Regime
< 0 → Bear Regime
= 0 → Mixed (disagreement)
Inputs
TF A / TF B: default 30m and 1h (change if you prefer other pairs).
ATR Length, Multiplier: Supertrend parameters (defaults 10 & 3.0).
Toggles: Show 30m, Show 1h, Tint candles, Tint transparency, Flip markers.
Alerts included
30m Flip Up/Down
1h Flip Up/Down
Majority Regime Flip Up/Down
Turn on the ones you care about (fast flips for scalps, 1h/majority for bigger bias shifts).
How to use
Keep both lines visible to read fast vs slow structure.
Use the tint as a quick bias filter; trade only with the prevailing color if that’s your style.
Combine with your entries/exits (e.g., RSI/volume/price action); the overlay provides context, not signals.
If you change the TFs, retune ATR/Multiplier to match volatility.
Notes
MTF behavior: The 30m/1h values finalize on their bar close; they may update intra-bar.
Works on crypto, FX, stocks; parameters may need per-asset tuning.
Credits
Built by @hacklenajee with GPT-5 Thinking (ChatGPT).
For education/research only. Not financial advice.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.