We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0b929e commit 21fed39Copy full SHA for 21fed39
backtesting/backtesting.py
@@ -705,8 +705,8 @@ def new_order(self,
705
706
if is_long:
707
if not (sl or -np.inf) <= (limit or stop or self.last_price) <= (tp or np.inf):
708
- raise ValueError(f"Long orders require:' f
709
- "SL ({sl}) < LIMIT ({limit or stop or self.last_price}) < TP ({tp})")
+ raise ValueError(f"Long orders require:'
+ f"SL ({sl}) < LIMIT ({limit or stop or self.last_price}) < TP ({tp})")
710
else:
711
if not (tp or -np.inf) <= (limit or stop or self.last_price) <= (sl or np.inf):
712
raise ValueError(f"Short orders require: "
0 commit comments