OPEN-SOURCE SCRIPT
Trend Pulse Oscillator [invincible3]

Trend Pulse Oscillator (TPO) is a hybrid trend + momentum indicator that combines normalized squeeze momentum with normalized MACD confirmation in a single oscillator.
The indicator helps traders analyze three key market conditions:
Unlike traditional indicators that operate on different scales, TPO normalizes all components into the same range, making it easier to visually compare signals in one panel.
⚙️ How It Works
The indicator combines two main analytical components.
🔹 Squeeze Momentum Engine
A Bollinger Band vs Keltner Channel squeeze framework is used to detect periods of volatility compression.
When volatility compresses, markets often prepare for a strong directional move.
A linear regression momentum calculation is applied and then normalized using statistical scaling, producing the histogram that represents the trend pulse.
🔹 Normalized MACD Confirmation
The indicator also calculates MACD and Signal lines, but instead of plotting the raw values, both lines are normalized to match the oscillator scale.
This allows traders to easily compare:
• trend confirmation
• momentum acceleration
• direction changes
within the same visual space.
📊 Visual Elements
Histogram – Trend Pulse
The histogram represents the main momentum engine.
• Rising green bars → strengthening bullish momentum
• Falling red bars → strengthening bearish momentum
• Above zero → bullish bias
• Below zero → bearish bias
🔵 MACD & 🟠 Signal Lines
• Blue line → normalized MACD
• Orange line → normalized Signal
MACD above Signal suggests bullish confirmation.
MACD below Signal suggests bearish confirmation.
🎯 Zero Line (Volatility State)
The zero line changes color to display squeeze conditions.
Yellow → squeeze active (volatility compression)
Gray → squeeze released (volatility expansion)
Blue → neutral state
This helps traders identify potential breakout environments.
📏 Reference Bands
Upper and lower bands highlight extended momentum zones, which may indicate:
• strong trend continuation
• possible momentum exhaustion
• overextended market conditions
⚙️ Settings
Squeeze Settings
Controls volatility compression detection.
• BB Length
• BB MultFactor
• KC Length
• KC MultFactor
• Use True Range
📐 Normalization Settings
Controls statistical scaling of the oscillator.
• Normalize Lookback
• Target Range
• Z-Score Clamp
• Band Level
These parameters adjust how values are scaled and displayed visually.
📈 MACD Settings
Controls the trend confirmation component.
• Fast Length
• Slow Length
• Signal Length
• EMA or SMA options
💡 Typical Usage
Traders often look for alignment between:
✅ Rising histogram momentum
✅ MACD above Signal
✅ Squeeze release after compression
This combination may indicate momentum expansion within a developing trend.
Similarly:
Falling histogram
MACD below Signal
can suggest bearish momentum continuation.
⭐ Key Features
✔ Combines volatility, momentum, and trend confirmation
✔ Uses statistical normalization for cleaner visualization
✔ Helps identify momentum expansion phases
✔ Works across all markets and timeframes
⚠️ Notes
• Designed as a trend and momentum analysis tool
• Normalization is used for visual comparison only
• Best used alongside price action, support/resistance, or higher timeframe analysis
The indicator helps traders analyze three key market conditions:
- Trend direction
- Momentum strength
- Volatility compression and expansion
Unlike traditional indicators that operate on different scales, TPO normalizes all components into the same range, making it easier to visually compare signals in one panel.
⚙️ How It Works
The indicator combines two main analytical components.
🔹 Squeeze Momentum Engine
A Bollinger Band vs Keltner Channel squeeze framework is used to detect periods of volatility compression.
When volatility compresses, markets often prepare for a strong directional move.
A linear regression momentum calculation is applied and then normalized using statistical scaling, producing the histogram that represents the trend pulse.
🔹 Normalized MACD Confirmation
The indicator also calculates MACD and Signal lines, but instead of plotting the raw values, both lines are normalized to match the oscillator scale.
This allows traders to easily compare:
• trend confirmation
• momentum acceleration
• direction changes
within the same visual space.
📊 Visual Elements
Histogram – Trend Pulse
The histogram represents the main momentum engine.
• Rising green bars → strengthening bullish momentum
• Falling red bars → strengthening bearish momentum
• Above zero → bullish bias
• Below zero → bearish bias
🔵 MACD & 🟠 Signal Lines
• Blue line → normalized MACD
• Orange line → normalized Signal
MACD above Signal suggests bullish confirmation.
MACD below Signal suggests bearish confirmation.
🎯 Zero Line (Volatility State)
The zero line changes color to display squeeze conditions.
Yellow → squeeze active (volatility compression)
Gray → squeeze released (volatility expansion)
Blue → neutral state
This helps traders identify potential breakout environments.
📏 Reference Bands
Upper and lower bands highlight extended momentum zones, which may indicate:
• strong trend continuation
• possible momentum exhaustion
• overextended market conditions
⚙️ Settings
Squeeze Settings
Controls volatility compression detection.
• BB Length
• BB MultFactor
• KC Length
• KC MultFactor
• Use True Range
📐 Normalization Settings
Controls statistical scaling of the oscillator.
• Normalize Lookback
• Target Range
• Z-Score Clamp
• Band Level
These parameters adjust how values are scaled and displayed visually.
📈 MACD Settings
Controls the trend confirmation component.
• Fast Length
• Slow Length
• Signal Length
• EMA or SMA options
💡 Typical Usage
Traders often look for alignment between:
✅ Rising histogram momentum
✅ MACD above Signal
✅ Squeeze release after compression
This combination may indicate momentum expansion within a developing trend.
Similarly:
Falling histogram
MACD below Signal
can suggest bearish momentum continuation.
⭐ Key Features
✔ Combines volatility, momentum, and trend confirmation
✔ Uses statistical normalization for cleaner visualization
✔ Helps identify momentum expansion phases
✔ Works across all markets and timeframes
⚠️ Notes
• Designed as a trend and momentum analysis tool
• Normalization is used for visual comparison only
• Best used alongside price action, support/resistance, or higher timeframe analysis
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。