新增实盘策略:ITrendStrategy(SA)
This commit is contained in:
@@ -97,6 +97,8 @@ class DualModeKalmanStrategy(Strategy):
|
||||
bar_history = self.get_bar_history()
|
||||
if len(bar_history) < max(self.atr_period, self.atr_lookback) + 2: return
|
||||
|
||||
self.cancel_all_pending_orders(symbol)
|
||||
|
||||
# --- 通用数据计算 ---
|
||||
highs = np.array([b.high for b in bar_history], dtype=float)
|
||||
lows = np.array([b.low for b in bar_history], dtype=float)
|
||||
|
||||
Reference in New Issue
Block a user