Created
February 2, 2021 06:46
-
-
Save quantra-go-algo/a0872b59deba5054b719aea001d0c4c2 to your computer and use it in GitHub Desktop.
Sample script to test TA-lib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import talib as ta | |
import yfinance as yf | |
aapl = yf.download('AAPL', '2019-1-1','2019-12-27') | |
aapl['Simple MA'] = ta.SMA(aapl['Close'],14) | |
aapl['EMA'] = ta.EMA(aapl['Close'], timeperiod = 14) | |
print(aapl.tail()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment