PROTECTED SOURCE SCRIPT

QuantMotions - TPR Sentinel Line

33
TPR Sentinel Line is an advanced adaptive Support/Resistance system that combines multi-layered trend analysis with a directional Time-Price Ratio (TPR) engine. The indicator dynamically builds a stabilized support or resistance line that adjusts to market volatility, trend strength, ATR expansion and contraction, and real-time slope changes.

This creates a high-precision, self-adjusting trend barrier that acts as support in uptrends, resistance in downtrends, and a neutral anchor during sideways phases.

Key Features

✔ Adaptive Trend Base
- A composite trend model blending:
- Kijun-style midpoint
- Donchian midline
- SMA & EMA smoothing

This creates a stable baseline that reacts smoothly but reliably to structural trend shifts.

✔ Directional TPR Calculation

The indicator measures slope across short, medium, and long trend windows, normalizes it with ATR, and determines:
- Trend direction
- Trend strength
- Momentum quality

✔ Dynamic Support/Resistance Line

Depending on trend direction:
- In uptrends → the line becomes adaptive support
- In downtrends → the line becomes adaptive resistance
- In neutral phases → the line centers around the smoothed trend base

A built-in lag factor prevents unrealistic jumps and keeps the level stable.

✔ Automatic Support/Resistance Zones

The indicator expands the main line into upper and lower zones based on ATR and trend strength, creating a dynamic volatility envelope around the trend structure.

✔ Signals & Alerts

- Support bounce
- Resistance rejection
- Breakouts above/below the dynamic line

These events help identify high-probability continuation or reversal moments.

✔ Information Panel

A real-time status table displays:
- Trend direction
- Trend strength
- Current S/R level

🎯 Ideal For

- Precision entries on pullbacks
- Detecting trend shifts earlier
- Identifying strong or weak trend phases
- Adaptive take-profit and stop-loss zones
- Filtering false breakouts

💡 Summary

TPR Sentinel Line gives you a living, breathing support/resistance structure that evolves with the market.
Instead of relying on static levels, you get a continuously adapting trend barrier that reflects real strength, real volatility, and real momentum.

A powerful tool for traders who want structure, clarity, and trend confidence.

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.