Showing posts with label Finance. Show all posts
Showing posts with label Finance. Show all posts

Sunday, May 10, 2026

Needle in the Haystack - The best-performing mutual fund


Mutual funds were supposed to solve a problem commoners face while investing - Not having enough knowledge or insights to identify the best stock/debt instrument to invest in, for best returns of course. However, it ended up creating the equivalent problem of its own and the ever elusive question - Which is the best mutual fund to invest in among the ten thousand odd mutual funds?

The answer changes depending on what data you look at.

  • Sort by 10-year return → one set of funds wins.
  • Sort by 5-year return → rankings change completely.
  • Look at recent momentum → another list appears.
  • Look at risk-adjusted returns → yet another answer emerges.

And once you start searching for answers from the "experts", discussions quickly move toward:

  • Asset allocation
  • Goal-based investing
  • SIP discipline
  • Diversification

All important topics — but the original question still remains: Among thousands of mutual funds, which ones are actually worth considering?


The Problem - Existing Solutions and Their Limitations

For reasons beyond my understanding, the omnipresent free hand of market always provides a solution but the one that is not perfect.

Platforms like - Value Research Online, Morningstar India, ET Money are very useful for researching funds, comparing a few schemes, checking returns and ratios, etc. But I found one important limitation  - They help compare selected funds, but do not fully help discover whether those are even the best funds to compare.

There are also excellent data-backed approaches like Freefincal but many advanced tools are paid, static, not automatically refreshable, difficult to customize.

And hence the quest to build an Open, Transparent, Free Forever, Refreshable, and Customizable mutual fund analysis system in Google Sheets. 


The Goal

The goal was simple - Build an open system that can fetch data for thousands of mutual funds, rank them using formulas of my choice, and allow complete customization of the analysis.

  • Automatic refresh
  • Transparent formulas
  • Editable weights
  • Risk-adjusted metrics
  • Category-aware ranking
  • Portfolio-aware tracking
  • Most importantly - No black box.


The Solution

I built a Google Apps Script-based system that automatically creates and manages a complete mutual fund analysis setup inside Google Sheets. The system:

  • Fetches NAV data automatically
  • Processes thousands of funds
  • Calculates return and risk metrics
  • Ranks funds using configurable formulas
  • Supports automatic refresh
  • Highlights existing holdings

The scoring currently includes:

  • Weighted annual returns
  • CAGR-based scoring
  • Sharpe ratio
  • Sortino ratio
  • consistency score
  • Downside protection
  • Momentum score
  • Category percentile ranking
  • A composite Final Score to compare funds across.

Key Limitation - One limitation of this system is that the analysis is primarily based on annual returns instead of rolling returns. Rolling returns would be more robust, but computing them across thousands of funds requires significantly more processing and complexity than a spreadsheet-oriented solution can comfortably handle.

This project intentionally prioritizes simplicity and always-free tool over institutional-grade analytics.


How to Setup

1. Using the Spreadsheet Directly

  • Go to the Mutual Fund Analysis.
  • File > Make a copy > Store in your Google Drive
  • You will find a Quick Start Guide on the first sheet.
  • Skip First-Time-Setup if you don't want to reset everything and keep the all the existing data.
  • Start Refresh to fetch latest data.
  • Explore as you wish.

2. Using the Code

  • Download this Apps Script code.
  • Create a blank Google Sheet in your Google Drive.
  • Open Extensions → Apps Script.
  • Paste the code & Save.
  • Refresh the Google Sheet.
  • You will see a new menu - MF Updater.
  • Click MF Updater - First-Time Setup.
  • You will see "Authorization required", click OK.
  • You will see "Google hasn’t verified this app", click Advanced > Click "Go to Untitled project (unsafe)" > Select All > Continue
  • This will grant the permissions required to run the scripts.

3. Getting the List of Funds


Request for Suggestions

This project is meant to be open and customizable. If you have suggestions around approach, formulas, scoring system, please do share your thoughts or updated code. Your contribution will make this system more robust.

Tuesday, November 17, 2020

Value of Money

We value money just because it is perceived to have value by everybody else. 

Money in itself has no intrinsic value, it is just a piece of paper or a number in your digital bank balance. The very allure of having more and more of this commodity without the need of utilizing it for anything is rather strange. People want to have billions and billions of dollars in their bank but have no need or intention to spend them in any way. It is like the tulip mania of the 17th century. People wanted to get more tulips because the value of tulips was perceived as going up, not that they had any need of tulips or they were trading tulips for their needs/luxuries.



What if money comes with an expiry date?

If money had an expiry date, say the death of the person who earned it or 100 years, people will be forced to spend it instead of stock it. The fundamental property of money/wealth that it can be stored will be destroyed. It can have earth-shattering ramifications on the way we humans exists.

1. No stocking of money: Money will stop being stocked in the bank accounts. There would be a pressing need to spend it within its lifespan.
2. Fulfilling lives: People will be enjoying more fulfilling lives as the very need to store money would be gone and people would be spending generously.
3. More Charity: People would tend to donate any unspent and going to expire money and/or would be more included towards charity.
4. Less Tax Evasion / Black Economy: Tax is evaded for the sole purpose of stocking more money. With no more need of that extra money, the population would tend to be more honest and find it less useful to evade tax.
5. Having a rich dad or mom would mean much less now.

What if the same concept of expiry is applied to other forms of wealth (real estate, precious metals, etc.)? Say all the properties owned by you will be returned to the society once you are dead.

Tuesday, October 19, 2010

Financial Ad(VICE)

Share/Bookmark

Received a call from Wellwisher Broking, my stockbroker. A sweet voice emanated from the other side.

Caller: Hello, am I speaking to Ravi Ghosh?
Me: Yes, who is that?
Caller: Sir, I'm calling from Wellwisher Broking.
Me: Okay.
Caller: Sir, we have received a recommendation for Boombust India Pvt. Ltd.
Me: Thanks, but I don't want to go for anything now.
Caller: Sir, 100% it will be up sir.
Me: Aaaa (after a look at the watch and my tea cup, some time left for wasteful use). Is it a buy recommendation or a sell?
Caller: Buy sir.
Me: Humm...
Caller: Sir, it is trading at Rs 364 now and the prediction is within a month, it will go above Rs 450.
Me: Thanks (tea over by now, time to move), but I'm not interested in buying anything now.
Caller: Sir, would you like to buy after the market crash?
Me: Yep sure, but first let it crash (with a grin).
Caller: Sir, the market is going to crash soon.
Me: Are you sure?
Caller: Yes sir. We have received report from our head office. Crash is imminent.
Me: Then why are you giving buy recommendation for Boombust now?
Caller: Aaa... Umm... (some confusion in voice). Sir, we have got "strong buy recommendation" for that.
Me: But if the market falls, it will also go down, right?
Caller: No sir. It will be above to Rs 450 within one month sir. Do you want to buy sir?
Me: Thanks a lot for the advice. I'm don't want to buy it right now.
Caller: Sir, you have Rs X idle in your account. Do you want buy some other scrip?

I was speechless, wondering what a dumb decision it would be not to buy Boombust Pvt. Ltd.

Related Post: Is the Uptrend Over?