There was an error while loading. Please reload this page.
1 parent b0f55cf commit 0aac0c1Copy full SHA for 0aac0c1
1 file changed
backtesting/backtesting.py
@@ -452,7 +452,8 @@ def size(self) -> float:
452
Order size (negative for short orders).
453
454
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).
+ 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).
457
A value greater than or equal to 1 indicates an absolute number of units.
458
"""
459
return self.__size
0 commit comments