min profit 0.4

This commit is contained in:
Giulio De Pasquale 2021-01-26 16:18:50 +00:00
parent 307bbb1b0c
commit 99904683a1

View File

@ -70,7 +70,7 @@ pub struct TrailingStop {
impl TrailingStop { impl TrailingStop {
const BREAK_EVEN_PERC: f64 = 0.1; 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 GOOD_PROFIT_PERC: f64 = TrailingStop::MIN_PROFIT_PERC * 2.5;
const MAX_LOSS_PERC: f64 = -1.0; const MAX_LOSS_PERC: f64 = -1.0;