Created
February 1, 2021 19:45
-
-
Save MauricioLetelier/2ee2063732e55c572a3bca268ff1afa2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 yfinance as yf | |
import pandas as pd | |
import ta | |
data = yf.download("HTZGQ", start="2018-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