新增实盘策略:FisherTrendStrategy(FG)
This commit is contained in:
@@ -118,6 +118,7 @@ class PragmaticCyberneticStrategy(Strategy):
|
||||
self._closes.append(prev_bar.close)
|
||||
|
||||
T, FV, FB, ATR = self._calculate_indicators()
|
||||
self.log(f'T: {T:.2f} FV: {FV:.2f} FB: {FB:.2f} ATR: {ATR:.2f}')
|
||||
if T is None or math.isnan(ATR): return
|
||||
|
||||
self._fbs.append(FB)
|
||||
@@ -133,6 +134,8 @@ class PragmaticCyberneticStrategy(Strategy):
|
||||
|
||||
is_met = self.indicator is None or self.indicator.is_condition_met(*self.get_indicator_tuple())
|
||||
|
||||
self.log(f'is_met: {is_met}, pos: {pos:.2f}, current_fb: {current_fb:.2f}, prev_fb: {prev_fb:.2f}')
|
||||
|
||||
# ==========================================
|
||||
# 核心一:经典出场逻辑 (你的原版设计)
|
||||
# ==========================================
|
||||
|
||||
Reference in New Issue
Block a user