Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backtesting/backtesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ def pl(self):

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

Expand Down