Can't run Buy and Hold sample strategy!
Does anyone have trouble running this sample strategy in Article section?
Only made two tiny changes
parser.add_argument('--data', default='SPY.csv', required=False, help='Data to read in')
data = bt.feeds.YahooFinanceCSVData(dataname=args.data, **kwargs)
Cuz I use Yahoo data.
Any help will be appreciated!
run-out last edited by
@jeff1228 It's hard to tell what you changed without the original code. But if you changed the data source, that is not necessarily a small change. Include a line or better copy in the code your are referencing and we'll sort you out. Also, maybe some or your data? And also, maybe an error message?