import json

results = [
    {
        "candidate_id": "candidate_2026-03-12T03-45-00Z_short_liquidity_sweep_reversal",
        "timestamp": "2026-03-12T03:45:00Z",
        "decision": "rejected",
        "reason": "M15 sweep high 5158.48 (02:45) is not cleared by candidate 03:45 high (5154.66). Candidate is an inside structure, no clear sweep. Fib entry 5154.62 (05:30) hit stop before TP.",
        "htf_context": "H4 downtrend since Mar 10. Pullback to 5175 on Mar 12 01:00.",
        "m30_structure": "Bearish.",
        "m15_m5_execution": "Candidate high 5154.66 did not sweep prior local high 5158.48. Rejection.",
        "entry": None,
        "stop": None,
        "target": None,
        "r": None,
        "promoted_to_journal": False
    },
    {
        "candidate_id": "candidate_2026-03-12T07-00-00Z_long_liquidity_sweep_reversal",
        "timestamp": "2026-03-12T07:00:00Z",
        "decision": "rejected",
        "reason": "Overall HTF is bearish. 05:15 low 5137.17 swept previous 04:45 low 5140.62. But candidate time 07:00 is counter-trend long in a heavy H4 downtrend.",
        "htf_context": "Strong H4 downtrend. Counter-trend long is low probability.",
        "m30_structure": "Bearish continuation.",
        "m15_m5_execution": "05:15 swept 5140.62. Price rallied to 5185 (07:45). Entry would be counter-trend.",
        "entry": None,
        "stop": None,
        "target": None,
        "r": None,
        "promoted_to_journal": False
    },
    {
        "candidate_id": "candidate_2026-03-12T10-00-00Z_short_liquidity_sweep_reversal",
        "timestamp": "2026-03-12T10:00:00Z",
        "decision": "accepted",
        "reason": "Clear H4 downtrend. M15 sweeps 08:00 high (5189.86) with 10:00 high (5191.79). MSB at 12:00 (5167.38 < 5172.88). Retrace to Fib (5185.88) at 12:45. Drops to 5146.09 (TP hit).",
        "htf_context": "Strong H4 downtrend. Sell liquidity at premium.",
        "m30_structure": "Bearish order flow maintained.",
        "m15_m5_execution": "M15 sweep 5191.79 > 5189.86. Confirmed MSB at 12:00 close 5168.77. Retracement into Fib OTE at 12:45 (high 5185.88). Target previous lows.",
        "entry": 5183.0,
        "stop": 5193.0,
        "target": 5153.0,
        "r": 3.0,
        "promoted_to_journal": True
    }
]

with open('hybrid/reviews/manual_replay_results/replay_result_00345_00348.json', 'w') as f:
    json.dump(results, f, indent=2)

print("Results written.")
