This commit is contained in:
dsyoon
2025-08-04 22:10:29 +09:00
parent ddb0a40a4a
commit 8faabc2fe1
2 changed files with 13 additions and 74 deletions

View File

@@ -95,8 +95,8 @@ def run_simulation(symbol: str, interval_minutes: int, days: int = 7):
if info and info["alert"]:
alerts.append((slice_df.index[-1], slice_df["Close"].iloc[-1]))
# 8월 3일 이후의 매수 신호만 고려
alerts = [(time, price) for time, price in alerts if time > pd.Timestamp('2025-08-03')]
# 모든 매수 신호를 표시
# 기존 필터 제거하여 전체 기간 매수 신호 사용
# Plot
plt.figure(figsize=(12, 6))
@@ -124,6 +124,6 @@ def run_simulation(symbol: str, interval_minutes: int, days: int = 7):
if __name__ == "__main__":
symbol = 'WLD'
interval = 240
interval = 60
days = 7
run_simulation(symbol, interval, days)