Question: In python Requirements: visualize the the historical data. calculate the following: Simple Moving average and visualize it. Exponential moving average with smoothing factor that follows

In python

Requirements:

  1. visualize the the historical data.

  1. calculate the following:

  1. Simple Moving average and visualize it.

  1. Exponential moving average with smoothing factor that follows the typical formula and visualize it.

  1. Average Dividends.

  1. The frequency of dividends distributions.

Design:

  1. Simple Moving average and visualize it.

  1. Date Method to import the start date and the end date from the csv file and calculate the number of days.

  1. ChooseSAVG Method to choose which simple moving average to calculate (open , high , low ,close adj close ).

  1. SMA Method to calculate the simple moving average.

  1. PlotSMA Method to visualize the curve

  1. Exponential moving average with smoothing factor that follows the typical formula and visualize it.

  1. Smoothing Method to calculate the multiplier for smoothing ( call the date method) .

  1. EMA method to calculate Exponential moving average.

  1. PlotEMA Method to visualize the curve

  1. Average Dividends.

  1. Date Method to import the start date and the end date from the csv file and calculate the number of days.

  1. Div method to calculate the Average Dividends.

  1. The frequency of dividends distribution

  1. Date Method to import the year and dividends distribution from the csv file.

  1. FrequencuCalc method to write which year and calculate the frequency in the chosen year .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!