Entry / TP / SL Alert Bands (Simple & Stable)

Description
This tool plots customizable Entry, Take-Profit, and Stop-Loss reference levels, along with two alert bands derived as a percentage of the distance between Entry→TP and Entry→SL. The bands update immediately when inputs are adjusted and remain constant across the chart. This is useful for traders who want to visually monitor when price approaches key zones associated with their pre-defined trade plan.
Core Features
• Manual Entry, TP, and SL input fields
• Long or Short mode
• Upper alert band = a user-defined % of the distance toward TP
• Lower alert band = a user-defined % of the distance toward SL
• Optional visibility controls for Entry, TP, SL lines
• Alerts for:
– Price crossing the upper band
– Price crossing the lower band
– Price crossing either band
• Works on any symbol and any timeframe
• Alerts use TradingView’s built-in alertcondition() system
How It Works
The script computes the absolute distance between Entry→TP and Entry→SL, then applies user-defined percentages to determine where the alert bands should be drawn. If TP/SL are reversed relative to Entry for the selected direction, the relevant band may be invisible (e.g., negative or invalid distance). Proper TP/SL placement is required for intended use.
Notes
• This tool does not generate buy/sell signals.
• This tool does not provide financial advice.
• Proper risk management, independent decision-making, and verification of all settings are required.
⸻
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com drlicht1.
A TradingView NÃO recomenda pagar ou usar um script, a menos que você confie totalmente em seu autor e entenda como ele funciona. Você também pode encontrar alternativas gratuitas e de código aberto em nossos scripts da comunidade.
Instruções do autor
Aviso legal
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com drlicht1.
A TradingView NÃO recomenda pagar ou usar um script, a menos que você confie totalmente em seu autor e entenda como ele funciona. Você também pode encontrar alternativas gratuitas e de código aberto em nossos scripts da comunidade.