Explorar el Código

ASQ模型 fix1

skyffire hace 1 año
padre
commit
57e56d8e5a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      strategy/src/avellaneda_stoikov.rs

+ 1 - 1
strategy/src/avellaneda_stoikov.rs

@@ -220,7 +220,7 @@ impl AvellanedaStoikov {
 
     pub fn update_delta(&mut self) {
         if self.gamma != Decimal::ZERO {
-            let pos_edge = if self.inventory.abs() < dec!(3) {
+            let pos_edge = if self.inventory.abs() < dec!(5) {
                 self.gamma * self.sigma_square * self.inventory.abs().powd(Decimal::TWO) * self.t_diff
             } else {
                 Decimal::PI * self.gamma * self.sigma_square * self.inventory.abs().powd(Decimal::TWO) * self.t_diff