Hi Everyone, I am back with some random things again. So today i will share codes of popular trading indicators which you can use while creating your own trader with machine learning in python. so at first you need to import the below libraries import numpy as np import pandas as pd from pandas_datareader import data as web import matplotlib.pyplot as plt then after the above step is done then you need to assign few of the local variables you can also take them as input as per your requirement stock_name="SBI" #for nifty: ^NSEI n = 20 #window size start_date = "2021-04-01" end_date = "2021-06-03" then after it is done you need to create a function which can be used to extract the data from the yahoo finance and for that the code is provided below def getData(): stock_data = web.DataReader(stock_name, start=start_date, end=end_date, data_source='yahoo') stock_df=pd.DataFrame(stock_data) return stock_df The above code will return da...
"An investment in knowledge pays the best interest." Knowledge never goes in vain it will come to your help in one or the other way so always remember to learn new things and enjoy the learning process as it will help you to increase your imagination, character and many other attributes of your body and soul. So Enjoy and Have Fun... Take care...