Browse Source

没有重置挂单价格……淦

skyffire 8 months ago
parent
commit
fb38abd7e1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      strategy/src/predictor.rs

+ 2 - 0
strategy/src/predictor.rs

@@ -361,6 +361,8 @@ impl Predictor {
 
         self.bid_delta = dec!(-2);
         self.ask_delta = dec!(-2);
+        self.optimal_ask_price = Self::DONT_VIEW;
+        self.optimal_bid_price = Self::DONT_VIEW;
 
         if is_close_long {
             self.ask_delta = dec!(0);