Skip to content

Commit 1a9989f

Browse files
author
goblincomet
committed
DOC: Clarify that Backtest(data, ...) can contain additional columns
Refs: kernc/backtesting.py#104
1 parent 4b7e43e commit 1a9989f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backtesting/backtesting.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,9 @@ def __init__(self,
948948
949949
df['Open'] = df['High'] = df['Low'] = df['Close']
950950
951-
DataFrame index can be either datetime index (timestamps)
951+
The passed data frame can contain additional columns that
952+
can be used by the strategy (e.g. sentiment info).
953+
DataFrame index can be either a datetime index (timestamps)
952954
or a monotonic range index (i.e. a sequence of periods).
953955
954956
`strategy` is a `backtesting.backtesting.Strategy`

0 commit comments

Comments
 (0)