OPEN-SOURCE SCRIPT

Sharpe Ratio BTC vs Gold

109
It calculates the Sharpe Ratio for Bitcoin (BTCUSDT) and Gold (XAUUSD).
Uses log returns to compute risk-adjusted returns.
Takes a 30-day lookback period by default.
Risk-free rate is set at 3% annualized, converted to daily.
Plots both Sharpe Ratios on the same chart: Bitcoin (Blue line), Gold (Red line)

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.