Posts

SMA Trading Strategy Using Python

Image
This strategy works on the basic logic that whenever the 30 Day Simple Moving Average is greater than the closing price of the stock it gives a Buy signal and whenever the 30 Day SMA is smaller than the closing price then it gives a sell signal. This way we get a clear understanding of when to place a buy order and when to exit our position. I've built this strategy using python and here is the program and logic for the strategy. #import libraries import  pandas  as  pd import  numpy  as  np import  matplotlib.pyplot  as  plt plt.style.use ( 'fivethirtyeight' ) #Load data from  google.colab  import  files files.upload () #Store the data df = pd.read_csv ( 'HDFC.NS.csv' ) #set date as index df = df.set_index ( pd.DatetimeIndex ( df [ 'Date' ] .values )) #show data df #visualize the close price plt.figure ( figsize= ( 16 , 8 )) plt.title ( 'Close Pri...

5 Factors to look out for Life Insurance Stocks

Image
INTRODUCTION ICICI Prudential Life Insurance Co. was the first to get listed in 2016, followed by SBI Life Insurance Co. Ltd and HDFC Standard Life Insurance Co. Ltd in 2017. With low insurance penetration and density rates, there is an untapped market where the private sector has immense opportunities to consolidate its positions, considering insurance is a long-term business. This report intends to gather various ratios from the Financials of the above three companies to evaluate how well they are fair by ranking them under metrics discussed below and consequently assessing whether the stock should be bought, held, or sold. FACTORS Market Cap The following is a graph depicting the market cap of the companies at the time of listing and its market cap as of November 26, 2011. HDFC Life has the highest market cap, followed by SBI Life and ICICI Pruli. Hence the rankings under this metric stand as follows. EV Multiple EV Multiple is calculated as the ratio of Enterprise Value to EBITDA....

VA Tech Wabag Financial Model

  Va Tech Wabag is engaged in the business of the water treatment field. The company's principal activities include design, supply, installation, construction, and operational management of drinking water, wastewater treatment, industrial water treatment, and desalination plants. Here I have worked on the financial model of VA Tech Wabag with projected statements. You can download the Financial Model from this link - VA Tech Wabag.xlsx

Working On Finance Dataset || KPMG || Python

Image
Here I have a dataset on which we can practice our python and finance skills, I got this dataset from a website that provides virtual internship One of them is KPMG Virtual Internship which is through  InsideSherpa . The KPMG Internship gives you the dataset and they ask you to : Data Quality Assessment Data insight Data Insight and Presentation But here I'm going to work on data quality Assessment through python. So let's Start! Now in this Virtual Internship, they will provide a Data Set, you can download the data set directly from the InsideSherpa KPMG Virtual Internship Portal . Here you'll get 5 sheets in this data set,  first one is only the instruction sheet you can read that for the do's and don't, the rest 4 sheets contain data that we have to assist. The first thing you have to do is open this xlsx file in your python environment, I'm using Google Colab.  I've open the dataset in my environment like this. This is how I've successfully uploaded ...