Easy way to plot 2 stocks from IQFeed Yahoo Histocial no more

Easy way to plot 2 stocks from IQFeed Yahoo Histocial no more

http://ift.tt/2s94UNx

Easy way to plot 2 stocks from IQFeed Yahoo Histocial no more

Demo of 2 stoch chart

Big news:

Update on 20th May 2017: Yahoo Finance have discontinued their free historical data API. As a workaround, I’ve posted a new version of the spreadsheet that uses Google Finance.

Multiple Stock Quote Downloader for Excel

http://ift.tt/2s9nWU0

Here is the Python simple scripting for 2 charts:


#http://ift.tt/2raVbcm

#http://ift.tt/2s98wPU


import pandas as pd


import numpy as np


import matplotlib.pyplot as plt

#http://ift.tt/2raV9kK
import datetime

df1=pd.read_csv(‘AAPL_5.txt’)
df2=pd.read_csv(‘AMZN_5.txt’)

df1=df1.tail(18000*3)
df2=df2.tail(18000*3)

#print(df1)
x = [datetime.datetime.strptime(d,’%m-%d-%Y’).date() for d in df1.Date]
#http://ift.tt/2s9hsEF
plt.plot(x, df1.Close, label=’AAPL’)
plt.plot(x, df2.Close, label=’AMZN’)
plt.xlabel(‘x’)
plt.ylabel(‘y’)
plt.title(‘AAPL vs AMZN’)
plt.legend(loc=2)
plt.show()

 

 

Algo

via Quantlabs.Net http://ift.tt/1XIdEWE

May 28, 2017 at 06:26AM

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s