Home / Coding / Expert Advisors / 5 Step Scalper

5 Step Scalper

An M5 pullback scalper on a five-step ladder: H1 trend, M5 average alignment, pending stop entry, 2R target and partial close.

DRF_5_Step_Scalper_EA · version 2.01 · Strategy · MetaTrader 5

€15   Buy 5 Step Scalper →

Or get every Expert Advisor, for life, for €150: see the bundle.

Risk. Trading carries a high level of risk and you can lose more than you expected. No result is promised. Read the Risk Disclosure.

Test it on a demo account first. When everything works as you expect, use it on a real account.

It works on any symbol: point-based inputs scale to the symbol you attach it to.

Who it suits

Scalpers who like a clearly staged setup with built-in partial exits.

What it does

A multi-step scalper built on moving-average alignment. The H1 trend must be consistent over recent bars and the M5 fast, medium and slow averages must be stacked in order; it then places a pending stop order beyond price with a structural stop and a target of twice the risk.

How it works

  1. Trend filter on H1: the 8 and 21 exponential averages in order, with price on the right side of the fast one for the last 5 bars.
  2. Trade filter on M5: the 8, 13 and 21 averages aligned, with price pulling back to the fast or medium average.
  3. Entry: a buy stop or sell stop placed an ATR-based distance beyond price, with a stop loss at 1.2 ATR and a target at 2 times the risk; pending orders expire after 5 bars.
  4. Management: partial close, break-even and a trailing stop afterwards.
  5. Protections: an ATR range filter, a news filter with long blackout windows, a spread cap, a daily loss limit (5 percent by default) and a cap of 3 open trades.

What is included

What is not included

What you need

How to try it

  1. Attach it to a demo chart on the timeframe you want to test.
  2. Set a small lot size (0.01) and leave the other inputs at their defaults.
  3. Read the Experts and Journal tabs and the on-chart panel for the reasons it gives when it skips an entry.
  4. Move to a small live account only after you have seen it behave as expected on demo.

Results

No results are published for this Expert Advisor, and none are implied. Test it on a demo account first. Past results never promise future ones.

Buy once, keep it for life

€15   Buy 5 Step Scalper →

Manual: every setting in plain language

Enter your DRF Key in the key input. The group "Any-asset scaling" controls how point inputs follow the symbol.

Donaldson R F Licence

InpLicenceKey (default: (empty))
Licence key

General

InpMagic (default: 503001)
Magic number
InpComment (default: DRF 5 Step)
Order comment
InpDeviation (default: 10)
Max slippage (points)
InpExpiration (default: D'2035.01.01 00:00')
EA hard expiry (local safety net)

Trend Filter

InpTrendTF (default: PERIOD_H1)
Trend timeframe
InpTrendFastPer (default: 8)
Fast MA period
InpTrendFastMeth (default: MODE_EMA)
Fast MA method
InpTrendSlowPer (default: 21)
Slow MA period
InpTrendSlowMeth (default: MODE_EMA)
Slow MA method
InpTrendLookback (default: 5)
Bars checked for trend consistency

Trade Filter

InpTradeTF (default: PERIOD_M5)
Trade timeframe
InpTradeFastPer (default: 8)
Fast MA period
InpTradeMedPer (default: 13)
Medium MA period
InpTradeSlowPer (default: 21)
Slow MA period
InpTradeMAMeth (default: MODE_EMA)
MA method (all three)
InpTradeLookback (default: 5)
Bars checked for alignment
InpPendingExpiryBars (default: 5)
Pending order expiry (bars)

Entry / Stop Loss

InpOffsetMode (default: OFFSET_ATR)
Entry/SL calculation mode
InpEntryPoints (default: 30)
Entry offset, points (Points mode)
InpSLPoints (default: 30)
Stop loss offset, points (Points mode)
InpBEPoints (default: 10)
Break-even offset after partial close
InpRRTarget (default: 2.0)
Target, multiple of risk

ATR / Volatility

InpATRTF (default: PERIOD_M5)
ATR timeframe
InpATRPeriod (default: 14)
ATR period
InpEntryATRmult (default: 0.25)
Entry offset, x ATR
InpSLATRmult (default: 1.20)
Stop loss offset, x ATR
InpUseVolFilter (default: true)
Enable volatility filter
InpATRMinPoints (default: 80)
Minimum ATR, points (avoid dead market)
InpATRMaxPoints (default: 600)
Maximum ATR, points (avoid news spikes)

