Nifty Valuation Tool: Find out if the stock market is expensive or cheap in multiple ways

Last Updated on

Use this nifty valuation tool to find out if the stock market is expensive or cheap using PE, PB, Div Yield, Bollinger Bands and much more.  The idea to try and understand the state of the market using multiple methods. An example of some of the results obtained with this sheet is here: Are we now in a bear market?

Four different types of indicators can be used: Trend, volatility,  momentum, and valuation.  The sheet can be used for periodic profit booking or market timing or tactical asset allocation. It can also be used for buying on dips, but I would recommend reading this first: Buying on market dips: How effective is it?

Disclaimer: The sheet provided below is informational/education in nature. It will tell you the results of various indicators, but will not tell you when to buy or sell or do anything. That judgment is entirely up to the user. The sheet has been extensively tested for bugs and there are no known bugs at this time of release. However, it is not possible to guarantee that the sheet is free of errors. Users can bring issues to my notice for evaluation. I am not responsible for gains or losses that the user may suffer by using this tool

Many investors sit and fret if the market is overvalued and if this is the right time to invest or not. This sheet can provide quantitative insight into the state of the market. Instead of looking at only the PE or a moving average, it would be better if different types of indicators are used to check stock market valuation. Sometimes multiple indicators may agree with each other and sometimes no. During such times the user will have to use their discretion and judgment. We shall look at examples of each indicator type available and how to interpret them.

Nifty Valuation Tool: List of indicators available

Indicator Type: Trend

  1. Simple moving average  (180 and 365 days, the duration can be set by user)
  2. Exponential moving average (180 and 365 days, the duration can be set by user)
  3. Moving Average Convergence Divergence (MACD)

Indicator Type: Volatility (plus trend)

  1. Bollinger bands with 200 days DMA

Indicator type: momentum

  1. Relative Strength Indicator

Indicator type: Valuation

  1. Price to earnings ratio (PE) with 10-year moving average and standard deviation bands
  2. Price to book value  (PB) with 10-year moving average and standard deviation bands
  3. Dividend Yield with 10-year moving average and standard deviation bands
  4. EPS Growth rate
  5. ROE or book yield

Simple moving average

Stock market price movements on a daily basis are too noisy. So to spot trends, we need to smoothen them. One can take the average of the last 200 day prices for this. To spot bullish and bearish trends, a double moving average is used: One for about 180 days (6 months) and another for about 365 days (12 months).

Sometimes the period would be 180 days or 179 days or 181 days depending on the index used. Here is an example:

moving average crossover method chart one

A bearish trend is possible when the 150-day average falls below the 364-day average- downward arrows. A bullish trend is possible when the 150-day average moves above the 364-day average – upward red arrows.

The problem is, sometimes both these averages will cross each other in quick succession  (see below) a problem known as whipsaw. To prevent this, we use the exponential moving average

Exponential Moving Average

The standard alternative to the simple moving average  (SMA, also known as daily moving average or DMA) is the exponential moving average. (EMA) This offers higher weight to recent price movement and responds faster than the simple moving average as seen below. The weight to older data decreases exponentially and hence responds faster.

Nifty Valuation Tool screenshots EMA full

Nifty Valuation Tool screenshots exponential moving averagesIf we go by the double EMAs, the market has been bullish for a while now.

Moving Average Convergence Divergence (MACD)

A potentially more sensitive method is to compute the difference between the two EMAs above and then take the moving average of the difference. The MACD seen below is the difference between the 188-day EMA and 365-day EMA. The average of this difference is known as the MACD signal or simply the signal. I have used a 136-day average.

Nifty Valuation Tool screenshots MACDDown-trend: When the MACD goes below its signal.

Up-trend: When the MACD goes above its signal.

Bollinger Bands

This technique helps us make better decisions with the 200-day moving average and also gives us insights on market volatility. Bollinger bands are essentially rolling standard deviation bands for the 200 DMA. The upper band is usually set two standard deviations above the 200 DMA and the lower band set at two below.

Nifty Valuation Tool screenshots Bollinger BandsVolatility indication When the upper and lower bands converge with the 200dma moving up, it could mean bullish trend. When the upper and lower bands converge with the 200dm a moving down, then it could indicate a bearish trend.

