Skip to content

Al0010/portfolio-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Portfolio Lab

Advanced quantitative analysis terminal designed to transform TradingView into a powerful multi-asset portfolio management engine. The script is designed for traders and investors looking to validate asset allocation strategies or monitor their real-market exposure against a specific benchmark.

How to configure it:

Asset Allocation: Enter your desired tickers (Crypto, Stocks, Forex, or Commodities) and assign a percentage weight to each slot. Ensure the total weight equals 100%. Capital Configuration: Choose from predefined capital profiles (from $1k to $1M) or set a custom capital amount for precise simulations. Costs & Fees: Set a "Portfolio Fee" to reflect transaction costs and generate a realistic, non-theoretical equity curve. Benchmark Comparison: Select a reference index (e.g., S&P 500 or Bitcoin) to measure the Alpha generated by your active management.

Multi-Mode Analysis Engine

The script offers four independent visualization modes, instantly switchable via the settings menu: Cumulative (%): Comparative analysis between the portfolio's percentage return and the benchmark. Equity ($): Monetary monitoring of net liquidity and cash growth. SMA Ribbon: Identification of the portfolio's trend regime using moving averages applied directly to the equity curve. Volatility: Real-time monitoring of portfolio "thermal stress" via smoothed Standard Deviation (WMA).

Alpha-Glow Logic

The system utilizes a high-fidelity visual architecture based on dynamic gradients. When the portfolio outperforms the benchmark (Positive Alpha), the fill area illuminates, providing immediate psychological feedback on the quality of your management.

Real-Time Dashboard

An integrated table in the bottom-right corner processes live data to provide:

  1. Net Value: Current portfolio value, including PnL and costs.
  2. Return %: Total return from the selected starting anchor point.
  3. Alpha vs Index: The "holy grail" of trading—exactly how much value you are adding compared to a passive investment.

Capital Configuration

  1. Fixed Capital: Toggle quick selectors for standard account sizes.
  2. Custom Capital: Manual input for simulating specific real-world accounts.

Date Period Analysis

Allows you to set a precise start date (Day/Month/Year) to analyze portfolio performance during specific macroeconomic events or historical cycles.

About

Advanced quantitative analysis terminal designed to transform TradingView into a powerful multi-asset portfolio management engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors