Files
Chan/strategies/Wyckoff_BTC_LPS.py
T
jackyu66gitandCursor 8ee11317d3 fix(web): 自动刷新保留 K 线视窗;威科夫与图表增量更新
自动刷新改用 tail update 与 scrollToPosition 恢复视窗,避免 setData 后跳到最右;拆分 chart_tv 模块并扩展 analyze/recent API。同步威科夫分析、pipeline 增量构建及相关策略与配置。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 22:57:43 +08:00

43 lines
1.3 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# --- Do not remove these libs ---
"""
ARCHIVED — LPS 研究分支已冻结,禁止用于 dry-run / 生产。
见:
user_data/Chan/research/SYSTEM_STATUS.md
user_data/Chan/research/lps_v1_failed/REJECT.md
user_data/Chan/research/lps_v1_1_failed/REJECT.md
user_data/Chan/research/lps_v2_failed/REJECT.md
user_data/Chan/research/lps_v2_failed/Wyckoff_BTC_LPS_V2.py
Baseline: Wyckoff_BTC_V1_BASELINESpring-only
"""
from freqtrade.strategy import IStrategy
from pandas import DataFrame
class Wyckoff_BTC_LPS(IStrategy):
"""Stub: LPS archived. Use Wyckoff_BTC_V1_BASELINE."""
INTERFACE_VERSION = 3
STRATEGY_VERSION = "ARCHIVED"
timeframe = "1h"
can_short = True
startup_candle_count = 20
minimal_roi = {"0": 1}
stoploss = -0.99
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
raise RuntimeError(
"LPS research archived (V1/V1.1/V2 all REJECTED). "
"Use Wyckoff_BTC_V1_BASELINE. See user_data/Chan/research/"
)
def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe["enter_long"] = 0
dataframe["enter_short"] = 0
return dataframe
def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe["exit_long"] = 0
dataframe["exit_short"] = 0
return dataframe