Prechádzať zdrojové kódy

持仓均价异常 空仓信息打印

JiahengHe 1 rok pred
rodič
commit
ca11234fa0
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      strategy/src/core.rs

+ 1 - 1
strategy/src/core.rs

@@ -1066,7 +1066,7 @@ impl Core {
         if self.strategy.short_pos_bias != Decimal::ZERO {
             if self.strategy.short_hold_value > Decimal::TWO * self.strategy._min_amount_value {
                 if self.strategy.short_pos_bias > dec!(4) || self.strategy.short_pos_bias < -Decimal::TWO {
-                    let exit_msg = format!("{} short_pos_bias: {},持仓均价异常,退出。", self.params.account_name, self.strategy.long_pos_bias);
+                    let exit_msg = format!("{} short_pos_bias: {},持仓均价异常,退出。", self.params.account_name, self.strategy.short_pos_bias);
                     warn!(exit_msg);
                     self.exit_msg = exit_msg;
                     self.stop().await;