Skip to content

Instantly share code, notes, and snippets.

@MauricioLetelier
Created February 1, 2021 19:49
Show Gist options
  • Save MauricioLetelier/39bd41e4389e74ce0d1c337ff5679b78 to your computer and use it in GitHub Desktop.
Save MauricioLetelier/39bd41e4389e74ce0d1c337ff5679b78 to your computer and use it in GitHub Desktop.
import yfinance as yf
import pandas as pd
import ta
data = yf.download("AMC", start="2020-01-01", end="2021-01-29", interval='1d',
group_by="ticker")
df = pd.DataFrame(data)
df1 = ta.add_all_ta_features(
df, open="Open", high="High", low="Low", close="Close", volume="Volume")
df1 = df1[['Open','High','Close','Low','Volume']].copy()
mpl.plot(df1,type='candle',volume=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment