mirror of
https://github.com/wassname/options_backtester.git
synced 2026-08-20 12:40:38 +08:00
Removed old run_benchmark file
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
import os
|
||||
import backtester as bt
|
||||
from backtester.utils import get_data_dir
|
||||
|
||||
data_dir = get_data_dir()
|
||||
spx_test_data = os.path.join(data_dir, "SPX_2008-2018.csv")
|
||||
|
||||
portfolio = bt.run(spx_test_data)
|
||||
report = portfolio.create_report()
|
||||
|
||||
print("Running Benchmark strategy on SPX data for 2008-2018")
|
||||
print(report.tail(30))
|
||||
Reference in New Issue
Block a user