OPEN-SOURCE SCRIPT
TP Hunter [Sniper Trading System]

TP Hunter Overlay — Sniper Trading System Suite
What it is
TP Hunter helps with the hardest part of trading: exits. It plots Take Profit zones (TP1/TP2/TP3) using a standard deviation model around a 20-period moving average (“Centerline”). When price reaches a target, TP Hunter marks it on the chart and can trigger an alert—so you can scale out with discipline.
How it works (plain language)
The Centerline is a 20-period SMA (average price).
The script measures recent volatility (standard deviation) and projects TP levels above/below the Centerline.
If price is above the Centerline, the script treats it as buy context; below = sell context.
When price touches a TP level in that context, the indicator prints a shape (TP1 green, TP2 orange, TP3 red) and alerts can fire.
Inputs
TP1/TP2/TP3 Multiplier: distance of each target from the Centerline (in standard deviations).
RSI Period / Levels: optional filter to avoid extreme conditions (default enabled).
Show TP Hit Labels: toggle the on-chart labels.
Visuals
Centerline (gray)
TP hits:
Buy hits = triangles above bars (TP1/TP2/TP3 = green/orange/red).
Sell hits = triangles below bars (TP1/TP2/TP3 = green/orange/red).
Alerts
TP1/TP2/TP3 hit alerts for both buy and sell contexts.
Suggested workflow: set alerts, scale out at TP1/TP2, reserve a runner for TP3.
Best practices
Use TP Hunter to plan exits after your own entry signal (e.g., time-based or liquidity-based entries).
If you want fewer but stronger targets, increase the multipliers.
If you want more frequent targets, decrease them slightly.
RSI filter can reduce noise during extreme momentum.
Notes & Limitations
This is an overlay tool for exit management, not a standalone entry system.
Shapes confirm on bar close; alerts can trigger intrabar when a level is touched.
No financial advice. Past performance does not guarantee future results.
What it is
TP Hunter helps with the hardest part of trading: exits. It plots Take Profit zones (TP1/TP2/TP3) using a standard deviation model around a 20-period moving average (“Centerline”). When price reaches a target, TP Hunter marks it on the chart and can trigger an alert—so you can scale out with discipline.
How it works (plain language)
The Centerline is a 20-period SMA (average price).
The script measures recent volatility (standard deviation) and projects TP levels above/below the Centerline.
If price is above the Centerline, the script treats it as buy context; below = sell context.
When price touches a TP level in that context, the indicator prints a shape (TP1 green, TP2 orange, TP3 red) and alerts can fire.
Inputs
TP1/TP2/TP3 Multiplier: distance of each target from the Centerline (in standard deviations).
RSI Period / Levels: optional filter to avoid extreme conditions (default enabled).
Show TP Hit Labels: toggle the on-chart labels.
Visuals
Centerline (gray)
TP hits:
Buy hits = triangles above bars (TP1/TP2/TP3 = green/orange/red).
Sell hits = triangles below bars (TP1/TP2/TP3 = green/orange/red).
Alerts
TP1/TP2/TP3 hit alerts for both buy and sell contexts.
Suggested workflow: set alerts, scale out at TP1/TP2, reserve a runner for TP3.
Best practices
Use TP Hunter to plan exits after your own entry signal (e.g., time-based or liquidity-based entries).
If you want fewer but stronger targets, increase the multipliers.
If you want more frequent targets, decrease them slightly.
RSI filter can reduce noise during extreme momentum.
Notes & Limitations
This is an overlay tool for exit management, not a standalone entry system.
Shapes confirm on bar close; alerts can trigger intrabar when a level is touched.
No financial advice. Past performance does not guarantee future results.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.