Skip to content

Commit e5583fc

Browse files
author
theqacollective@gmail.com
committed
Fix final pep8 issue
1 parent 5340474 commit e5583fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backtesting/backtesting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,8 @@ def _close_trade(self, trade: Trade, price: float, time_index: int):
984984
self.closed_trades.append(trade._replace(exit_price=price, exit_bar=time_index))
985985
self._cash += trade.pl
986986

987-
def _open_trade(self, price: float, size: int, sl: float, tp: float, time_index: int, tag: object):
987+
def _open_trade(self, price: float, size: int, sl: float, tp: float,
988+
time_index: int, tag: object):
988989
trade = Trade(self, size, price, time_index, tag)
989990
self.trades.append(trade)
990991
# Create SL/TP (bracket) orders.

0 commit comments

Comments
 (0)