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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.