Post

Christopher Cain
Christopher Cain@PythonTrader·
2/ Suppose we have a DataFrame (df) of open, high, low, close data We would have to: 1. Use pandas broadcasting to create a new column containing our rolling MA values. 2. Use pandas .rolling() function and chain .mean() to calculate a simple MA 3. Pick columns and use .plot()
English
1
0
0
0
Christopher Cain
Christopher Cain@PythonTrader·
Get the data into our notebook environment. We are using #quantopian here and their built in function "get_pricing"
Christopher Cain tweet media
English
1
0
0
0
Paylaş