We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c214f2 commit 11dd2e5Copy full SHA for 11dd2e5
src/backtest_bay/backtest/backtest_signals.py
@@ -34,7 +34,7 @@ def backtest_signals(data, signals, initial_cash, tac, trade_pct, price_col="Clo
34
# 'download_data.py' and 'generate_signals.py'
35
_validate_backtest_signals_input(data, initial_cash, tac, trade_pct, price_col)
36
37
- prices = data[price_col].squeeze()
+ prices = data[price_col]
38
cash, holdings, shares = initial_cash, 0.0, 0
39
assets = cash + holdings
40
portfolio = []
0 commit comments