PROTECTED SOURCE SCRIPT
ATR Trailing Stop (Ultimate Portfolio)

ATR Trailing Stop (Ultimate Portfolio)
This advanced risk management tool is based on the trading philosophy of Aksel Kibar, CMT (Tech Charts), specifically designed to manage capital and protect profits through volatility-based trailing stops. Unlike standard indicators, this "Ultimate Portfolio" version acts as a comprehensive risk dashboard for up to 10 different assets simultaneously.
Key Features
• Global Portfolio Dashboard: Track the status of 10 different positions (Symbol, Side, Price, and PnL%) in a single table, regardless of which chart you are currently viewing.
• Hybrid Engine (Auto/Manual):
o Manual Mode: If the current chart matches a symbol in your portfolio list, the script uses your specific entry date and price to track the stop-loss.
o Auto Mode: If the symbol is not in your list, it functions as a trend-following indicator (similar to Supertrend) to identify general market direction.
• Close-Based Exit Logic: To avoid being "stop-hunted" by intraday wicks, the stop is only triggered if the candle closes beyond the trailing stop level.
• First-Day Custom Multiplier: A unique feature allowing for tighter risk on the breakout day (1 x ATR or 0.5 x ATR) before switching to a wider multiplier for trend following.
• Dynamic PnL Tracker: Real-time calculation of your profit/loss percentage for each slot, which "freezes" once a stop is hit to record the final result.
Core Logic
The indicator utilizes the Average True Range (ATR) to measure market noise. The formula for the stop level typically follows:
• Long: {Stop Level} = {Highest Price} - (ATR x Multiplier)
• Short: {Stop Level} = {Lowest Price} + (ATR x Multiplier).
How to Use
1. Input Your Trades: Enter your Symbol, Side (Long/Short), Entry Price, and Entry Date into any of the 10 available slots.
2. Monitor the Dashboard: Use the on-screen table to see which trades are active (RUN), waiting for entry (WAIT), or have hit their stop-loss (STOP).
3. Interact: Hover over the dashboard cells to see detailed tooltips including entry details and current stop levels.
This script transforms TradingView into a professional risk management terminal, ensuring that your exits are governed by volatility and discipline rather than emotion.
This advanced risk management tool is based on the trading philosophy of Aksel Kibar, CMT (Tech Charts), specifically designed to manage capital and protect profits through volatility-based trailing stops. Unlike standard indicators, this "Ultimate Portfolio" version acts as a comprehensive risk dashboard for up to 10 different assets simultaneously.
Key Features
• Global Portfolio Dashboard: Track the status of 10 different positions (Symbol, Side, Price, and PnL%) in a single table, regardless of which chart you are currently viewing.
• Hybrid Engine (Auto/Manual):
o Manual Mode: If the current chart matches a symbol in your portfolio list, the script uses your specific entry date and price to track the stop-loss.
o Auto Mode: If the symbol is not in your list, it functions as a trend-following indicator (similar to Supertrend) to identify general market direction.
• Close-Based Exit Logic: To avoid being "stop-hunted" by intraday wicks, the stop is only triggered if the candle closes beyond the trailing stop level.
• First-Day Custom Multiplier: A unique feature allowing for tighter risk on the breakout day (1 x ATR or 0.5 x ATR) before switching to a wider multiplier for trend following.
• Dynamic PnL Tracker: Real-time calculation of your profit/loss percentage for each slot, which "freezes" once a stop is hit to record the final result.
Core Logic
The indicator utilizes the Average True Range (ATR) to measure market noise. The formula for the stop level typically follows:
• Long: {Stop Level} = {Highest Price} - (ATR x Multiplier)
• Short: {Stop Level} = {Lowest Price} + (ATR x Multiplier).
How to Use
1. Input Your Trades: Enter your Symbol, Side (Long/Short), Entry Price, and Entry Date into any of the 10 available slots.
2. Monitor the Dashboard: Use the on-screen table to see which trades are active (RUN), waiting for entry (WAIT), or have hit their stop-loss (STOP).
3. Interact: Hover over the dashboard cells to see detailed tooltips including entry details and current stop levels.
This script transforms TradingView into a professional risk management terminal, ensuring that your exits are governed by volatility and discipline rather than emotion.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.