import yfinance as yf
stock_symbol='nio'
df = yf.download( stock_symbol)
df['Open_Close_mean']=(df['Open']+df['Close'])/2.
df
import plotly.graph_objects as go
from plotly.subplots import make_subplots
import pandas as pd
import numpy as np
import yfinance as yf
from datetime import timedelta
#https://plainenglish.io/blog/a-simple-guide-to-plotly-for-plotting-financial-chart-54986c996682
fig = make_subplots(rows=1, cols=1, shared_xaxes=True,
vertical_spacing=0.5,
#row_heights=[],
subplot_titles=[
'Candlestick', #'Volume',