Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f762c5b

Browse filesBrowse files
committed
DOC: Fix fractional backtest warning message
Ref: c5cd1b3 Thanks @daraul
1 parent 4128b12 commit f762c5b
Copy full SHA for f762c5b

1 file changed

+3-2Lines changed: 3 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎backtesting/backtesting.py‎

Copy file name to clipboardExpand all lines: backtesting/backtesting.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,8 +1218,9 @@ def __init__(self,
12181218
'fill them in with `df.interpolate()` or whatever.')
12191219
if np.any(data['Close'] > cash):
12201220
warnings.warn('Some prices are larger than initial cash value. Note that fractional '
1221-
'trading is not supported. If you want to trade Bitcoin, '
1222-
'increase initial cash, or trade μBTC or satoshis instead (GH-134).',
1221+
'trading is not supported by this class. If you want to trade Bitcoin, '
1222+
'increase initial cash, or trade μBTC or satoshis instead (see e.g. class '
1223+
'`backtesting.lib.FractionalBacktest`.',
12231224
stacklevel=2)
12241225
if not data.index.is_monotonic_increasing:
12251226
warnings.warn('Data index is not sorted in ascending order. Sorting.',

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.