Skip to content

Commit 1af1dda

Browse files
ved1betakernc
authored andcommitted
[Doc] clarity on trade pct calculation
1 parent cdbe249 commit 1af1dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtesting/backtesting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def pl(self):
681681

682682
@property
683683
def pl_pct(self):
684-
"""Trade profit (positive) or loss (negative) in percent."""
684+
"""Trade profit (positive) or loss (negative) in percent relative to trade entry price."""
685685
price = self.__exit_price or self.__broker.last_price
686686
gross_pl_pct = copysign(1, self.__size) * (price / self.__entry_price - 1)
687687

0 commit comments

Comments
 (0)