# BiDirectionalHedgingGrid

Expert Advisor for XAUUSD with a bi-directional hedging grid, soft-martingale, and risk layer

Canonical: https://prismaticalgos.com/compendium/algo/11646-bidirectionalhedginggrid
Record ID: 11646
Catalog rank: 385 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Grid, Martingale & Averaging (C)
Source: https://github.com/Yoshinarium/BiDirectionalHedgingGrid
Evidence label (unverified): source_code

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

Signal warnings: VAGUE ENTRY: every entry rule is a placeholder phrase rather than a testable condition (no comparison, threshold or number anywhere). The rules were not actually recovered from the source.
Claim warnings: UNBOUNDED LOSS RISK: position sizing recovers losses by adding or multiplying size, and no stop loss is specified. The losing tail of such a system is limited only by account equity.

## Recorded profile

- symbols: XAUUSD
- timeframes: Not specified
- sessions: Not specified
- market_regime: any

## Indicators

No indicator stack recorded.

## Recorded long-entry rules

- Not specified.

## Recorded short-entry rules

- Not specified.

## Recorded exit rules

- najnowsza pozycja koszyka trafia w TP → nowa pozycja w tym samym kierunku
- cena oddala się od ostatniego otwarcia o ≥ GetGridStep() → nowa pozycja, lot = ostatni lot * LotMultiplier
- suma floating P&L ≥ BasketProfitTarget_USD → zamknięcie całego koszyka i od razu nowa pozycja startowa

## Recorded filters

- spread ≤ MaxSpreadPoints
- daily drawdown ≤ 4.5%
- midnight pause 23:55–00:15
- weekend zamyka wszystko i usypia bota do poniedziałku
- tylko swoje magic numbers zamykają się po restarcie

## Risk controls

- Stop loss: n/a
- Take profit: n/a
- Position sizing: lot = ostatni lot * LotMultiplier, zaokrąglone w górę o VOLUME_STEP
