修改了线段中枢逻辑

This commit is contained in:
jackyu66git
2026-03-11 03:08:10 +08:00
parent 1c099be23e
commit 5226c551d5
19 changed files with 3386 additions and 324 deletions
+1
View File
@@ -438,6 +438,7 @@ def add_indicators(df):
df['ema10'] = (ta.EMA(df, timeperiod=10)).fillna(0)
df['ema24'] = (ta.EMA(df, timeperiod=24)).fillna(0)
df['ema52'] = (ta.EMA(df, timeperiod=52)).fillna(0)
df['ema26'] = (ta.EMA(df, timeperiod=26)).fillna(0)
# 常用SMA 24/52
try:
df['sma24'] = (ta.SMA(df, timeperiod=24)).fillna(0)