Skip to content

Commit e11efb7

Browse files
committed
DOC: Clarify that Backtest(data, ...) can contain additional columns
Refs: #104
1 parent 95ae061 commit e11efb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backtesting/backtesting.py

+3-1
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)