I want to display two figures in one graph, so that they overlapping each other...
here is my code:
ohlc_data = pd.DataFrame(mt.copy_rates_range('EURUSD',
mt.TIMEFRAME_D1,
datetime(2021, 1, 1),
datetime.now()))
ohlc_data2 = pd.DataFrame(mt.copy_rates_range('EURUSD',
mt.TIMEFRAME_H4,
datetime(2021, 1, 1),
datetime.now()))
fig = px.line(ohlc_data, x=ohlc_data['time'], y=ohlc_data['close'])
fig2 = px.line(ohlc_data2, x=ohlc_data2['time'], y=ohlc_data2['close'])
how can I plot fig & fig2 in one graph instead of seperate ones?
and here the imports:
import MetaTrader5 as mt
import pandas as pd
import plotly.express as px
from datetime import datetime