You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
So I try to use your example and plot my df from Investpy and can't seem to find a way to pass it to bt.feeds.PandasData
`Import investpy
df = investpy.get_stock_historical_data(stock='ree',
country='Vietnam',
from_date='01/03/2015',
to_date='21/03/2022',
interval= 'daily')
df.head()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So I try to use your example and plot my df from Investpy and can't seem to find a way to pass it to bt.feeds.PandasData
`Import investpy
df = investpy.get_stock_historical_data(stock='ree',
country='Vietnam',
from_date='01/03/2015',
to_date='21/03/2022',
interval= 'daily')
df.head()
data = bt.feeds.PandasData(
dataname="df",
fromdate=datetime.datetime(2015, 1, 1),
todate=datetime.datetime(2016, 2, 28),
reverse=False,
swapcloses=True,`
Is there a solution? How do I change the datetime to the right format?
Beta Was this translation helpful? Give feedback.
All reactions