We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06bd35f commit 3d3ca84Copy full SHA for 3d3ca84
1 file changed
scripts/backtest.py
@@ -37,7 +37,7 @@ def run_backtest(
37
Colonne: [date, cash, positions_value, total_value, trades]
38
"""
39
# Setup
40
- portfolio = Portfolio("backtest", start_date, initial_cash, backtest=True)
+ portfolio = Portfolio.create("backtest", start_date, initial_cash, backtest=True)
41
42
# Carica tutto il dataset una sola volta
43
df = database.load_price_history(start_date, end_date)
0 commit comments