OPEN-SOURCE SCRIPT
Trend Detector by Firozstar V 1.0

You can use this professional description:
Trend Detector by Firozstar V 1.0 (TDFS) is a momentum-based trend indicator designed to provide a simple visual representation of market direction and momentum strength.
The indicator calculates the difference between a fast and slow moving average and normalizes the resulting value to provide consistent trend interpretation.
The indicator uses three distinct market states:
• Bullish Trend: The trend line moves above the upper threshold and is displayed in green.
• Bearish Trend: The trend line moves below the lower threshold and is displayed in red.
• Neutral Zone: The trend line remains between the upper and lower thresholds and is displayed in grey.
By default, the indicator uses 12-period and 26-period exponential moving averages (EMA), with customizable moving average types, periods, and trend thresholds.
Key Features:
• Simple trend and momentum visualization
• Bullish, bearish, and neutral market identification
• Customizable upper and lower trend thresholds
• Support for EMA and SMA calculations
• Color-coded trend line for easier interpretation
• Neutral zone highlighting
• Alert conditions for bullish, bearish, and neutral trend transitions
TDFS is designed to help traders visually evaluate momentum and identify changes in market direction. It can be used across different instruments and timeframes.
Disclaimer: This indicator is intended for educational and analytical purposes only. It does not constitute financial or investment advice. Users should perform their own analysis and use appropriate risk management before making trading decisions.
Trend Detector by Firozstar V 1.0 (TDFS) is a momentum-based trend indicator designed to provide a simple visual representation of market direction and momentum strength.
The indicator calculates the difference between a fast and slow moving average and normalizes the resulting value to provide consistent trend interpretation.
The indicator uses three distinct market states:
• Bullish Trend: The trend line moves above the upper threshold and is displayed in green.
• Bearish Trend: The trend line moves below the lower threshold and is displayed in red.
• Neutral Zone: The trend line remains between the upper and lower thresholds and is displayed in grey.
By default, the indicator uses 12-period and 26-period exponential moving averages (EMA), with customizable moving average types, periods, and trend thresholds.
Key Features:
• Simple trend and momentum visualization
• Bullish, bearish, and neutral market identification
• Customizable upper and lower trend thresholds
• Support for EMA and SMA calculations
• Color-coded trend line for easier interpretation
• Neutral zone highlighting
• Alert conditions for bullish, bearish, and neutral trend transitions
TDFS is designed to help traders visually evaluate momentum and identify changes in market direction. It can be used across different instruments and timeframes.
Disclaimer: This indicator is intended for educational and analytical purposes only. It does not constitute financial or investment advice. Users should perform their own analysis and use appropriate risk management before making trading decisions.
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.