Session Filter

InpUseSession (default: false)
Enable session filter
InpSessionStartHour (default: 8)
Session start hour (server time)
InpSessionEndHour (default: 21)
Session end hour (server time)

News Filter

InpUseNews (default: true)
Enable news filter
InpNewsSource (default: NEWS_NATIVE)
News source
InpNewsHigh (default: true)
High impact
InpNewsHighBefore (default: 120)
Pause before, minutes
InpNewsHighAfter (default: 120)
Pause after, minutes
InpNewsMedium (default: true)
Medium impact
InpNewsMediumBefore (default: 60)
Pause before, minutes
InpNewsMediumAfter (default: 60)
Pause after, minutes
InpNewsLow (default: false)
Low impact
InpNewsLowBefore (default: 15)
Pause before, minutes
InpNewsLowAfter (default: 15)
Pause after, minutes

Spread Filter

InpSpreadMaxPoints (default: 300)
Maximum spread, points (0 = off)

Trade Management

InpLots (default: 0.01)
Fixed lots (used when Money Management is off)
InpUseMM (default: false)
Use money management
InpRiskPercent (default: 1.0)
Risk per trade, % of balance
InpUseTrailing (default: true)
Trail stop loss after break-even

Risk Controls

InpMaxDailyLossPercent (default: 5)
Max daily loss, % of day's starting balance (0 = off)
InpMaxOpenTrades (default: 3)
Max simultaneous open trades (0 = unlimited)
InpCloseOnDailyLoss (default: false)
Force-close all positions when daily loss limit is hit

Dashboard / Alerts

InpShowDashboard (default: true)
Show on-chart dashboard
InpEnableAlerts (default: true)
Popup alert on trade events
InpEnableNotifications (default: false)
Push notification on trade events
InpEnableEmail (default: false)
Email on trade events

Any-asset scaling

InpAutoScalePoints (default: true)
Scale point-based inputs to this symbol's volatility (default values are tuned for a ~3000-point daily range) Leave on unless you know the symbol is much calmer or wilder than the usual daily range.

Related Expert Advisors

Breakout Scalper

An M1 scalper for any symbol: a Donchian channel breakout with a volatility expansion filter and H1 trend context.

Open →

EMA RSI Scalper

An M1 the market scalper: EMA 14 and 50 trend, a pull-back to the average and an RSI trigger, in a London-New York window.

Open →

Frequently Asked Questions

Does it use market orders?
No. It places pending buy stop or sell stop orders and cancels them after the expiry set in bars.
How big is the default lot?
0.01 fixed; percent-risk sizing is available.
Why such long news windows?
High-impact news pauses entries for 120 minutes before and after by default, because the market can move sharply around releases.
Do I need a DRF Key to run it?
Yes. The file is free to download, but the EA checks a DRF Key against the licence server when it starts and then every hour. Plans and prices are on the DRF Key page.
Which provider and account should I use?
Any MetaTrader 5 account that offers the symbol. Test on a demo account first; the source does not tie the EA to one provider.
Does it guarantee a result?
No. Trading carries risk and an EA can lose money. The project holds no published performance figures for this EA, so none are shown.
Which symbols does it work on?
Any symbol your provider offers. Inputs that are measured in points scale automatically to the symbol's usual daily range, so the same preset behaves sensibly on a forex pair, an index or Bitcoin. Always test on a demo account first.
Do I need a key to run it?
Yes. After you buy, you receive a DRF Key. It works for life and on up to 5 internet addresses at the same time.
Is there a subscription?
No. You pay once and keep it for life, with free updates.
Does it promise a result?
No. Read the Risk Disclosure. Test on a demo account first; when everything works as you expect, use it on a real account.

Get Expert Advisor and coding news

New Expert Advisors, updates, price changes and videos, by e-mail. A short e-mail only when something is really new. One click to unsubscribe.

You get one e-mail to confirm first. By subscribing you agree that I use your address to send this newsletter. See the Privacy Policy.

Protected by Google reCAPTCHA. The Google Privacy Policy and Terms of Service apply.

Running into a technical issue or something that doesn't work right on this page? Please let us know straight away via our Contact page. That is how we find out what is broken and get it fixed.