# KOUCHA GOLD BasketClose Profit Compare

## Compile

- Result: 0 errors / 0 warnings
- EA: KOUCHA_GOLD_KIWAMI_SURVIVAL_TICK.mq5
- Scope: BasketClose target comparison only.
- D4 speed setting was used as the standard fast compare setting.
- Broad MA / HigherTF / GoldLocation / TechnicalDanger cache remains disabled for safety.

## Common Conditions

- Symbol: GOLD
- Period: M5
- Model: Every tick / Model=0
- Initial deposit: 50000 JPY
- Leverage: 1:888
- Fast compare mode: true
- Diagnostic trace: false
- UseDxyVixOnlyCache: true
- DxyVixOnlyCacheSeconds: 5

## S2 Result: 2026.05.20 - 2026.05.22

| Pattern | NetProfit | Trades | BasketCloseCount | BasketCloseProfitTotal | HardStop | Result |
|---|---:|---:|---:|---:|---:|---|
| P0_A2_BASE_D4 | -1991 | 6 | 4 | 1612 | 0 | Base |
| P1_BasketClose_SlightExtend | -1684 | 6 | 4 | 1938 | 0 | Improved on S2 |
| P2_BasketClose_MediumExtend | -2439 | 4 | 2 | 1132 | 0 | Rejected on S2 |
| P3_BasketClose_QuickSecure | -2130 | 6 | 4 | 1465 | 0 | Rejected on S2 |
| P4_BasketClose_TimeAdaptive | -1684 | 6 | 4 | 1938 | 0 | Improved on S2 |

S2 only: P1 and P4 improved versus P0. P2 extended too far and reduced BasketClose count. P3 secured too quickly and reduced total BasketClose profit.

## Four 2-Day Segment Aggregate

| Pattern | TotalNetProfit | WorstSegment | BestSegment | Trades | BasketCloseProfitTotal | BasketCloseCount | HardStop |
|---|---:|---:|---:|---:|---:|---:|---:|
| P0_A2_BASE_D4 | -7793 | -3235 | -866 | 23 | 6054 | 15 | 0 |
| P1_BasketClose_SlightExtend | -7577 | -3235 | -1244 | 21 | 6277 | 13 | 0 |
| P4_BasketClose_TimeAdaptive | -7577 | -3235 | -1244 | 21 | 6277 | 13 | 0 |

Four-segment view: P1/P4 improved total net by 216 yen, but reduced trade count and BasketClose count. Improvement was small, so medium validation was required.

## Medium Period: 2026.05.01 - 2026.05.29

| Pattern | NetProfit | Trades | BasketCloseCount | BasketCloseProfitTotal | DefenseHedge | HardStop | Result |
|---|---:|---:|---:|---:|---:|---:|---|
| P0_A2_BASE_D4 | 7414 | 59 | 53 | 20933 | 3 | 6 | Best |
| P1_BasketClose_SlightExtend | -323 | 45 | 38 | 18362 | 3 | 11 | Rejected |
| P4_BasketClose_TimeAdaptive | 478 | 47 | 40 | 18942 | 3 | 8 | Rejected |

Medium validation rejected P1 and P4. Both reduced BasketClose count and increased HardStop count compared with P0. P0 kept the best profit structure.

## Final Decision

- Do not adopt P1.
- Do not adopt P2.
- Do not adopt P3.
- Do not adopt P4.
- Keep P0_A2_BASE_D4 BasketClose settings for now.

BasketClose should not be stretched at this stage. The existing quick BasketClose structure is important for the medium-period profit profile.

## Interpretation

The S2-only improvement was not robust. Extending BasketClose slightly increased average BasketClose profit in S2, but over the full May period it caused fewer completed basket closes and more HardStops. That means the EA currently depends on taking smaller basket profits before reversals, not holding for larger basket targets.

## D4 Speed Stability

D4 fast compare mode was stable during this run:

- S2 tests: about 62-64 seconds each
- Medium tests: about 462-504 seconds each

This is fast enough to continue profit-improvement testing without diagnostic trace mode.
