OPEN-SOURCE SCRIPT
Price-Time Confluence Engine

Price-Time Confluence Engine is a dual-layer market analysis indicator designed to synchronize price-based targets with time-based momentum projections, helping traders anticipate potential reaction points, reversals, and momentum shifts.
The indicator combines adaptive ATR price targets with deviation context on the chart, alongside a forward-projected Stochastic RSI structure in a dedicated pane.
🔹 Core Components
1️⃣ Adaptive Price Targets (Chart Overlay)
On every new candle, a new ATR-based price target is generated automatically.
The target updates dynamically with live price movement until the candle closes.
Targets are directionally aligned with the current candle’s momentum.
A HIT label is displayed when price reaches the active target during the candle.
Behavioral Insight
If a target fails to be hit and remains red after the next candle forms, this behavior has shown a tendency to correlate with short-term swing reversals, signaling potential exhaustion or loss of momentum.
2️⃣ Mean & Deviation Framework
A configurable mean (moving average) is plotted with up to four deviation bands.
Deviation bands provide contextual boundaries for price targets and help visually frame volatility expansion or compression.
An optional filter allows HIT labels to require alignment with the first deviation band.
3️⃣ Stochastic RSI Projection (Indicator Pane)
The lower pane displays live Stochastic RSI %K and %D values.
A historical Stoch RSI pattern is cloned and projected forward in time, creating a time-based momentum forecast.
The projection highlights anticipated crossing points between %K and %D before they occur.
A single dynamic “Projected Cross” label marks the next expected crossing location.
Vertical reference lines and directional arrows help visualize projected momentum shifts.
Important Note on Timeframes
The projection logic is optimized for the Daily timeframe.
Other timeframes may require different lookback settings for meaningful alignment.
Price-based targets and deviation logic function on any timeframe.
🔧 User Controls
ATR length and multiplier
Mean length and deviation depth
Number of deviation bands displayed
Label visibility and history limits
Projection visibility and forward shift
Optional normalization of projected momentum
Visual toggles for arrows, vertical lines, and labels
📈 How to Use
Observe the active price target forming with each new candle.
Watch whether price hits or fails to hit the target before the next candle.
Use deviation bands to contextualize where targets sit within volatility structure.
Reference the Projected Cross in the lower pane to anticipate potential momentum transitions.
Look for confluence between unhit targets and projected momentum shifts as potential inflection zones.
⚠️ Disclaimer
This indicator is a visual analysis and decision-support tool.
It does not generate trade signals and should be used in conjunction with proper risk management and additional market context.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.