INVITE-ONLY SCRIPT

Multi-Asset Universal Valuation Z_score -> PROFABIGHI_CAPITAL

18
๐ŸŒŸ Overview

The Multi-Asset Universal Valuation Z-Score โ†’ PROFABIGHI_CAPITAL indicator delivers a sophisticated portfolio screening tool by calculating normalized Z-scores for multiple assets simultaneously, incorporating price deviations alongside a suite of technical and risk-adjusted metrics to uncover relative overvaluations or undervaluations.

It empowers traders to monitor up to 25 assetsโ€”such as cryptocurrenciesโ€”in real-time through comprehensive tables, highlighting mispriced opportunities via statistical extremes, fair value estimates, and dynamic rankings for strategic rebalancing in diversified holdings.

๐Ÿ“… Assets Configuration

โ€“ Number of Assets: Define the portfolio size from 1 to 25 symbols, optimizing for computational load while expanding coverage for broader market scans.
โ€“ Asset Symbols (1-25): Individually select tickers, often crypto pairs like BTCUSD or ETHUSD, to form a watchlist tailored to specific sectors or correlations for comparative analysis.

๐Ÿ“Š General Settings

โ€“ Z-Score Lookback Period: Set the historical window for mean and standard deviation computations, influencing sensitivity to recent versus long-term deviations.
โ€“ Correlation Analysis Period: Establish the span for evaluating metric-price relationships, ensuring robust adjustments for interdependent signals.
โ€“ Show Main Table: Activate a central dashboard aggregating all assets' prices, sigma bands, fair values, and Z-scores for at-a-glance portfolio oversight.
โ€“ Show Ranking Tables: Enable sorted overviews of the top oversold and overbought assets, prioritizing high-conviction opportunities by deviation severity.
โ€“ Use Price Weighting: Blend direct price Z-scores with indicator-derived ones, anchoring the final score in raw market behavior.
โ€“ Adaptive Weighting: Dynamically scale metric influences by their correlation strength to price, promoting relevance in varying regimes.

๐Ÿ“ˆ RSI Settings

โ€“ Enable RSI: Incorporate relative strength index to capture momentum extremes within the Z-score framework.
โ€“ RSI Length: Adjust the computation period to fine-tune overbought/oversold detection in asset valuations.

๐Ÿ“ˆ ROC Settings

โ€“ Enable ROC: Include rate of change to highlight acceleration or deceleration in price trends for deviation scoring.
โ€“ ROC Period: Specify the lookback for percentage shifts, balancing short-term volatility with trend persistence.

๐Ÿ“ˆ BB% Settings

โ€“ Enable BB%: Factor in Bollinger Bands position to measure range-bound extremes relative to volatility.
โ€“ BB Length: Define the moving average span for the bands' centerline.
โ€“ BB Standard Deviation: Set the multiplier for band width, controlling sensitivity to price envelopes.

๐Ÿ“ˆ Crosby Ratio Settings

โ€“ Enable Crosby Ratio: Activate this trend angle proxy using smoothed Heikin-Ashi for directional slope analysis.
โ€“ Crosby Length: Choose the smoothing window to refine the ratio's responsiveness to price arcs.

๐Ÿ“ˆ Sharpe Ratio Settings

โ€“ Enable Sharpe Ratio: Embed risk-adjusted returns to penalize volatility in the valuation score.
โ€“ Sharpe Period: Select the calculation horizon for mean returns and standard deviation.
โ€“ Sharpe Smoothing: Apply exponential averaging to stabilize the annualized efficiency metric.

๐Ÿ“ˆ Sortino Ratio Settings

โ€“ Enable Sortino Ratio: Focus on downside volatility for a more trader-friendly risk gauge.
โ€“ Sortino Period: Determine the span for excess returns over the risk-free benchmark.
โ€“ Risk-Free Rate (%): Input the annual safe yield to adjust for opportunity costs.
โ€“ Sortino Smoothing: Smooth the downside-focused ratio for consistent signals.

๐Ÿ“ˆ Omega Ratio Settings

โ€“ Enable Omega Ratio: Use gains-versus-losses probability for threshold-sensitive performance ranking.
โ€“ Omega Period: Set the evaluation window for return distributions.
โ€“ Target Return (%): Define the minimum acceptable yield to bifurcate positive/negative outcomes.
โ€“ Omega Smoothing: Refine the ratio with averaging to mitigate outlier impacts.