You can spot both a bullish trend (200 DMA above the upper band) and the bands coming together (decrease in volatility). that does not happen often!!

Buy/sell indication With the bands reasonably spaced apart, if the price hits the upper band, it could mean an overheated market and a sell indication. That is a bearish market outlook. With the bands spaced reasonably apart, if the price hits the lower band, it could mean a buy indication.

Relative strength indicator

The simplest definition of the RSI is that it represents recent average gains divided by average losses. If the avg gains are higher than the index is overbought. If the avg losses are higher, the index is oversold. The problem with the RSI is similar to that of the PE or PB ratios. It is based on arbitrary high or low numbers.  I have plotted the 365-day RSI for the Nifty below. It is more useful as a buy indicator than a sell indicator.

Nifty Valuation Tool screenshots Relative Strength IndicatorA low RSI value is a reasonable buy indicator. Current values are not too high.

Nifty PE Valuation

The PE ratio is the current price divided by the earnings per share of the index. If the PE is “too high” then the market is paying too high a price for the earnings and must “correct” down (I hate that word now!). If the PE is “too low” then the market is paying too low a price and must correct up.

Have a look at the 10-year moving average (avg) of the Nifty 50 PE (the center line below).  The standard deviation (stdev) tells you how much each Nifty PE value deviates from the average.  The two lines above the central average line represent:

  • avg + stdev
  • avg + 2*stdev

Similarly, the two lines below the central average line represent:

  • avg – stdev
  • avg – 2*stdev

Nifty Valuation Tool screenshots PE and 10 year moving averageTypically when the current Nifty PE hits the +2 stdev line, it tends to come down (this is NOT mean reversion!), but the problem is, it need not come down too much!! So Current PE > + 2 stdev does not mean a crash!!

Nifty PB Valuation

Arguments made above can also be used to gauge valuation using the price to book value. The book value or shareholders is a measure of asset assets – liabilities. So it is a bit like the NAV of an ETF and the current market price the price of the ETF.

Nifty Valuation Tool screenshots PB and 10 year moving averageAgain, a high PB could mean a “correction” and low PB, time to buy. A conservative market timer could use PB instead of PE.

Dividend Yield

The dividend yield is a contra-indicator. That is a low value could mean over-valuation and vice-versa. The dividend yield of a single stock is computed as the most recent dividend* / current price. A high dividend yield implies the stock price has moved up faster than its dividend and vice versa. Hence low div yield of the index points to overvaluation and vice versa. Current Nifty Dividend Yield is fairly low indicating overvaluation.

* Sometime multiplied by 4 to annualize it.

Nifty Valuation Tool screenshots DY and 10 year moving average

EPS one-year growth rate

Earnings per share = Price/PE. The one-year growth in the EPS is shown below. in 2002, a sudden drop in interest rates triggered the EPS growth rate and a bull run.  Notice that in recent years, there is virtually an absence of EPS growth. This is why I mentioned Do not start dreaming of a bull run even IF exit polls are right!! A bull run accompanied by an increase in EPS growth rate is a healthy bull run.

Nifty Valuation Tool screenshots EPS Growth Rate

ROE or Book Yield

PB divided by the PE gives  Earnings per share divided by book value per share. This is also known as return on equity or book yield. This is a profitability measure. Unfortunately, this has been moving south. Again, an increase in price accompanied by an increase in ROE is a healthy bull run.

Nifty Valuation Tool screenshots ROE Book YieldNifty Valuation Tool Instructions Page

The user following the instructions in this page can paste any index data (price, PE, PB, Div Yield) and analyze valuation. Automated data download is not possible/feasible.

Nifty Valuation Tool screenshots the instructions pageDisclaimer: The sheet provided below is informational/education in nature. It will tell you the results of various indicators, but will not tell you when to buy or sell or do anything. That judgment is entirely up to the user. The sheet has been extensively tested for bugs and there are no known bugs at this time of release. However, it is not possible to guarantee that the sheet is free of errors. Users can bring issues to my notice for evaluation. I am not responsible for gains or losses that the user may suffer by using this tool

The NIfty Valuation tool is priced at Rs. 1000

Get the Nifty Valuation Tool

Do share if you found this useful

