OPEN-SOURCE SCRIPT
MTF MA Regime + ATR Noise Filter ( Premium UI) [VBS]

This indicator is designed to help traders trade with the higher-timeframe trend, avoid low-quality noise, and identify clean, rule-based opportunities without overloading the chart.
Instead of relying on simple moving average crossovers, this script combines higher-timeframe bias, volatility-based noise filtering, and clear entry logic to provide practical trading context that works across markets.
Core Concepts
1. Higher Timeframe Bias (MTF)
The script uses a higher timeframe moving average (default: 4H) to define the main market bias:
Bullish when price is above the HTF slow MA
Bearish when price is below the HTF slow MA
Optional slope filtering to reduce whipsaws
All signals are designed to follow this bias, helping traders avoid entries against the dominant trend.
2. ATR Noise Filter
An ATR-based band is plotted around the mid moving average to visualize:
Normal price movement (noise)
Abnormal expansion (valid momentum)
This allows traders to:
Avoid trading during choppy conditions
Focus on breakouts that actually matter
The noise filter can optionally block signals while price is inside the band.
3. Two Clear Signal Types
The indicator provides two complementary signal types:
PB (Pullback)
Trend-continuation entries after a healthy pullback and reclaim of the mid MA.
BO (Breakout)
Momentum entries when price breaks outside the ATR noise band in the direction of the higher-timeframe trend.
Both signals include lightweight momentum confirmation and optional cooldown logic to reduce signal clustering.
Premium-Style Interface
Clean overlay design (no extra panels)
Optional background coloring for bias and neutral/noise conditions
On-chart status panel showing:
HTF bias
Noise state
Signal gating status
PB / BO legend
This makes the indicator easy to understand at a glance, even for less experienced traders.
Customization & Flexibility
Choose MA type (EMA, SMA, WMA, HMA, etc.)
Signal mode: Pullback only, Breakout only, or both
Direction filter: Buy only, Sell only, or both
Adjustable noise sensitivity and cooldown
Works on any market and any timeframe
Important Notes
This is not a prediction tool.
Signals are context-based, not guaranteed outcomes.
Best used as part of a structured trading plan and proper risk management.
If you are looking for a clean, trend-aligned, and practical indicator that focuses on market structure rather than hype, this script is built for that purpose.
— VictoryByStrategy
Instead of relying on simple moving average crossovers, this script combines higher-timeframe bias, volatility-based noise filtering, and clear entry logic to provide practical trading context that works across markets.
Core Concepts
1. Higher Timeframe Bias (MTF)
The script uses a higher timeframe moving average (default: 4H) to define the main market bias:
Bullish when price is above the HTF slow MA
Bearish when price is below the HTF slow MA
Optional slope filtering to reduce whipsaws
All signals are designed to follow this bias, helping traders avoid entries against the dominant trend.
2. ATR Noise Filter
An ATR-based band is plotted around the mid moving average to visualize:
Normal price movement (noise)
Abnormal expansion (valid momentum)
This allows traders to:
Avoid trading during choppy conditions
Focus on breakouts that actually matter
The noise filter can optionally block signals while price is inside the band.
3. Two Clear Signal Types
The indicator provides two complementary signal types:
PB (Pullback)
Trend-continuation entries after a healthy pullback and reclaim of the mid MA.
BO (Breakout)
Momentum entries when price breaks outside the ATR noise band in the direction of the higher-timeframe trend.
Both signals include lightweight momentum confirmation and optional cooldown logic to reduce signal clustering.
Premium-Style Interface
Clean overlay design (no extra panels)
Optional background coloring for bias and neutral/noise conditions
On-chart status panel showing:
HTF bias
Noise state
Signal gating status
PB / BO legend
This makes the indicator easy to understand at a glance, even for less experienced traders.
Customization & Flexibility
Choose MA type (EMA, SMA, WMA, HMA, etc.)
Signal mode: Pullback only, Breakout only, or both
Direction filter: Buy only, Sell only, or both
Adjustable noise sensitivity and cooldown
Works on any market and any timeframe
Important Notes
This is not a prediction tool.
Signals are context-based, not guaranteed outcomes.
Best used as part of a structured trading plan and proper risk management.
If you are looking for a clean, trend-aligned, and practical indicator that focuses on market structure rather than hype, this script is built for that purpose.
— VictoryByStrategy
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.