import json

with open("/home/aryy/.hermes/profiles/finance/backtests/xauusd_2026/hybrid/data/ohlcv_M5.json", 'r') as f:
    data = json.load(f)

bars_data = data.get("bars", [])
start = "2026-04-29T10:00:00Z"
end = "2026-04-29T13:30:00Z"

m5_exec = [b for b in bars_data if b.get('timestamp', '') >= start and b.get('timestamp', '') <= end]
print(f"Found {len(m5_exec)} bars in M5")
for b in m5_exec: print(b.get('timestamp'), b['open'], b['high'], b['low'], b['close'])