๐Ÿ›ก๏ธ Threshold Settings

โ€“ Extreme Overbought Level: Mark severe positive deviations warranting aggressive sells or hedges.
โ€“ Extreme Oversold Level: Flag profound negative deviations for opportunistic buys.
โ€“ Overbought Level: Signal moderate upward stretches for cautionary monitoring.
โ€“ Oversold Level: Indicate mild downward pulls for potential accumulation.

๐ŸŽจ Color Settings

โ€“ Neutral Color: Subtle shade for assets within normal ranges, avoiding false alarms.
โ€“ Overbought Color: Alerting red for high-valuation warnings.
โ€“ Oversold Color: Inviting green for undervaluation opportunities.
โ€“ Extreme Overbought Color: Intense maroon for crisis-level bubbles.
โ€“ Extreme Oversold Color: Bright lime for deep-value bargains.

๐Ÿ”ง Helper Functions

โ€“ RSI/ROC/BB% Computations: Standard oscillators for momentum, change rate, and band positioning.
โ€“ Crosby Ratio: Approximates trend slope via Heikin-Ashi averages and ATR-normalized angles.
โ€“ Sharpe/Sortino/Omega Ratios: Annualized efficiency metrics, with Sortino emphasizing downside and Omega using return thresholds.
โ€“ Z-Score Normalization: Transforms series into standard deviations from means for cross-asset comparability.
โ€“ Correlation & Beta Adjustments: Quantifies metric-price links to refine weighted influences.
โ€“ Weighted Z-Score Blend: Integrates indicators with price via betas and correlations for holistic scoring.
โ€“ Symbol Cleanup: Strips exchange prefixes and pairs for concise table labels.

๐Ÿ“ฆ Multi-Asset Processing

โ€“ Security Fetching: Pulls comprehensive dataโ€”prices, Z-scores, means, deviations, expectationsโ€”for each asset in parallel.
โ€“ Array Management: Dynamically stores metrics in expandable arrays, scaling to the selected portfolio size.
โ€“ Ranking Engine: Bubble-sorts by Z-scores to prioritize undervalued (low) and overvalued (high) assets for quick scans.

๐Ÿ“‹ Main Table

โ€“ Central Dashboard: Rows for prices, ยฑ1/2/3 sigma bands, fair values, expected prices, and dual Z-scores; columns per asset with color-coded cells by deviation severity.
โ€“ Dynamic Headers: Asset symbols highlighted if ranked in top oversold/overbought quintiles for immediate focus.

๐Ÿ† Ranking Tables

โ€“ Oversold Rankings: Top 5 (or fewer) by lowest Z-scores, detailing symbols, individual Z's, averages, and the weakest metric.
โ€“ Overbought Rankings: Top 5 (or fewer) by highest Z-scores, mirroring structure for symmetry in bubble detection.

๐Ÿ“Š Current Asset Visualization

โ€“ Sigma Deviation Plots: Lines mapping ยฑ1/2/3 standard deviations from the mean for contextual over/undervaluation.
โ€“ Fair Value & Expected Price Traces: Central mean and Z-adjusted projection to visualize reversion targets.
โ€“ Live Price Overlay: Blue line tracking current close against bands for real-time deviation monitoring.
โ€“ Zone Backgrounds: Faint tints scaling from neutral to extreme colors based on the asset's Z-score status.

๐Ÿ”” Alerts

โ€“ Overbought Entry: Activates on crossing into moderate high-deviation territory.
โ€“ Oversold Entry: Triggers upon entering low-deviation zones.
โ€“ Extreme Overbought/Oversold: High-priority warnings at critical thresholds for portfolio-wide risks.

โœ… Key Takeaways

โ€“ Cross-asset Z-scores reveal portfolio imbalances via statistical lenses, blending raw price with advanced ratios.
โ€“ Adaptive correlations ensure metric relevance, while rankings accelerate opportunity hunting.
โ€“ Comprehensive tables and band visuals turn complex data into actionable insights for diversified trading.
โ€“ Customizable metrics and thresholds adapt to crypto volatility or traditional equities alike.

Declinazione di responsabilitร 

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.