1、卡尔曼策略
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -109,6 +109,7 @@ class TrendlineHawkesStrategy(Strategy):
|
||||
self._hawkes_window = np.array([], dtype=np.float64)
|
||||
|
||||
def on_open_bar(self, open_price: float, symbol: str):
|
||||
self.symbol = symbol
|
||||
bar_history = self.get_bar_history()
|
||||
min_bars_required = max(self.trendline_n + 2, self.hawkes_lookback + 2)
|
||||
if len(bar_history) < min_bars_required:
|
||||
|
||||
Reference in New Issue
Block a user