From 72cc1e6d16666ebdea7356bff52c5797d467a20e Mon Sep 17 00:00:00 2001 From: ved1beta Date: Sun, 5 Oct 2025 10:06:17 +0530 Subject: [PATCH] [Doc] clarity on trade pct calculation --- backtesting/backtesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backtesting/backtesting.py b/backtesting/backtesting.py index 39fb80f1..5a6335ec 100644 --- a/backtesting/backtesting.py +++ b/backtesting/backtesting.py @@ -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)