OPEN-SOURCE SCRIPT
EMA Crossover Pro + Dynamic Targets + Live Dashboard with Time

ETA Method — choose between three modes:
ATR-Based — divides distance to target by the current ATR value. More stable since ATR reflects actual volatility.
Linear Velocity — divides distance by the average absolute price move per bar over the last N bars. More responsive to recent momentum.
Both — shows both estimates side by side in the dashboard.
Velocity Lookback — how many bars back to measure average speed (default 20).
Show ETA labels on chart — toggles floating labels to the right of each target line.
Dashboard additions (rows 9–13):
A header row showing ⏱ ETA TO TARGET with the active method.
One row per target (TG1–TG4) showing:
Human-readable time estimate: < 1 min / ~45 min / ~2h 30m / ~1d 4h
Bar count in parentheses: (12 bars)
Percentage distance remaining: (1.23% away)
Once a target is hit it shows ✅ HIT in gray.
On-chart labels: small navy labels appear just to the right of each un-hit target line showing the ETA inline.
Note: These are statistical estimates based on recent volatility/speed — not predictions. Strong trend moves will arrive faster, consolidations slower. Use them as a rough waiting-time guide rather than a guarantee.
ATR-Based — divides distance to target by the current ATR value. More stable since ATR reflects actual volatility.
Linear Velocity — divides distance by the average absolute price move per bar over the last N bars. More responsive to recent momentum.
Both — shows both estimates side by side in the dashboard.
Velocity Lookback — how many bars back to measure average speed (default 20).
Show ETA labels on chart — toggles floating labels to the right of each target line.
Dashboard additions (rows 9–13):
A header row showing ⏱ ETA TO TARGET with the active method.
One row per target (TG1–TG4) showing:
Human-readable time estimate: < 1 min / ~45 min / ~2h 30m / ~1d 4h
Bar count in parentheses: (12 bars)
Percentage distance remaining: (1.23% away)
Once a target is hit it shows ✅ HIT in gray.
On-chart labels: small navy labels appear just to the right of each un-hit target line showing the ETA inline.
Note: These are statistical estimates based on recent volatility/speed — not predictions. Strong trend moves will arrive faster, consolidations slower. Use them as a rough waiting-time guide rather than a guarantee.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.