Skip to content

Commit 28568d1

Browse files
committed
DOC: Document Backtest(..., exclusive_orders=) parameter
Oops. Fixes #123
1 parent bcf8eda commit 28568d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backtesting/backtesting.py

+4
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,10 @@ def __init__(self,
10101010
If `False`, the opposite-facing orders first close existing trades in
10111011
a [FIFO] manner.
10121012
1013+
If `exclusive_orders` is `True`, each new order auto-closes the previous
1014+
trade/position, making at most a single trade (long or short) in effect
1015+
at each time.
1016+
10131017
[FIFO]: https://www.investopedia.com/terms/n/nfa-compliance-rule-2-43b.asp
10141018
"""
10151019

0 commit comments

Comments
 (0)