# Semi-HFT Grid Bot

A two-sided martingale grid system with seed, bump, and martingale phases, and basket take profit.

Canonical: https://prismaticalgos.com/compendium/algo/6565-semi-hft-grid-bot
Record ID: 6565
Catalog rank: 45 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Scalping & Short-Horizon (D)
Source: https://www.mql5.com/en/code/77546
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

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.
Build warnings: MT4_ONLY: the captured source is MQL4 / written for MetaTrader 4. It needs porting (order functions, indicator handles) before it runs on MT5.

## Recorded profile

- symbols: XAUUSD, NAS100, US100, USTEC-style index CFDs
- timeframes: Any (tick-driven)
- 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

- Basket management: If total floating profit + swap + commission reaches BasketTP_USD, close all positions and cancel pending orders. If BasketSL_USD is set, close all positions on the loss side as an emergency stop.

## Recorded filters

- BasketSL_USD emergency stop

## Risk controls

- Stop loss: null
- Take profit: null
- Position sizing: Lot sizes double as the grid extends against an open side. Default lot = RecoveryBumpLot × MartingaleMultiplier^(level−2).
