Skip to content

Commit b583331

Browse files
feat: add commments
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 08f04af commit b583331

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/quant_research_starter

src/quant_research_starter/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def backtest(data_file, signals_file, initial_capital, output, plot, plotly):
159159
# Load signals
160160
if Path(signals_file).exists():
161161
signals_data = pd.read_csv(signals_file, index_col=0, parse_dates=True)
162+
# If a 'composite' signal column exists, use it; otherwise, fall back to the first available signal column.
162163
if "composite" in signals_data.columns:
163164
signals = signals_data["composite"]
164165
else:

0 commit comments

Comments
 (0)