自动刷新改用 tail update 与 scrollToPosition 恢复视窗,避免 setData 后跳到最右;拆分 chart_tv 模块并扩展 analyze/recent API。同步威科夫分析、pipeline 增量构建及相关策略与配置。 Co-authored-by: Cursor <cursoragent@cursor.com>
43 lines
1.3 KiB
Python
43 lines
1.3 KiB
Python
# --- 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_BASELINE(Spring-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
|