# Moving Average Pullback Trend Follower MT4

Trend-following EA that enters on pullbacks to a moving average, using fully closed bars and trailing stops.

Canonical: https://prismaticalgos.com/compendium/algo/7602-moving-average-pullback-trend-follower-mt4
Record ID: 7602
Catalog rank: 100 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.mql5.com/en/market/product/195268
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

Claim warnings: HIGH WIN RATE: claimed 87.9%. Attainable, but nearly always by banking many small wins against rare large losses - check the payoff ratio and the worst single trade before trusting it.; HIGH PROFIT FACTOR: claimed 4.8. Treat as an in-sample or curve-fitted figure until reproduced out of sample.; THIN SAMPLE: 33 trades - below the ~100 needed before a win rate or profit factor carries much information.
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: USDJPY, EURJPY
- timeframes: H4
- sessions: Skip entries on bars that close at NY 4:00 and 20:00
- market_regime: trending

## Indicators

- Moving Average: {"period": 200}; applied to: close

## Recorded long-entry rules

- MA on the most recently closed bar is rising over a configurable lookback period
- That closed bar's body stays above the MA and its low touched the MA
- Entry at market immediately after the bar closes

## Recorded short-entry rules

- Mirror image of the long entry conditions

## Recorded exit rules

- Trailing stop. Initial stop loss (StopPips) is set on every entry. Once floating profit reaches TriggerPips, the stop trails the price at a distance of TrailPips and only moves in the favorable direction. There is no fixed take-profit.

## Recorded filters

- Session filter skips entries on bars that close at NY 4:00 and 20:00
- Gap guard (MaxGapPips) avoids unfavorable entries after large price gaps

## Risk controls

- Stop loss: Initial stop loss (StopPips) is set on every entry
- Take profit: No fixed take-profit, trailing stop only
- Position sizing: Lot size is automatically normalized to your broker's min/max lot and lot step
