PROTECTED SOURCE SCRIPT
ที่อัปเดต:

Multi-Asset % Performance Table | v2.1 | TCP

79
Multi-Asset % Performance Table | v2.1 | TCP

ESSENTIAL SUMMARY:

Multi-Asset % Performance Table eliminates the need to manually draw and manage individual "Price Range" tools for every asset. It automatically tracks up to 15 tickers independently in a single dashboard, calculating a TOTAL SCORE (Portfolio Average) for you. Unlike manual drawings, it supports a Global Range while allowing Custom Dates for specific assets, ensuring each ticker is calculated based on its own precise entry/exit. The Smart Visuals dynamically draw the correct date lines only for the ticker you are currently viewing, keeping your chart automatic, accurate, and clutter-free.

FUL DESCRIPTION:
📊 What is this tool?

The Multi-Asset % Performance Table is a powerful portfolio dashboard designed to track the percentage performance of up to 15 different assets simultaneously.

Instead of checking tickers one by one or manually drawing price ranges, this indicator aggregates everything into a single, clean table. It allows you to compare the ROI (Return on Investment) of a basket of coins or stocks over a specific time period and calculates an aggregate TOTAL SCORE (Average %) for your selection.

🚀 Key Features

15 Asset Slots: Monitor up to 15 different tickers (Crypto, Stocks, Forex, etc.) in one view.

Global vs. Custom Dates: Set a "Global" start/end date for the whole portfolio, but override specific assets with Custom Dates if they entered the portfolio at a different time.

Smart Visuals: Automatically draws vertical dashed lines on your chart representing the start and end dates of the ticker you are currently viewing.

Total Score Calculation: Calculates the average percentage change of your portfolio. You can dynamically include or exclude specific assets from this average using the settings.

Status Column: A quick visual reference (✔ or ✘) in the table showing which assets are currently included in the Total Score calculation.

⚙️ How it Works

Data Fetching: The script pulls "Close" prices from the Daily timeframe to ensure accuracy across long periods.

Smart Matching: The visual lines automatically detect which asset you are viewing. For example, if you are looking at BTCUSDT and have custom dates set for it, the vertical lines will jump to those specific dates. If you view a ticker not in your list, it defaults to the Global dates.

Visual Protection: The script uses advanced logic to ensure only one set of range lines appears on the chart at a time, keeping your workspace clean.

🛠️ Instructions & Settings
1. Setting up your Assets

Open the Settings (Cogwheel icon).

Under ASSET 1 through ASSET 15, enter the tickers you want to track (e.g., BINANCE:BTCUSDT).

Include in Avg?: Uncheck this if you want to see the asset in the table but exclude it from the "TOTAL SCORE" average.

2. Defining Time Ranges

Global Settings: Set the Global Start and Global End dates at the top. This applies to all assets by default.

Custom Dates: If a specific asset (e.g., Asset 4) was bought on a different day, check the "Custom Dates?" box for that asset and enter its specific Start/End time.

3. Reading the Table

The table appears on the chart (default: Bottom Right) with three columns:

Asset: The name of the ticker.

% Change: The percentage move from Start Date to End Date. (Green = Positive, Red = Negative).

Inc: Shows a ✔ if the asset is included in the Total Score average, or a ✘ if excluded.

4. The Visual Lines

Two vertical dashed lines will appear on your chart.

Note: These lines are visual references only. You cannot drag them to change the dates. To change the dates, you must use the Settings menu.

💡 Tips

Hover for Details: Hover your mouse over the % Change value in the table to see a tooltip showing the exact Start Price and End Price used for the calculation.

Resolution: The script defaults to 1 Day resolution for optimal accuracy on historical data.

v2.1 | TCP - Custom Built for Precision Performance Tracking
เอกสารเผยแพร่
Removed the time offset that was the critical piece to getting the math to align perfectly with the visuals on the daily candles.

Summary of the final polish:
Math: Exact Close-to-Close calculation (no more hidden time offsets).
Visuals: "Always Redraw" logic ensures lines never disappear or ghost.
Usability: Smart matching and the status column make it easy to manage.
เอกสารเผยแพร่
Release Notes: v2.2 Updates

New "Live Performance" Mode:
- The Default End Date is now set to the future (2099). This enables a "Live" tracking mode where the performance automatically updates with every new candle up to the current moment.
- Visual Update: When tracking live performance, the vertical end-line now automatically snaps to the current bar (Today) instead of disappearing off the chart, ensuring your visual range is always accurate.
- You can still lock in a specific historical End Date manually if desired.

Code Enhancements:
- Date Calculation Fix: Removed internal time offsets to ensure the calculation aligns perfectly with the selected daily candle close (Close-to-Close accuracy).
- Visual Stability: Switched to a robust "Always Redraw" logic for drawing objects. This eliminates "ghost lines" and ensures the range visuals update instantly when switching tickers or timeframes.
- Table Styling: Added a bold title header for a cleaner dashboard look.

Summary: This update makes the tool "set-and-forget" for live portfolio tracking while improving the mathematical precision of historical calculations.
เอกสารเผยแพร่
Here is a concise description for your v2.5 Release Notes:

New Feature: Individual Asset Alerts
- Added independent Alert Thresholds for all 15 tickers. You can now set a specific % trigger for each asset individually (e.g., Alert if BTC > 5%, but Alert if SOL > 10%).

UI Improvements:
  1. - Cleaned up the Settings Panel: Reorganized the inputs for better readability.
  2. - Top: Include & Custom Date checkboxes.
  3. - Middle: Start & End Date selectors.
  4. - Bottom: Alert Threshold input.


Summary: This update adds granular control over alerts for every single asset in your portfolio while keeping the settings menu organized and easy to use.
เอกสารเผยแพร่
just title change

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน