OPEN-SOURCE SCRIPT
Percentage Buy, Target, Stop + Overlay

Percentage Buy, Target, Stop + Overlay
This tool helps traders plan entries and exits using fixed percentage offsets instead of volatility. It plots Buy, Target, and Stop levels on the chart based on a user‑defined entry price and simple percentage multipliers—giving a clear, objective framework for risk/reward.
NOTE: To activate the lines and table, enter a Buy Price greater than zero.
What It Does
Buy Price Input: Manually enter your intended entry price (e.g. planned or executed trade).
Percentage‑Based Target and Stop:
Target Price = Buy × (1 + Target % / 100)
Stop Price = Buy × (1 – Stop % / 100)
Visual Overlay: Draws horizontal lines at Buy, Target, and Stop levels on your chart.
Interactive Table: Displays Buy, Target, Stop and their percentages in a customizable on‑chart table.
Customization Options
Line Settings
Choose color, style (solid/dashed/dotted), and width for each line.
Extend lines to the right only or both directions.
Table Settings
Position table (top/bottom × left/right).
Toggle rows for Buy, Target, Stop, and percentage values.
Adjust text colors and background transparency.
How to Use It for Trading
Plan Your Trade: Enter your entry price.
Set Exits: Specify target and stop percentages to instantly see risk/reward zones.
Visual Reference: Lines update in real time as you adjust inputs—ideal for live monitoring or backtesting.
Straightforward Risk Management: Fixed percentages offer a simple alternative when ATR or volatility‑based levels aren’t preferred.
Ideal For
Traders who prefer fixed percentage targets/stops
Quick risk/reward visualization
Beginners seeking a clear, rule‑based exit framework
Any trader wanting an alternative to volatility‑based sizing
This tool helps traders plan entries and exits using fixed percentage offsets instead of volatility. It plots Buy, Target, and Stop levels on the chart based on a user‑defined entry price and simple percentage multipliers—giving a clear, objective framework for risk/reward.
NOTE: To activate the lines and table, enter a Buy Price greater than zero.
What It Does
Buy Price Input: Manually enter your intended entry price (e.g. planned or executed trade).
Percentage‑Based Target and Stop:
Target Price = Buy × (1 + Target % / 100)
Stop Price = Buy × (1 – Stop % / 100)
Visual Overlay: Draws horizontal lines at Buy, Target, and Stop levels on your chart.
Interactive Table: Displays Buy, Target, Stop and their percentages in a customizable on‑chart table.
Customization Options
Line Settings
Choose color, style (solid/dashed/dotted), and width for each line.
Extend lines to the right only or both directions.
Table Settings
Position table (top/bottom × left/right).
Toggle rows for Buy, Target, Stop, and percentage values.
Adjust text colors and background transparency.
How to Use It for Trading
Plan Your Trade: Enter your entry price.
Set Exits: Specify target and stop percentages to instantly see risk/reward zones.
Visual Reference: Lines update in real time as you adjust inputs—ideal for live monitoring or backtesting.
Straightforward Risk Management: Fixed percentages offer a simple alternative when ATR or volatility‑based levels aren’t preferred.
Ideal For
Traders who prefer fixed percentage targets/stops
Quick risk/reward visualization
Beginners seeking a clear, rule‑based exit framework
Any trader wanting an alternative to volatility‑based sizing
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.