Loading...

[PLUS] Major Cryptocurrency Risk Adjusted Return Comparisons with Sharpe Ratios


Sharpe Ratio Importance
To clarify upfront about what exactly is the Sharpe Ratio... Sharpe is a commonly used metric that allows comparison of returns across risky assets. The simple idea is that if two assets, Asset A and Asset B, both offer 10% returns, it is preferable to invest in the asset that has a lower standard deviation of asset prices (less volatility). Higher Sharpe ratios are therefore preferred to a lower sharpe ratio. We will extend from our other example for how to extract the risk free rate from US Treasury par yield curve(s), as the RFR rates is a needed input to our Sharpe calculations. As an additional note, there are numerous other ratios or metrics that allow you to compare risky portfolios against one another that are not covered here... like the information ratio, Treynor Ratio and others. One recognized drawback of using the Sharpe Ratio is that it loses comparative value across portfolios that do not have normal return distributions (big fat tails). We avoid some of that criticism here because we are only using the ratio to compare within the same asset class (crypto to crypto).


S = the Sharpe Ratio
R = Asset Return
Rf = Risk Free Rate
σ = Standard Deviation



Defining Our Inputs
From the formula, there are roughly 3 inputs that we need to define to calculate the Sharpe Ratio:
1) Asset Return
2) Risk Free Rate
3) Asset Volatility

We follow the somewhat rigorous process that is outlined by Investopedia, which is slightly more complex than simply taking the return over the entire period and dividing it by the standard deviation of the entire period. The method prescribes calculating returns over intervals, and we will implement monthly intervals in our example. Similarly, for the Risk Free Rate (RFR), we pull all Par Yield Rates for that month and then take the average of the period intervals to arrive at a more accurate representation of the risk free rate as it changes through time. This requires us pulling live data from the US Treasury.gov website for Daily Treasury Par Yield Curve values. Please note that the result of this process/script is one metric; and not a rolling timeseries of Sharpe ratio calculations rolling through time.

Notes on Implementation
The implementation in Python requires more steps than usual to reach our solution as it meets the proper method of calculation outlined by Investopedia. The first step of the process is loading all asset data for BTCUSD, ETHUSD, LTCUSD, BNBUSD, and XRPUSD from the FTX data page using the daily time frame for all dates after January 2021. These returns are then transformed to represent the monthly return for each monthly interval(s). The next function will load all of the historical Par Yield Curve Rates for the 1 month tenor point from the US Treasury's website for each month that we have calculated cryptocurrency returns going back to 2021 (this process may take a few minutes to gather all of the data). For each month, the par yields are averaged together to reach one average value for the time period. We can then consider (Jan 2021 Return - Jan 2021 RFR ) as a "differential". All differentials between Return & RFR for each month are then averaged together to reach the value for the numerator of the equation. The last step is to divide our differential numerator by the prescribed standard deviation. As always, every line of code is commented and documented to make it clear what is being done!

This is a premium post. Create Plus+ Account to view the live, working codebase for this article.




Notice: Information contained herein is not and should not be construed as an offer, solicitation, or recommendation to buy or sell securities. The information has been obtained from sources we believe to be reliable; however no guarantee is made or implied with respect to its accuracy, timeliness, or completeness. Author does not own the any crypto currency discussed. The information and content are subject to change without notice. CryptoDataDownload and its affiliates do not provide investment, tax, legal or accounting advice.

This material has been prepared for informational purposes only and is the opinion of the author, and is not intended to provide, and should not be relied on for, investment, tax, legal, accounting advice. You should consult your own investment, tax, legal and accounting advisors before engaging in any transaction. All content published by CryptoDataDownload is not an endorsement whatsoever. CryptoDataDownload was not compensated to submit this article. Please also visit our Privacy policy; disclaimer; and terms and conditions page for further information.

THE PERFORMANCE OF TRADING SYSTEMS IS BASED ON THE USE OF COMPUTERIZED SYSTEM LOGIC. IT IS HYPOTHETICAL. PLEASE NOTE THE FOLLOWING DISCLAIMER. CFTC RULE 4.41: HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN. U.S. GOVERNMENT REQUIRED DISCLAIMER: COMMODITY FUTURES TRADING COMMISSION. FUTURES AND OPTIONS TRADING HAS LARGE POTENTIAL REWARDS, BUT ALSO LARGE POTENTIAL RISK. YOU MUST BE AWARE OF THE RISKS AND BE WILLING TO ACCEPT THEM IN ORDER TO INVEST IN THE FUTURES AND OPTIONS MARKETS. DON’T TRADE WITH MONEY YOU CAN’T AFFORD TO LOSE. THIS IS NEITHER A SOLICITATION NOR AN OFFER TO BUY/SELL FUTURES OR OPTIONS. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFITS OR LOSSES SIMILAR TO THOSE DISCUSSED ON THIS WEBSITE. THE PAST PERFORMANCE OF ANY TRADING SYSTEM OR METHODOLOGY IS NOT NECESSARILY INDICATIVE OF FUTURE RESULTS.

Latest Posts
Follow Us
Notify me of new content