import json

output_file = "/home/aryy/.hermes/profiles/finance/backtests/xauusd_2026/hybrid/reviews/manual_replay_results/replay_result_00409_00412.json"

results = [
  {
    "candidate_id": "candidate_2026-03-25T04-00-00Z_short_liquidity_sweep_reversal",
    "timestamp": "2026-03-25T04:00:00Z",
    "decision": "needs_more_context",
    "reason": "M5 shows minor chop heading into 04:00Z without clear HTF sweep or structural break (M15 H:4574.59). Missing clear PD array or Fib context for a short setup. Leaving unpromoted.",
    "htf_context": "H4 closed bullish at 4573. H1 grinding higher, recently hit 4602 before retracing.",
    "m30_structure": "Ranging between 4565 and 4596. Minor consolidation.",
    "m15_m5_execution": "M15 printing narrow range candles. No clear CHoCH or liquidity sweep confirmed on M5 at exactly 04:00.",
    "entry": None,
    "stop": None,
    "target": None,
    "r": None,
    "promoted_to_journal": False
  },
  {
    "candidate_id": "candidate_2026-03-25T05-45-00Z_short_liquidity_sweep_reversal",
    "timestamp": "2026-03-25T05:45:00Z",
    "decision": "rejected",
    "reason": "M5 structure already breaking lower aggressively before 05:45Z (from 4571 down to 4554). Entry is late/chasing rather than catching a sweep reversal at a premium PD array.",
    "htf_context": "H4 rejected 4602 high, closed at 4573. H1 pushing lower from 4574 to 4555.",
    "m30_structure": "Bearish momentum pushing below 4565 support into 4554.",
    "m15_m5_execution": "M5 broke structure aggressively downwards at 05:35Z. By 05:45Z, price is already halfway through the move, making R:R unviable.",
    "entry": None,
    "stop": None,
    "target": None,
    "r": None,
    "promoted_to_journal": False
  },
  {
    "candidate_id": "candidate_2026-03-25T08-00-00Z_long_liquidity_sweep_reversal",
    "timestamp": "2026-03-25T08:00:00Z",
    "decision": "needs_more_context",
    "reason": "Price pushed down to 4536 (sweeping local lows) and bounced to 4545, but M5 structure hasn't clearly shifted bullish (CHoCH) at the close of 08:00Z bar.",
    "htf_context": "H1 continuing downtrend, printed 4537 low at 07:00Z and 4536 low at 08:00Z.",
    "m30_structure": "Downtrending from 4568 highs, sweeping local sell-side liquidity at 4536.",
    "m15_m5_execution": "M5 shows aggressive dump to 4536 and immediate rejection to 4545 at 08:00Z. Needs further M5 confirmation (bullish BOS) to validate long entry.",
    "entry": None,
    "stop": None,
    "target": None,
    "r": None,
    "promoted_to_journal": False
  }
]

with open(output_file, "w") as f:
    json.dump(results, f, indent=2)

print(f"Wrote {len(results)} results to {output_file}")
