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)

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.