Преглед изворни кода

profit_now * mul,不然最新的影响太小了。

skyffire пре 10 месеци
родитељ
комит
856b1aa009
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      strategy/src/predictor.rs

+ 2 - 1
strategy/src/predictor.rs

@@ -222,7 +222,8 @@ impl Predictor {
                     (self.pos_avg_price - self.mid_price) / self.pos_avg_price
                 };
 
-                self.profit_fixed_vec.push(profit_now);
+                let mul = Decimal::from(self.profit_fixed_vec.len());
+                self.profit_fixed_vec.push(profit_now * mul);
             }
         }