Procházet zdrojové kódy

调整、观察。

skyffire před 1 rokem
rodič
revize
12d1f5ca4d
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      strategy/src/avellaneda_stoikov.rs

+ 3 - 3
strategy/src/avellaneda_stoikov.rs

@@ -549,9 +549,9 @@ impl AvellanedaStoikov {
             optimal_ask_price: self.optimal_ask_price,
             optimal_bid_price: self.optimal_bid_price,
 
-            inventory: self.inventory,
-            sigma_square: self.flow_ratio_long,
-            gamma: self.last_open_interest,
+            inventory: self.last_open_interest,
+            sigma_square: self.last_volume,
+            gamma: self.last_price,
             kappa: self.t_diff,
 
             flow_ratio: self.flow_ratio_long,