Skip to content

Commit 732068a

Browse files
authored
Update backtesting.py
1 parent 21fed39 commit 732068a

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
@@ -705,7 +705,7 @@ def new_order(self,
705705

706706
if is_long:
707707
if not (sl or -np.inf) <= (limit or stop or self.last_price) <= (tp or np.inf):
708-
raise ValueError(f"Long orders require:'
708+
raise ValueError(f"Long orders require:"
709709
f"SL ({sl}) < LIMIT ({limit or stop or self.last_price}) < TP ({tp})")
710710
else:
711711
if not (tp or -np.inf) <= (limit or stop or self.last_price) <= (sl or np.inf):

0 commit comments

Comments
 (0)