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.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน