For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Can't run Buy and Hold sample strategy!
-
Hi,
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!
Cheers
-
@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?
Thanks.