Skip to content

Commit 0aac0c1

Browse files
authored
DOC: Clarify fractional order size semantics (#1376)
1 parent b0f55cf commit 0aac0c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backtesting/backtesting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,8 @@ def size(self) -> float:
452452
Order size (negative for short orders).
453453
454454
If size is a value between 0 and 1, it is interpreted as a fraction of current
455-
available liquidity (cash plus `Position.pl` minus used margin).
455+
available liquidity (cash plus `Position.pl` minus used margin) to allocate
456+
to the order (not the maximum account risk if the order's stop-loss is hit).
456457
A value greater than or equal to 1 indicates an absolute number of units.
457458
"""
458459
return self.__size

0 commit comments

Comments
 (0)