Browse Source

5%大止损

skyffire 8 tháng trước cách đây
mục cha
commit
6c892fee34
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      strategy/src/predictor.rs

+ 2 - 2
strategy/src/predictor.rs

@@ -433,13 +433,13 @@ impl Predictor {
 
         let is_close_long = self.inventory > Decimal::ZERO && (
             // 硬止损
-            (self.profit < dec!(-0.01))
+            (self.profit < dec!(-0.05))
             // 利润较大时,追踪止盈
             || (self.profit > dec!(0.01) && self.profit < self.profit_high * dec!(0.75))
         );
         let is_close_short = self.inventory < Decimal::ZERO && (
             // 硬止损
-            (self.profit < dec!(-0.01))
+            (self.profit < dec!(-0.05))
             // 利润较大时,追踪止盈
             || (self.profit > dec!(0.01) && self.profit < self.profit_high * dec!(0.75))
         );