From 793fd40b4ca1995a96d33d3a14feac71ba5d7469 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Thu, 25 Feb 2021 20:19:07 +0000 Subject: [PATCH] Print when in Critical/Loss as well --- src/strategy.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/strategy.rs b/src/strategy.rs index e653681..4faa02a 100644 --- a/src/strategy.rs +++ b/src/strategy.rs @@ -309,6 +309,8 @@ impl PositionStrategy for TrailingStop { // if in loss, ask the order manager to set the stop limit order, // if not already set if let Some(PositionProfitState::Critical) | Some(PositionProfitState::Loss) = position.profit_state() { + self.print_status(&position); + if !stop_loss_set { info!("In loss. Opening trailing stop order.");