|
|
@@ -377,7 +377,7 @@ impl Predictor {
|
|
|
// 更新程序关注的开仓焦点
|
|
|
if self.fair_rate_focus_open.is_zero() && self.inventory.is_zero() {
|
|
|
// 只有有强度的rate才有资格被称为针,而且要带量
|
|
|
- if rate.abs() > self.params.open_activate && self.trades_volume_10s > self.trades_volume_10s_ema {
|
|
|
+ if rate.abs() > self.params.open_activate {
|
|
|
// 向上涨,并且fair下穿mid,视为观测阶段开始
|
|
|
if rate > Decimal::ZERO {
|
|
|
self.fair_rate_focus_open = rate;
|
|
|
@@ -653,12 +653,7 @@ impl Predictor {
|
|
|
|
|
|
let gamma = self.fair_rate_focus_open;
|
|
|
|
|
|
- let delta: Decimal = self.trade_short_vec.deque.iter().map(|item| item.size).sum();
|
|
|
- let kappa = if delta > Decimal::ZERO {
|
|
|
- Decimal::ONE
|
|
|
- } else {
|
|
|
- Decimal::NEGATIVE_ONE
|
|
|
- };
|
|
|
+ let kappa = self.error_rate;
|
|
|
|
|
|
let flow_ratio = Decimal::ZERO;
|
|
|
|