OPEN-SOURCE SCRIPT
BG Trix Trend signal

ovides dynamic long and short signals based on a multi-timeframe candle averaging method. It calculates a four-step average of recent candles to determine the trend and changes candle color accordingly (green for upward, red for downward).
Features:
Multi-Timeframe Candle Analysis: Combines current and previous candle data to smooth price action.
Optional TRIX Filter: Adds a TRIX-based trend filter from a separate timeframe. Only triggers signals when TRIX confirms the trend.
Optional Keltner Channel Filter: Prevents signals when the price is inside the Keltner channel. Long signals only trigger above the upper band; short signals only trigger below the lower band. Separate MTF and MA type can be selected for the channel.
Visual Signals: Long and short signals are displayed as arrows on the chart. Candle color reflects trend direction.
Fully Customizable: Users can enable/disable TRIX and Keltner filters and select MA types and timeframes independently.
This indicator is ideal for traders who want clear trend signals while filtering out trades inside key price channels. No exit management is included—signals are purely for entry visualization.
Features:
Multi-Timeframe Candle Analysis: Combines current and previous candle data to smooth price action.
Optional TRIX Filter: Adds a TRIX-based trend filter from a separate timeframe. Only triggers signals when TRIX confirms the trend.
Optional Keltner Channel Filter: Prevents signals when the price is inside the Keltner channel. Long signals only trigger above the upper band; short signals only trigger below the lower band. Separate MTF and MA type can be selected for the channel.
Visual Signals: Long and short signals are displayed as arrows on the chart. Candle color reflects trend direction.
Fully Customizable: Users can enable/disable TRIX and Keltner filters and select MA types and timeframes independently.
This indicator is ideal for traders who want clear trend signals while filtering out trades inside key price channels. No exit management is included—signals are purely for entry visualization.
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.