|
|
@@ -428,7 +428,7 @@ impl Predictor {
|
|
|
// is_cross = is_cross && ((mid_start - fair_start) / mid_start).abs() < dec!(0.0005);
|
|
|
|
|
|
// 最近80%的波动都发生在最近短周期的时间里
|
|
|
- let is_high_speed = mid_rate.abs() > mid_long_rate.abs() * dec!(0.8) && mid_rate * mid_long_rate > Decimal::ZERO;
|
|
|
+ let is_high_speed = mid_rate.abs() > mid_long_rate.abs() * dec!(0.4) && mid_rate.abs() < mid_long_rate.abs() * dec!(0.6) && mid_rate * mid_long_rate > Decimal::ZERO;
|
|
|
|
|
|
if is_high_speed && mid_rate.abs() > self.params.open_activate {
|
|
|
// 向上涨,并且fair下穿mid,视为观测阶段开始
|