Skip to content
All library documents

Breakout Scalping with EMA Trend, ATR, RSI, and Price Filters

Article MQL5 code base

Summary

This MetaTrader 5 Expert Advisor description outlines a breakout scalping system that trades only when a set of filters align. It uses fast and slow exponential moving averages to define direction, an ATR-based threshold for trend strength, price location relative to the averages, and a close beyond an N-bar high or low with an ATR buffer. RSI ranges and the latest close’s direction add further confirmation; an optional higher-timeframe EMA check can also be enabled.

The system includes fixed stops and targets, percentage-based sizing, a one-trade limit, drawdown and daily-trade controls, breakeven and trailing stops, and partial exits. Session, spread, news, and Friday filters constrain entries. The document describes a phased parameter-optimization process and reports one preset’s stated test statistics, but gives no independent validation or detailed test assumptions. Results may depend on instrument, broker, data, and chosen parameters; the listed configurations do not establish future performance.

Key ideas

  • Entries require agreement among trend, trend-strength, price-position, breakout, RSI, and momentum checks.
  • An optional higher-timeframe EMA filter can confirm trade direction.
  • Stops, position sizing, trade limits, and staged exits provide the described risk controls.
  • Session, spread, news, and Friday filters restrict when the system can enter.
  • The document reports preset optimization figures but does not establish out-of-sample performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.