SET Index Valuation Insights: Exploring the PE Band Chart

Apr 9, 2023

3 min read


programmer-with-chrome

What Idea about pe band chart ?


The PE Band Chart is a dynamic visual representation of stock market valuations by plotting historical Price-to-Earnings (PE) ratios against the index level. This chart enables investors to identify potential overvalued or undervalued conditions in the market, assisting them in making more informed investment decisions.


Components:


Index Level: The horizontal axis of the chart represents the index level, which can be any major stock market index such as the S&P 500, NASDAQ,SET Index, or Dow Jones Industrial Average. The index level serves as a proxy for the overall market performance.


PE Ratio: The vertical axis of the chart represents the Price-to-Earnings ratio, a commonly used valuation metric. It is calculated by dividing the market price of a stock by its earnings per share (EPS). The PE ratio helps investors gauge whether a stock or market is overvalued or undervalued.


Time: The chart’s data points are plotted over a specified time period, allowing investors to analyze historical trends and detect patterns in market valuations.


PE Bands: The chart displays a range of PE bands (e.g., 10-20, 20-30, etc.), which represent different valuation levels. The width of the bands can be customized to fit the user’s preference.


Color Coding: The data points within each PE band can be color-coded to represent the frequency or percentage of occurrences within each band. This helps investors easily visualize the distribution of historical valuations.


Import pandas and matplotlib


import pandas as pd
import matplotlib.pyplot as plt

Import Dataframe from excel


data= pd.read_excel('set.xlsx',index_col=0)
data

we will see dataframe like this


PriorOpenHighLowClosePE
Date
2016-01-041288.021286.291286.361260.961263.4122.12
2016-01-051263.411267.201270.071251.871253.3421.99
2016-01-061253.341249.821260.881247.891260.0422.10
2016-01-071260.041237.811244.041224.831224.8321.46
2016-01-081224.831232.311246.701228.181244.1821.81
2021-10-281627.611626.271632.301622.561624.3120.81
2021-10-291624.311627.011629.251619.141623.4321.02
2021-11-011623.431627.541632.731611.391613.7820.89
2021-11-021613.781616.861621.691608.641617.8920.96
2021-11-031617.891620.901623.081607.721611.9220.87

1422 rows × 6 columns


data['EPS']=data.Close/data.PE
data

PriorOpenHighLowClosePEEPS
Date
2016-01-041288.021286.291286.361260.961263.4122.1257.116184
2016-01-051263.411267.201270.071251.871253.3421.9956.995907
2016-01-061253.341249.821260.881247.891260.0422.1057.015385
2016-01-071260.041237.811244.041224.831224.8321.4657.075023
2016-01-081224.831232.311246.701228.181244.1821.8157.046309
2021-10-281627.611626.271632.301622.561624.3120.8178.054301
2021-10-291624.311627.011629.251619.141623.4321.0277.232636
2021-11-011623.431627.541632.731611.391613.7820.8977.251316
2021-11-021613.781616.861621.691608.641617.8920.9677.189408
2021-11-031617.891620.901623.081607.721611.9220.8777.236224

1422 rows × 7 columns


add pe band


data['PE15x']=data.EPS*15
data['PE17x']=data.EPS*17
data['PE19x']=data.EPS*19
data['PE21x']=data.EPS*21
data['PE23x']=data.EPS*23
df=data[['Close','PE15x','PE17x','PE19x','PE21x','PE23x']]
df

ClosePE15xPE17xPE19xPE21xPE23x
Date
2016-01-041263.41856.742767970.9751361085.2075051199.4398731313.672242
2016-01-051253.34854.938608968.9304231082.9222371196.9140521310.905866
2016-01-061260.04855.230769969.2615381083.2923081197.3230771311.353846
2021-11-011613.781158.7697461313.2723791467.7750121622.2776451776.780278
2021-11-021617.891157.8411261312.2199431466.5987601620.9775761775.356393
2021-11-031611.921158.5433641313.0158121467.4882611621.9607091776.433158

1422 rows × 7 columns


plot graph with PE Band


plt.figure(figsize=(21,8))
plt.plot(df.index,df['Close'],color='black')
plt.plot(df.index,df['PE15x'])
plt.plot(df.index,df['PE17x'])
plt.plot(df.index,df['PE19x'])
plt.plot(df.index,df['PE21x'])
plt.plot(df.index,df['PE23x'])
plt.legend(('Price','PE15x','PE17x','PE19x','PE21x','PE23x'))
plt.title('Historical pE Band SET Index')
plt.xlabel('Date')
plt.ylabel('Price')
plt.show()

PE-Band-Chart


How to Use the PE Band Chart:


Analyze historical trends: By observing the movement of the index level against the PE ratio, investors can identify historical trends, such as periods of overvaluation or undervaluation.


Assess market conditions: The chart can be used to gauge the current market’s valuation relative to historical levels. This helps investors determine if the market is overvalued, fairly valued, or undervalued.


Make informed investment decisions: By using the PE Band Chart to assess market conditions, investors can make more informed decisions on when to enter or exit the market, or whether to adjust their portfolio allocations.


Monitor and adjust: Investors can use the PE Band Chart as a monitoring tool, updating the data and analysis periodically to stay informed on market trends and valuation levels.


Conclusion


The PE Band Chart is a powerful tool that combines index levels with PE ratios to provide a visual representation of market valuations over time. This helps investors make more informed decisions by identifying potential overvalued or undervalued market conditions. By incorporating the PE Band Chart into their investment strategy, investors can better navigate market fluctuations and optimize their portfolio performance.