From 1b5021d640ade92b683ab5743b7beba58eac04f1 Mon Sep 17 00:00:00 2001 From: liaozhaorun <1300336796@qq.com> Date: Sun, 25 Jan 2026 23:28:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AE=9E=E7=9B=98=E7=AD=96?= =?UTF-8?q?=E7=95=A5=EF=BC=9AITrendStrategy(SA)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../strategies/ITrendStrategy/SA.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 strategy_manager/strategies/ITrendStrategy/SA.py diff --git a/strategy_manager/strategies/ITrendStrategy/SA.py b/strategy_manager/strategies/ITrendStrategy/SA.py new file mode 100644 index 0000000..9d6cee2 --- /dev/null +++ b/strategy_manager/strategies/ITrendStrategy/SA.py @@ -0,0 +1,28 @@ +# 策略配置(Python格式) +from src.indicators.indicators import ZScoreATR + +CONFIG = { + "name": "ITrendStrategy", + "version": "1.0", + "enabled": True, + + "strategy_class": "futures_trading_strategies.SA.ITrend.ITrendStrategy.ITrendStrategy", + + "engine_params": { + "symbol": "KQ.m@CZCE.SA", + "duration_seconds": 900, + "roll_over_mode": True, + "history_length": 1000, + # 支持Python对象 + "close_bar_delta": __import__('datetime').timedelta(minutes=58) + }, + + "strategy_params": { + 'main_symbol': 'SA', + 'trade_volume': 1, + 'enable_log': False, + 'length': 55, + 'range_fraction': 5, + # 'indicator': Hurst(230, 0.45, 0.55) + } +}