PROTECTED SOURCE SCRIPT

ATR SL Calculator

20
Description:
The ATR SL Calculator is a Pine Script v6 indicator designed for dynamic stop‑loss management.
It overlays an interactive table on your chart that:
// • Tracks a custom entry price per ticker (or defaults to the current close)
// • Calculates an ATR‑based stop‑loss level using adjustable period and multiplier
// • Displays real‑time ATR value and its percentage relative to price
// • Shows percentage change from entry to current price
// • Computes distances and percentage differences to the 20 and 150 SMAs
// • Estimates market capitalization from total shares outstanding
// • Allows you to position the stats table anywhere on the chart

Features:
• Per-symbol manual entry price input (format: SYM=price)
• Default to closing price if no manual entry specified
• Adjustable ATR period and multiplier for SL calculation
• Distances and % differences to 20 and 150 SMAs
• Real-time ATR value and % of current price
• Live market cap computed from shares outstanding and current price
• Configurable table position: Top Left, Top Center, Top Right, Bottom Left, Bottom Right

Usage:
1. Add the indicator to your TradingView chart.
2. In the settings, enter entry prices as "SYMBOL=PRICE" pairs or enable default close.
3. Adjust ATR period and multiplier to suit your risk tolerance.
4. Choose the table position and view real-time SL, ATR, SMA distances, percentages, and market cap.

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.