# First Prompt for Claude CLI Agent

You are continuing the TOP H4 FREEDOMMONEY research task.

Primary goal:

1. Collect more FREEDOMMONEY futures OHLCV data from BingX if available.
2. Build/update fast NPZ cache compatible with existing H4 backtester.
3. Re-evaluate these configs on all available FREEDOMMONEY data:
   - `configs/h4_freedommoney_ratio_best_v2.yaml`
   - `configs/h4_freedommoney_low_tail_expo_l10_s08.yaml`
   - baseline `configs/h4_c002_w9_fee_0002.yaml` adapted to FREEDOMMONEY
4. Tune to maximize:

```text
MTM_PnL / abs(MTM_DD)
```

but do not accept candidates with:

```text
margin_calls > 0
final_unrealized_abs > 60 USDT unless ratio improvement is massive
MTM_DD worse than -20% unless justified
```

Hard constraints. Do not mutate these static fields for long or short:

```yaml
fee_rate: 0.0005
funding_rate_per_8h_bps: 0.0
initial_equity_per_leg: 100.0
slippage_per_side: 9.2387
autoMerge: 0.0
baseOrderPctEq: 1.5
equityForSizingUSDT: 335
minOrderUSDT: 2.0
requireCloseAboveFullTP: 1.0
requireCloseBelowDcaLevel: 1.0
subSellCloseConfirmMode: breakeven
useEquityPctBase: 1.0
useEvenBars: 0
useHighLowTouch: 0.0
useLiveSyncStart: 0.0
useTrendAdaptiveSizing: 1.0
timeframe: 1m preferred for FREEDOMMONEY unless data proves otherwise
```

The previous tests show ENA transfer failed. Do not spend more than one sanity-check on ENA.

Deliverables after every loop:

- updated `docs/freedommoney_handoff/AGENT_STATE.md`
- append row to `docs/freedommoney_handoff/EXPERIMENT_LEDGER.csv`
- save best config under `obw_platform/configs/`
- save ranked CSV under `_reports/freedommoney/`
- pack snapshot with `commands/freedom_09_pack_snapshot.sh`
