@@ -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);
}