openfund-maker 2.1.11__tar.gz → 2.1.12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: openfund-maker
3
- Version: 2.1.11
3
+ Version: 2.1.12
4
4
  Summary: Openfund-maker.
5
5
  Requires-Python: >=3.9,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "openfund-maker"
3
- version = "2.1.11"
3
+ version = "2.1.12"
4
4
  description = "Openfund-maker."
5
5
  authors = []
6
6
  readme = "README.md"
@@ -112,7 +112,7 @@ class BestFVGStrategyMaker(SMCStrategyMaker):
112
112
  # 20250417 优化: 最新的HTF_entry_struct结构要满足,才能下单。
113
113
  if htf_entry_struct not in htf_struct_label :
114
114
  # 如果是反转结构判断一下方向是否一致,不一致重置缓存。
115
- if "CHoCH" in htf_struct_label and htf_last_CHoCH["side"] != htf_side:
115
+ if "CHoCH" in htf_struct_label and htf_last_CHoCH and htf_last_CHoCH["side"] != htf_side:
116
116
  self.htf_last_CHoCH[symbol] = {}
117
117
  self.logger.debug(f"{symbol} : {htf} is {htf_struct_label}, 未形成有效的 {htf_entry_struct} struct,不下单。")
118
118
  return