OPEN-SOURCE SCRIPT
Cập nhật BRN Dynamic Envelope Sinais

Here is a brief explanatory text in English that you can use to present or document your indicator:
Overview of the BRN Dynamic Envelope Signals
The BRN Dynamic Envelope is a sophisticated, price-action-driven indicator designed to capture explosive trend breakouts while aggressively filtering out market noise. Instead of relying on simple moving average crossovers, it utilizes a multi-layered volatility envelope to identify high-probability trade setups.
How the System Works:
The Dynamic Envelope: The indicator calculates three customized Moving Averages—a central baseline, an upper band based on candle highs, and a lower band based on candle lows. A built-in distance multiplier allows you to expand or contract these bands, adapting the system to any asset's volatility.
The Setup (Setting the Trap): When the price crosses and closes outside the upper or lower band, it indicates a potential trend shift. The system immediately draws a horizontal "trigger line" at the extreme of that breakout candle (the highest high for a bullish setup, or the lowest low for a bearish setup).
The Execution (The Signal): The system demands proof of momentum. A definitive Buy ("B") or Sell ("S") signal is only fired when a subsequent candle breaks the horizontal trigger line. This execution can happen via a traditional candle close or instantaneously if the market opens with a gap beyond the trigger.
Smart Cleanup: The moment the signal is fired and the trade is executed, the trigger line is automatically erased from the chart. This smart cleanup prevents redundant signals and keeps the visual interface clean.
Visual Trend Filter: The central moving average dynamically changes color to reflect the immediate market regime: Green for a fluid uptrend, Red for a fluid downtrend, and Gray for a ranging or transitional market.
By demanding price confirmation before issuing a signal, the BRN Dynamic Envelope effectively protects traders from false breakouts and whipsaw markets, delivering surgical entry points for swing trading.
Overview of the BRN Dynamic Envelope Signals
The BRN Dynamic Envelope is a sophisticated, price-action-driven indicator designed to capture explosive trend breakouts while aggressively filtering out market noise. Instead of relying on simple moving average crossovers, it utilizes a multi-layered volatility envelope to identify high-probability trade setups.
How the System Works:
The Dynamic Envelope: The indicator calculates three customized Moving Averages—a central baseline, an upper band based on candle highs, and a lower band based on candle lows. A built-in distance multiplier allows you to expand or contract these bands, adapting the system to any asset's volatility.
The Setup (Setting the Trap): When the price crosses and closes outside the upper or lower band, it indicates a potential trend shift. The system immediately draws a horizontal "trigger line" at the extreme of that breakout candle (the highest high for a bullish setup, or the lowest low for a bearish setup).
The Execution (The Signal): The system demands proof of momentum. A definitive Buy ("B") or Sell ("S") signal is only fired when a subsequent candle breaks the horizontal trigger line. This execution can happen via a traditional candle close or instantaneously if the market opens with a gap beyond the trigger.
Smart Cleanup: The moment the signal is fired and the trade is executed, the trigger line is automatically erased from the chart. This smart cleanup prevents redundant signals and keeps the visual interface clean.
Visual Trend Filter: The central moving average dynamically changes color to reflect the immediate market regime: Green for a fluid uptrend, Red for a fluid downtrend, and Gray for a ranging or transitional market.
By demanding price confirmation before issuing a signal, the BRN Dynamic Envelope effectively protects traders from false breakouts and whipsaw markets, delivering surgical entry points for swing trading.
Phát hành các Ghi chú
at. 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.