OPEN-SOURCE SCRIPT
已更新 Half Supertrend [NLR]

While the Supertrend is a popular tool, traders often face the challenge of false signals and uncertain entry points. The Half Supertrend [NLR] indicator addresses these shortcomings by introducing a dynamic mid-level, offering a significantly improved way to identify true trend strength and potential high-probability entries.
Here's how the mid-level enhances your trend analysis:
Here's the technical edge you've been waiting for:
How it works under the hood:
This indicator utilizes the standard Supertrend calculation on the chosen higher timeframe, incorporating the Average True Range (ATR) to determine volatility-adjusted bands. The unique addition is the "half trend" line, calculated by adding or subtracting half of the ATR-based trailing stop value from the Supertrend line. This mid-level acts as a crucial intermediary zone for evaluating the conviction of the current trend.
Pine Script®
Key Input Parameters:
Here's how the mid-level enhances your trend analysis:
- Filter Out Noise: Instead of reacting to every Supertrend flip, the mid-level helps you identify the strength of the trend. Price moving strongly away from the mid-level confirms a higher conviction move.
- Identify Optimal Pullback Entries: Waiting for price to pull back to the dynamic mid-level after a Supertrend direction change can provide better entry prices and potentially higher probability setups, capitalizing on established momentum. This approach helps avoid entering prematurely on weaker signals.
- Gain Deeper Trend Insight: The position of the price relative to both the Supertrend line and the mid-level paints a clearer picture of the current trend's strength and potential for continuation or reversal.
Here's the technical edge you've been waiting for:
- Enhanced Trend Confirmation: This indicator plots a mid-level derived from half the Average True Range (ATR) multiple, acting as a crucial intermediary for assessing trend strength.
- Intra-Trend Strength Analysis:
Price above/below the mid-level: Indicates a strong trending move aligned with the Supertrend direction.
Price between the mid-level and the Supertrend line: Suggests a weaker trend and a higher probability of consolidation or reversal. - Early Reversal Detection: Price crossing the mid-level can serve as an early warning signal of a potential trend change.
- Higher Timeframe Clarity: The user-configurable higher timeframe (HTF) input provides a robust, multi-timeframe trend bias.
- Dynamic Entry Levels: Potential entry levels based on the mid-level are plotted for visual guidance.
- Clear Visual Representation: Color-coded lines and filled areas simplify trend and strength assessment.
How it works under the hood:
This indicator utilizes the standard Supertrend calculation on the chosen higher timeframe, incorporating the Average True Range (ATR) to determine volatility-adjusted bands. The unique addition is the "half trend" line, calculated by adding or subtracting half of the ATR-based trailing stop value from the Supertrend line. This mid-level acts as a crucial intermediary zone for evaluating the conviction of the current trend.
// Calculate the mid-level line
half_line = supertrend + (atr * half_factor)
Key Input Parameters:
- ATR Length: Determines the period for calculating the Average True Range (default: 10).
- Factor: The multiplier applied to the ATR to determine the Supertrend band width (default: 3). The mid-level dynamically adjusts based on half of this factor.
- Timeframe: Allows you to select a higher timeframe for the Supertrend calculation, providing a broader trend context.
- Up Color/Down Color: Customize the colors for uptrend and downtrend indications.
版本注释
Removed default extra timeframe feature开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。