Open CodeCombiner opened 2 years ago
Fixed by solution from previos issue https://github.com/Auquan/auquantoolbox/issues/3
I have the same issue "name='B', domain=None, path=None" in https://github.com/Auquan/Tutorials/blob/master/Pairs%20Trading.ipynb could you fix it?
hi all, I still have same keyError. I tried all solutions I found in the net....
I also have the same problem...desperate
i used to replace the logic to fetch the data and i get rid of the old implementation
in data_source_utils.py
add the imports
import yfinance as yf
import pandas as pd
def downloadFileFromYahoo(startDate, endDate, instrumentId, fileName, interval):
logInfo('Downloading %s' % fileName)
data = yf.download(instrumentId, startDate, endDate, interval)
with open(fileName, 'wb') as f:
data.to_csv(fileName)
return True
return False
Then run
pip install -e .
Finally in your jupyter or IDE install the library
%pip install -U auquan_toolbox --user
in the import section
from backtester.trading_system_parameters import TradingSystemParameters
from backtester.features.feature import Feature
from backtester.dataSource.yahoo_data_source import YahooStockDataSource
from backtester.timeRule.custom_time_rule import CustomTimeRule
from backtester.executionSystem.simple_execution_system import SimpleExecutionSystem
from backtester.orderPlacer.backtesting_order_placer import BacktestingOrderPlacer
from backtester.trading_system import TradingSystem
from backtester.constants import *
Hi, trying to run this lab from the course. https://github.com/GoogleCloudPlatform/training-data-analyst/blob/master/courses/ai-for-finance/solution/momentum_backtest_losing_money.ipynb
And I get this error: