OPEN-SOURCE SCRIPT
Target Reach & Trend Projection

Target Reach & Trend Projection
Overview: The Target Reach & Trend Projection indicator helps traders estimate how long (in candles) it might take for the price to reach a chosen target level, while also providing insight into the current and higher-timeframe trend directions.
Key Features
1. Target Projection: Set your custom Target Price manually.
The indicator calculates the expected number of candles needed to reach that price, based on recent price velocity.
Displays an estimated date and time for when the price could reach your target.
2. Trend Detection (Local): Detects the current market direction using one of two methods:
Linear Trend: Measures direct slope between candles.
Smoothed Trend: Uses a moving average slope for cleaner, less noisy trend estimation.
3. Higher-Timeframe Confirmation: Confirms whether the higher timeframe (e.g., 4H, 1D) trend agrees with the local trend.
Displays “✅ Aligned” when both are in sync and “⚠️ Diverging” when not.
4. On-Chart Information: A dynamic label near the target price line shows:
Target level
Trend method used
Estimated candles to target
Current trend direction
Estimated time of arrival (ETA)
Higher-timeframe trend confirmation
5. Visual Feedback: Background color changes lightly to reflect trend direction (green for bullish, red for bearish).
6. Alerts: Optional alerts for when:
The target price is reached.
Both local and higher-timeframe trends align bullishly or bearishly.
How It Works
The script measures the average price velocity (slope) over a chosen lookback period.
It then divides the distance between the current price and the target by that slope to estimate how many candles it might take to get there.
It projects the estimated time of arrival based on your chart’s current timeframe.
The script also checks a higher timeframe trend (using a moving average) for multi-timeframe confirmation.
🧭 Use Cases
Estimating the time horizon for swing trades or targets.
Confirming momentum direction before entering or exiting positions.
Aligning intraday setups with higher-timeframe trends.
⚠️ Notes
Estimates assume current trend velocity continues — it does not predict future volatility or reversals.
Works best on time-based charts with clear directional movement (e.g., 1H, 4H, 1D).
Overview: The Target Reach & Trend Projection indicator helps traders estimate how long (in candles) it might take for the price to reach a chosen target level, while also providing insight into the current and higher-timeframe trend directions.
Key Features
1. Target Projection: Set your custom Target Price manually.
The indicator calculates the expected number of candles needed to reach that price, based on recent price velocity.
Displays an estimated date and time for when the price could reach your target.
2. Trend Detection (Local): Detects the current market direction using one of two methods:
Linear Trend: Measures direct slope between candles.
Smoothed Trend: Uses a moving average slope for cleaner, less noisy trend estimation.
3. Higher-Timeframe Confirmation: Confirms whether the higher timeframe (e.g., 4H, 1D) trend agrees with the local trend.
Displays “✅ Aligned” when both are in sync and “⚠️ Diverging” when not.
4. On-Chart Information: A dynamic label near the target price line shows:
Target level
Trend method used
Estimated candles to target
Current trend direction
Estimated time of arrival (ETA)
Higher-timeframe trend confirmation
5. Visual Feedback: Background color changes lightly to reflect trend direction (green for bullish, red for bearish).
6. Alerts: Optional alerts for when:
The target price is reached.
Both local and higher-timeframe trends align bullishly or bearishly.
How It Works
The script measures the average price velocity (slope) over a chosen lookback period.
It then divides the distance between the current price and the target by that slope to estimate how many candles it might take to get there.
It projects the estimated time of arrival based on your chart’s current timeframe.
The script also checks a higher timeframe trend (using a moving average) for multi-timeframe confirmation.
🧭 Use Cases
Estimating the time horizon for swing trades or targets.
Confirming momentum direction before entering or exiting positions.
Aligning intraday setups with higher-timeframe trends.
⚠️ Notes
Estimates assume current trend velocity continues — it does not predict future volatility or reversals.
Works best on time-based charts with clear directional movement (e.g., 1H, 4H, 1D).
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.