Browse Source

止损,先暂定1%

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

+ 1 - 1
strategy/src/predictor.rs

@@ -495,7 +495,7 @@ impl Predictor {
             }
 
             // ============================ 止损逻辑处理1 =======================
-            if self.fair_rate_focus_close.is_zero() && !self.inventory.is_zero() && self.profit_point < self.params.open_activate * dec!(-5) {
+            if self.fair_rate_focus_close.is_zero() && !self.inventory.is_zero() && self.profit_point < dec!(-0.01) {
                 self.fair_rate_focus_close = dec!(-0.11);
                 self.fair_price_focus_close = self.mid_price;