Merge pull request #1460 from freqtrade/fix/stop_loss_result

Stop loss should also be shown when trailing is active
This commit is contained in:
Misagh
2019-01-02 16:41:15 +01:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -2066,6 +2066,7 @@ def test_trailing_stop_loss(default_conf, limit_buy_order, fee, markets, caplog,
trade = Trade.query.first()
trade.update(limit_buy_order)
trade.max_rate = trade.open_rate * 1.003
caplog.set_level(logging.DEBUG)
# Sell as trailing-stop is reached
assert freqtrade.handle_trade(trade) is True