|
|
@@ -372,13 +372,9 @@ impl Predictor {
|
|
|
self.fair_rate_focus_open = Decimal::ZERO;
|
|
|
}
|
|
|
}
|
|
|
- // 重置开仓焦点,条件4
|
|
|
- if !self.fair_price_focus_open.is_zero() && self.trades_volume_10s < self.trades_volume_10s_ema {
|
|
|
- self.fair_rate_focus_open = Decimal::ZERO;
|
|
|
- }
|
|
|
// 更新程序关注的开仓焦点
|
|
|
if self.fair_rate_focus_open.is_zero() && self.inventory.is_zero() {
|
|
|
- // 只有有强度的rate才有资格被称为针,而且要带量
|
|
|
+ // 只有有强度的rate才有资格被称为针
|
|
|
if rate.abs() > self.params.open_activate {
|
|
|
// 向上涨,并且fair下穿mid,视为观测阶段开始
|
|
|
if rate > Decimal::ZERO {
|