|
@@ -318,10 +318,10 @@ impl Predictor {
|
|
|
self.fair_rate_focus = Decimal::ZERO;
|
|
self.fair_rate_focus = Decimal::ZERO;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- // // 重置焦点,条件2
|
|
|
|
|
- // if !self.fair_rate_focus.is_zero() && !self.inventory.is_zero() {
|
|
|
|
|
- // self.fair_rate_focus = Decimal::ZERO;
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ // 重置焦点,条件2
|
|
|
|
|
+ if !self.fair_rate_focus.is_zero() && !self.inventory.is_zero() {
|
|
|
|
|
+ self.fair_rate_focus = Decimal::ZERO;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// 更新程序关注的变化幅度焦点
|
|
// 更新程序关注的变化幅度焦点
|
|
|
if self.fair_rate_focus.is_zero() && self.spread_sma_1000_time_vec.len() > 1 {
|
|
if self.fair_rate_focus.is_zero() && self.spread_sma_1000_time_vec.len() > 1 {
|