Add TODO-lev for "stoploss_from_absolute".

This commit is contained in:
Matthias
2022-01-18 16:52:34 +01:00
parent 120639e84b
commit 1fb48a1f53
2 changed files with 3 additions and 2 deletions

View File

@@ -145,8 +145,8 @@ def test_stoploss_from_open():
# there is no correct answer if the expected stop price is above
# the current price
if (side == 'long' and expected_stop_price > current_price) \
or (side == 'short' and expected_stop_price < current_price):
if ((side == 'long' and expected_stop_price > current_price)
or (side == 'short' and expected_stop_price < current_price)):
assert stoploss == 0
else:
assert isclose(stop_price, expected_stop_price, rel_tol=0.00001)