OPEN-SOURCE SCRIPT
Trend Strength Correlation Pro [TSI-C+]

Overview The Trend Strength Correlation Pro (TSI-C+) is a sophisticated oscillator designed to measure the quality and linearity of a trend, rather than just its price magnitude. By calculating the Pearson Correlation Coefficient between Price and Time, it generates a score ranging from -1 (Perfect Bearish Linearity) to +1 (Perfect Bullish Linearity).
Unlike standard momentum indicators (like RSI or MACD), this tool filters out market noise to answer a specific question: "Is the market trending in an organized line, or is it chaotic?"
Mathematical Concept
Pearson Correlation: Measures how strictly the price follows a linear path over a set period.
Hull Moving Average (HMA): The input price is pre-smoothed using HMA to reduce lag significantly compared to standard correlations.
Adaptive Volatility Bands: The "Dead Zone" (Gray Area) expands and contracts based on the Standard Deviation of the correlation itself. This filters out fake signals during choppy markets.
Key Features
Asset Presets: A "Market Profile" menu allows you to instantly load optimized parameters for Crypto, Forex, Indices, or Stocks without guessing numbers.
Professional HUD: A 3-column "Head-Up Display" provides real-time status on Trend Direction, Numerical Strength, and Actionable Signals.
Smart Signal System: Differentiates between a simple breakout and a high-momentum "Strong Trend".
How to Use
1. The Signals (Shapes)
Triangle (Green/Red): Breakout Entry. The TSI line has crossed out of the gray noise zone. This marks the potential start of a trend.
Background Flash (Magenta): Strong Confirmation. The trend has reached a high correlation score (> 0.60). This indicates the trend is accelerating and stable.
X-Mark (Orange/Yellow): Exhaustion. The trend strength is dropping back below the strong threshold. This is a statistical warning that trend linearity is failing (potential Take Profit area).
2. The Dashboard (HUD)
TREND: Shows the current market state (Bull Power, Bear Power, or Neutral/Chop).
ACTION: Gives a suggestion based on the math (e.g., "WAIT", "HOLD LONG", "TAKE PROFIT").
3. The Lines
Gray Zone: When the line is inside the bands, the market is noisy. No trading is recommended.
Colored Line: When the line is Green or Red outside the bands, a trend is active.
Settings
Market Profile: Choose your asset class (Crypto, Forex, etc.) to auto-tune the indicator.
Show Signal Shapes: Toggle the visual icons on/off to clean up the chart.
Manual Parameters: If "Custom" is selected, you can tweak the Lookback Period, Smoothing Length, and Band Multipliers.
Disclaimer This tool is for educational and technical analysis purposes only. It does not provide financial advice. Past performance of a trend algorithm does not guarantee future results.
Unlike standard momentum indicators (like RSI or MACD), this tool filters out market noise to answer a specific question: "Is the market trending in an organized line, or is it chaotic?"
Mathematical Concept
Pearson Correlation: Measures how strictly the price follows a linear path over a set period.
Hull Moving Average (HMA): The input price is pre-smoothed using HMA to reduce lag significantly compared to standard correlations.
Adaptive Volatility Bands: The "Dead Zone" (Gray Area) expands and contracts based on the Standard Deviation of the correlation itself. This filters out fake signals during choppy markets.
Key Features
Asset Presets: A "Market Profile" menu allows you to instantly load optimized parameters for Crypto, Forex, Indices, or Stocks without guessing numbers.
Professional HUD: A 3-column "Head-Up Display" provides real-time status on Trend Direction, Numerical Strength, and Actionable Signals.
Smart Signal System: Differentiates between a simple breakout and a high-momentum "Strong Trend".
How to Use
1. The Signals (Shapes)
Triangle (Green/Red): Breakout Entry. The TSI line has crossed out of the gray noise zone. This marks the potential start of a trend.
Background Flash (Magenta): Strong Confirmation. The trend has reached a high correlation score (> 0.60). This indicates the trend is accelerating and stable.
X-Mark (Orange/Yellow): Exhaustion. The trend strength is dropping back below the strong threshold. This is a statistical warning that trend linearity is failing (potential Take Profit area).
2. The Dashboard (HUD)
TREND: Shows the current market state (Bull Power, Bear Power, or Neutral/Chop).
ACTION: Gives a suggestion based on the math (e.g., "WAIT", "HOLD LONG", "TAKE PROFIT").
3. The Lines
Gray Zone: When the line is inside the bands, the market is noisy. No trading is recommended.
Colored Line: When the line is Green or Red outside the bands, a trend is active.
Settings
Market Profile: Choose your asset class (Crypto, Forex, etc.) to auto-tune the indicator.
Show Signal Shapes: Toggle the visual icons on/off to clean up the chart.
Manual Parameters: If "Custom" is selected, you can tweak the Lookback Period, Smoothing Length, and Band Multipliers.
Disclaimer This tool is for educational and technical analysis purposes only. It does not provide financial advice. Past performance of a trend algorithm does not guarantee future results.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。