About the Author M Pattabiraman author of freefincal.comM. Pattabiraman(PhD) is the author and owner of  He is an associate professor at the Indian Institute of Technology, Madras since Aug 2006. Pattu” as he is popularly known, has co-authored two print-books, You can be rich too with goal based investing (CNBC TV18) and Gamechanger and seven other free e-books on various topics of money management.  He is a patron and co-founder of “Fee-only India” an organisation to promote unbiased, commission-free investment advice. Pattu publishes unbiased, promotion-free research, analysis and holistic money management advice. Freefincal serves more than one million readers a year (2.5 million page views) with numbers based analysis on topical issues and has more than a 100 free calculators on different aspects of insurance and investment analysis. He conducts free money management sessions for corporates  and associations(see details below). Previous engagements include World Bank, RBI, BHEL, Asian Paints, TamilNadu Investors Association etc. Contact information: freefincal {at} Gmail {dot} com (sponsored posts or paid collaborations will not be entertained)
Want to conduct a sales-free "basics of money management" session in your office?
I conduct free seminars to employees or societies. Only the very basics and getting-started steps are discussed (no scary math):For example: How to define financial goals, how to save tax with a clear goal in mind; How to use a credit card for maximum benefit; When to buy a house; How to start investing; where to invest; how to invest for and after retirement etc. depending on the audience. If you are interested, you can contact me: freefincal [at] Gmail [dot] com. I can do the talk via conferencing software, so there is no cost for your company. If you want me to travel, you need to cover my airfare (I live in Chennai)

Connect with us on social media

Content Policy

Freefincal has original unbiased, conflict-of-interest-free,  topical reports, reviews, commentary and analysis on all aspects of personal finance like mutual funds, stocks, insurance etc. All guest authors and contributors to the site also do not have any conflict of interest. If you find the content useful, please consider supporting us by (1) sharing our articles and (2) disabling ad-blockers for our site if you are using one. No promotional content We do not accept sponsored posts and link exchange requests from content writers and agencies. This is our privacy policy Our website is non-profit in nature. The revenue from the advertisement will only be used for hosting charges, domain registration charges, specific plugins necessary for traffic growth and analytics services for search engine optimisation.

Do check out my books

You Can Be Rich Too with Goal-Based Investing

You can be rich too with goal based investingMy first book is meant to help you ask the right questions, seek the right answers and since it comes with nine online calculators, you can also create custom solutions for your lifestyle! Get it now.  It is also available in Kindle format.
Gamechanger: Forget Startups, Join Corporate & Still Live the Rich Life You WantGamechanger: Forget Start-ups, Join Corporate and Still Live the Rich Life you wantMy second book is meant for young earners to get their basics right from day one! It will also help you travel to exotic places at low cost! Get it or gift it to a young earner

The ultimate guide to travel by Pranav Surya

Travel-Training-Kit-Cover This is a deep dive analysis into vacation planning, finding cheap flights, budget accommodation, what to do when travelling, how travelling slowly is better financially and psychologically with links to the web pages and hand-holding at every step.  Get the pdf for ₹199 (instant download)

Free Apps for your Android Phone

All calculators from our book, “You can be Rich Too” are now available on Google Play!
Install Financial Freedom App! (Google Play Store)
Install Freefincal Retirement Planner App! (Google Play Store)
Find out if you have enough to say "FU" to your employer (Google Play Store)

Blog Comment Policy

Your thoughts are vital to the health of this blog and are the driving force behind the analysis and calculators that you see here. We welcome criticism and differing opinions. I will do my very best to respond to all comments asap. Please do not include hyperlinks or email ids in the comment body. Such comments will be moderated and I reserve the right to delete the entire comment or remove the links before approving them.


  1. Is this tool based on google spreadsheets? I don’t have MS Excel, and besides, I am a Mac user. Many Excel spreadsheets also work on free Office suites like OpenOffice or LibreOffice. I was wondering if this tool or the Freefincal robo advisory tool will work on those suites.


    1. The valuation tool will work on Mac Excek and Googlesheets (possibly on other office software too) as it does not have any macros. The robo template will work on Mac Excel but not elsewhere.

  2. I have already subscribed to the adfree newsletter and also purchased the Freefincal Robo Advisory Software Template.
    How much should I pay for the NIFTY Valuation tool ?

Leave a Reply

Your email address will not be published. Required fields are marked *