# MD Scalper

A fast scalping Expert Advisor using short moving averages and pending stop orders with trailing stop.

Canonical: https://prismaticalgos.com/compendium/algo/7247-md-scalper
Record ID: 7247
Catalog rank: 677 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Scalping & Short-Horizon (D)
Source: https://www.mql5.com/en/code/77921
Evidence label (unverified): backtest_shown

## 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

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
- timeframes: M1
- sessions: Not specified
- market_regime: trending|reversal

## Indicators

- MA: {"method": "Smoothed", "period": 3}; applied to: high, low

## Recorded long-entry rules

- Bid breaks above the MA(High)
- current bar's range exceeds Filter

## Recorded short-entry rules

- Bid breaks below the MA(Low)
- current bar's range exceeds Filter

## Recorded exit rules

- Trailing stop after fill, Distance points away from price

## Recorded filters

- Spread filter
- Max trades per day
- Daily loss limit
- Cooldown after a close
- Friday cutoff
- Time filter across midnight

## Risk controls

- Stop loss: AutoStopLevel
- Take profit: Initial SL in points (0 = none)
- Position sizing: Fixed lots, % of balance risked at the stop loss, or leverage-based formula
