Moving Average Convergence/Divergence on Python
I've created a Moving Average Convergence/Divergence (MACD) Indicator using Python programing language on Google Colab. I also have an extra feature in my code which is "BUY & SELL" signal, whenever the MACD cross each other and gives a Buy or Sell signal it is reflected on the screen with "Red & Green" arrows, this is done by using the concept of "flag" which you will now see in my code. #import the Libraries import pandas as pd import numpy as np import pandas_datareader as dr import matplotlib.pyplot as plt plt.style.use( 'fivethirtyeight' ) from google.colab import files uploaded = files.upload() df = pd.read_csv( 'CIPLA.NS.csv' ) df = df.set_index(pd.DatetimeIndex(df[ 'Date' ].values)) df #visually show the stock price plt.figure(figsize=( 12.2 , 4.5 )) plt.plot(df[ 'Close' ], label= 'Close' ) plt.title( 'Clos...