Switch demo trading to 5m short-term swing setups (plan 3.1)

- The model now submits a pending setup (direction, zone, confirm price,
  validity); the executor enters at market once a 5m close confirms a
  dip into support or a rejection from resistance, and cancels the setup
  when the zone breaks, the trigger is missed or the stop is too far
- Stop beyond the confirmation extreme by 0.5 x ATR14(5m), skipped above
  1%; fixed take-profit ladders from the fill price (long 60/30/10 at
  +0.5/0.75/1%, short 80/20 at -0.5/0.75%); 4h time stop
- While holding, the model may only keep or exit
- Drop the long-term angle from the program, API, tables and page
This commit is contained in:
eezd committed 2026-10-15 13:09:19 +08:00
1 parent 1fcf41952c
commit 7efa2eb68b
12 files changed
+696 -746

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ async def routine_requests() -> None:
)).all()
if recent and recent[0].status == "running":
continue
if not recent or now >= next_routine_at(recent[0].started_at, target.angle):
if not recent or now >= next_routine_at(recent[0].started_at):
await request_analysis(session, target.symbol, "例行分析")
continue
last = recent[0]