Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created February 2, 2021 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantra-go-algo/a0872b59deba5054b719aea001d0c4c2 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/a0872b59deba5054b719aea001d0c4c2 to your computer and use it in GitHub Desktop.
Sample script to test TA-lib
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