Skip to content

Commit b583331

Browse files
feat: add commments
Co-authored-by: Copilot <[email protected]>
1 parent 08f04af commit b583331

File tree

1 file changed

+1
-0
lines changed
  • src/quant_research_starter

1 file changed

+1
-0
lines changed

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)