News for hackers. Stuff that matters.
Re:Show HN: Sharpe Ratio Calculation Tool by ProjectArcturis on Sunday June 29, 2025 @04:25PM (#44416129)
Who is the intended user for this? Pretty much anyone can calculate a mean and standard deviation without a bespoke website.
Re:Show HN: Sharpe Ratio Calculation Tool by motoxpro on Sunday June 29, 2025 @04:32PM (#44416200)
Yeah, what is a "professional grade" sharpe ratio compared to a shape ratio
Re:Show HN: Sharpe Ratio Calculation Tool by tripplyons on Sunday June 29, 2025 @05:14PM (#44416473)
I think professional-grade is referring to their calculator not the statistic. I don't see what would make this site better than throwing your CSV into a spreadsheet or a simple script that would make it considered professional-grade.
Re:Show HN: Sharpe Ratio Calculation Tool by navquant on Monday June 30, 2025 @03:55AM (#44420617)
One of the benefits is that the risk free rate is kept up to date on a daily basis. The calculation matches for each day the actual risk free rate, rather than just using the latest available value.
Re:Show HN: Sharpe Ratio Calculation Tool by blitzar on Monday June 30, 2025 @04:16AM (#44420748)
> professional grade

vibe coded.

Re:Show HN: Sharpe Ratio Calculation Tool by k2enemy on Sunday June 29, 2025 @08:42PM (#44418021)
I was wondering too. If someone is sophisticated enough to have their return data in a CSV, calculating a Sharpe ratio is trivial. The hard part is already done.
Re:Show HN: Sharpe Ratio Calculation Tool by molsson on Sunday June 29, 2025 @04:30PM (#44416175)
I guess this is the 1yr sharpe plotted over time, ie the sharpe at date X considers the stddev within the previous 365 days etc?

Many brokers only show 1yr sharpe or perhaps 3yr sharpe (for example swedish nordnet has 1/3/5 year sharpe: https://www.nordnet.se/fonder/lista/jupiter-gold-silver-usd-... )... but very often stocks/funds go steadily upwards for several years in "good times" and then we have major drawdowns during turmoil like 2008 or 2020 etc. In these cases, a 1yr or 3yr sharpe can be very misleading.

Have you considered also plotting 3yr sharpe and 5yr sharpe over time? Perhaps the length of the sharpe ratio would be configurable in the calculator?

Re:Show HN: Sharpe Ratio Calculation Tool by navquant on Monday June 30, 2025 @03:52AM (#44420589)
Right now it uses the total stddev of the portfolio, over the full history provided. It can be changed fairly easily to compute it over a moving window of 1/3/5 years.
Re:Show HN: Sharpe Ratio Calculation Tool by shabbychef on Sunday June 29, 2025 @06:12PM (#44416993)
Probably better to give some interpretation of the achieved Sharpe, to help end users interpret the results, rather than curating a whole zoo of exotics that nobody understands.
Re:Show HN: Sharpe Ratio Calculation Tool by navquant on Monday June 30, 2025 @03:59AM (#44420657)
Valid point. I could show a comparison to known funds or stocks to give an idea of the real performance
Re:Show HN: Sharpe Ratio Calculation Tool by thomasfl on Sunday June 29, 2025 @06:57PM (#44417381)
How about adding a demo? A demo may even be for a made up non existing fund, named Acme Fund.
Re:Show HN: Sharpe Ratio Calculation Tool by navquant on Monday June 30, 2025 @03:58AM (#44420640)
Great idea, will add
Re:Show HN: Sharpe Ratio Calculation Tool by k2enemy on Sunday June 29, 2025 @08:40PM (#44418009)
> Our tool automatically uses the up to date Secured Overnight Financing Rate (SOFR).

Are risk free rates matched to return dates? This makes it sound like the tool uses a single risk free rate for all excess return calculations.

Re:Show HN: Sharpe Ratio Calculation Tool by navquant on Monday June 30, 2025 @03:57AM (#44420637)
It does not use a single risk free rate for all excess return calculations, but rather matches each return with the risk free rate of the day.
Re:Show HN: Sharpe Ratio Calculation Tool by rongenre on Sunday June 29, 2025 @10:47PM (#44418754)
Sharpe ratio is just the start: it gives you a metric on your portfolio. If it gave an interpretation of what that means, or give guidance on how certain actions would adjust the Sharpe, that might add a lot more value.
Re:Show HN: Sharpe Ratio Calculation Tool by navquant on Monday June 30, 2025 @03:49AM (#44420573)
Good point, will add something to give a bit of guidance.