Home / Coding / Expert Advisors / Momentum MA Trend

Momentum MA Trend

Directional bias, average slope and crossover agree, with the Momentum indicator as confirmation.

DRF_Momentum_MA_Trend_EA · version 1.01 · Strategy · MetaTrader 5

€15   Buy Momentum MA Trend →

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

Trend followers who want a defined volatility-based exit.

What it does

A trend-confluence entry: +DI/-DI bias, price on the correct side of a slower average, and a fast and slow average crossover as the trigger, confirmed by the Momentum indicator against its neutral 100 level.

How it works

  1. Bias: +DI versus -DI and price versus a slower average.
  2. Trigger: fast and slow average crossover.
  3. Confirmation: Momentum above or below 100.
  4. Exit: the standard deviation contracting below its own average, meaning the move has run out of volatility; otherwise the ATR stop or target.

What is included

What is not included

What you need

How to try it

  1. Attach it to a demo chart. Leave every input at its default except the lot size: set 0.10 lots while you learn what it does.
  2. Illustration of the distances (not a forecast): if the ATR were 10.0 price units, a stop of 2.0 x ATR would sit 20.0 price units from the entry and a target of 3.2 x ATR would sit 32.0 price units away, a reward of 1.60 times the risk.
  3. Watch the Experts and Journal tabs for a day or two. The EA writes a reason whenever it skips an entry (spread, session, news or licence), which tells you which filter to adjust.
  4. Only after you have seen it behave as expected on demo should you consider a small live account.

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 Momentum MA Trend →

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))
Your DRF Key. Type it on the Inputs tab; it is checked against the DRF licence server when the EA starts.

Strategy - Momentum MA Trend

InpDIPeriod (default: 14)
Period of the +DI / -DI directional indicators.
InpSlopeMAPeriod (default: 50)
Period of the longer moving average whose slope gives the background trend.
InpFastMAPeriod (default: 8)
Period of the fast moving average.
InpSlowMAPeriod (default: 21)
Period of the slow moving average.
InpMomentumPeriod (default: 14)
Momentum indicator period (100 is the neutral line).
InpStdDevPeriod (default: 20)
Period of the standard-deviation (volatility) reading.
InpStdDevAvgBars (default: 10)
Number of bars over which the standard deviation is averaged for comparison.

Risk

InpLots (default: 0.10)
Fixed order size in lots.
InpATRPeriod (default: 14)
Number of bars in the Average True Range (ATR) that sizes the stop and the target.
InpSLAtrMultiple (default: 2.0)
Stop-loss distance as a multiple of the ATR. A larger number gives the trade more room and risks more per lot.
InpTPAtrMultiple (default: 3.2)
Target distance as a multiple of the ATR.
InpMagicNumber (default: 771033)
The number the EA stamps on its own orders so it can tell them from other EAs' orders. Give each EA on the same account a different number.

Filters

InpMaxSpreadPoints (default: 350)
Largest spread, in points, at which a new entry is still allowed. A wider spread skips the entry.
InpSessionStartHour (default: 7)
First hour of the day (server time) in which new entries are allowed.
InpSessionEndHour (default: 21)
Hour of the day (server time) at which new entries stop.
InpUseNewsFilter (default: true)
Pause new entries around scheduled news, using the MetaTrader 5 economic calendar.
InpNewsMinutesBefore (default: 20)
How many minutes before a qualifying news release new entries are blocked.
InpNewsMinutesAfter (default: 20)
How many minutes after a qualifying news release new entries stay blocked.
InpNewsMinImportance (default: CALENDAR_IMPORTANCE_HIGH)
The lowest calendar importance that counts as news for the filter (high, medium or low).

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

Alligator Momentum Cross

An awake Alligator, confirmed twice by the Accelerator Oscillator and Momentum, closed on a moving-average cross.

Open →

MACD Momentum Trend

MACD direction plus ADX strength, triggered by a candle colour, closed on a pin bar or Alligator Teeth.

Open →

Trend Confluence

Alligator and average crossover agree, triggered by the CCI crossing zero, closed when ADX empties.

Open →

Frequently Asked Questions

What is Momentum's neutral level?
100: above it shows upward momentum, below it downward.
Why exit on contracting volatility?
A move with no volatility left is unlikely to go further.
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.