From 99904683a103c3d14aa9ca4c136d8530e7de9fa7 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Tue, 26 Jan 2021 16:18:50 +0000 Subject: [PATCH] min profit 0.4 --- rustybot/src/strategy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustybot/src/strategy.rs b/rustybot/src/strategy.rs index 18b9911..34803e1 100644 --- a/rustybot/src/strategy.rs +++ b/rustybot/src/strategy.rs @@ -70,7 +70,7 @@ pub struct TrailingStop { impl TrailingStop { const BREAK_EVEN_PERC: f64 = 0.1; - const MIN_PROFIT_PERC: f64 = TrailingStop::BREAK_EVEN_PERC + 0.2; + const MIN_PROFIT_PERC: f64 = 0.4; const GOOD_PROFIT_PERC: f64 = TrailingStop::MIN_PROFIT_PERC * 2.5; const MAX_LOSS_PERC: f64 = -1.0;