Python and Statistics for Financial Analysis , Week 1

 




Week 1 

1. Pandas

2.import pandas as pd

3.read_csv()

4. columns

5. data.loc[‘2015-01-01’:’2016-12-31’, ‘Close’]

6.plot()

7. Columns ‘Open’ and ‘Low’

8.ms[‘Close’].shift(-1) – ms[‘Close’]

9.rolling(60).mean()

10. i)We short one share of stocks if fast signal is larger than slow signal

ii)If fast signal is larger than slow signal, this indicates an upward trend at the current moment

iii)Use longer moving average as slow signal and shorter moving average as fast signal