Selaa lähdekoodia

一个参数的调整

skyffire 8 kuukautta sitten
vanhempi
commit
f4ab4dcf7a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      strategy/src/predictor.rs

+ 1 - 1
strategy/src/predictor.rs

@@ -503,7 +503,7 @@ impl Predictor {
             // 硬止损,开单不久之后就在亏
             (self.profit_high < dec!(0.001) && self.profit < dec!(-0.005))
             // 浮动止损,如果profit_high较高产生了利润,但后续不给力
-            || (self.profit_high - self.profit > dec!(0.01) && self.profit < Decimal::ZERO)
+            || (self.profit_high - self.profit > dec!(0.0075) && self.profit < Decimal::ZERO)
             // 利润较大时,追踪止盈
             || (self.profit > dec!(0.005) && self.profit < self.profit_high * dec!(0.75))
         );