Momentum
Free Momentum indicator for MT5 with a signal line, 100-line cross and divergence arrows, and a panel. Lab test: 0 of 1181 signals repainted.

- Repainted
- 0 / 1,181
- Signals / week
- —
- Tested on
- EURUSD M15
- Tested
- 2026-10-09
Overview
Momentum for MT5 draws the Momentum oscillator in its own subwindow under the price chart. It adds a signal line, arrows when Momentum crosses the 100 line, divergence arrows with trendlines on the price chart, and a summary panel. In the Lab's repaint test on EURUSD M15, 0 of 1181 logged signals changed after they printed. It suits traders who use momentum to confirm a trade, not to find one.
What the indicator draws
A momentum oscillator measures how far price has moved over a fixed number of bars. This version uses the ratio form: a reading of 100 means the close equals the close N bars ago, above 100 means price is higher than it was N bars ago, and below 100 means it is lower.
- Momentum line: 100 × Close / Close N bars ago, where N is
MomentumPeriod. The line is coloured in four steps: strong bullish, mild bullish, mild bearish and strong bearish. - Signal Line: a simple moving average of the last
SignalPeriodMomentum values. - Centerline Cross Up / Down arrows in the indicator window. They are checked on closed bars only.
- Bullish / Bearish Divergence arrows in the indicator window, plus a divergence line on the price chart. The line joins the two price swings that were compared.
- Panel: a summary of the last signal, the current values and the higher-timeframe reading.
How the Lab tested it
The Lab ran a repaint test on EURUSD M15 from 2026-07-09 to 2026-10-08, using real ticks from Raw Trading Ltd. The test logged 1181 signals, and 0 of them changed afterwards. None moved, disappeared or appeared later in history. The maximum arrow delay was 0 bars, so no arrow showed up later than the bar it is drawn on. The 0-bar delay means each arrow appeared on the bar where the Lab logged it. A divergence signal still comes PivotLookback bars (3 at the default) after the swing it refers to, because the swing has to be confirmed first.
What this means for you: on the tested EURUSD M15 data, the arrows you see when you scroll back through history are the arrows you would have seen live.
What the test does not tell you: the Lab measured whether signals stay fixed, not what price did after them. There is no win rate or follow-through figure for this tool. A signal that does not repaint can still be a losing signal. Only one symbol and one timeframe were tested.
Tested version: 1.00 (143.7 KB file), tested 2026-10-09 on MT5 build 6230.
How it works
- 1Compares the current close with the close a number of bars ago, as a ratio centred on 100.
Momentum = 100 x Close / Close N bars agoInputs: MomentumPeriod - 2Colours by deviation from 100 and smooths with a simple moving average to get a signal line.
Signal = average of last SignalPeriod Momentum values, strong if abs(Momentum - 100) >= StrongDeviationPercentInputs: SignalPeriod, StrongDeviationPercent - 3Marks an arrow when momentum crosses the 100 centre line, and notes crosses of momentum through its signal line.
Up: Momentum_prev <= 100 and Momentum > 100Inputs: ShowChartArrows - 4Detects divergence between price swing highs or lows and momentum at the same swings, then draws lines between them.
Bullish: lower price low with higher momentumInputs: EnableDivergence, PivotLookback, DivergenceMaxBars, ShowDivergenceLines - 5Shows the momentum reading on a higher timeframe, picking the next timeframe up when the chosen one is not higher.Inputs: EnableHigherTF, HigherTimeframe
Specifications
- Platform
- MetaTrader 5
- Version
- 1.00
- Type
- Indicator
- Window
- Separate window
- Draws
- 2 lines, 4 arrows, 1 zone, 1 panel
- Alerts
- popup, push, sound
- Repaints
- No (0 of 1,181 signals changed)
- Inputs
- 18
- Tested on
- MT5 build 6230 · 2026-10-09
Repaint test
No repaint detected. In a 9 Jul 2026 – 8 Oct 2026 test on EURUSD M15 (Raw Trading Ltd real ticks), 1,181 signals were logged at bar close and re-read at the end of the test: 0 changed. Arrows print on the bar that closes the signal, with no delay.
IndicatorFree — tested 2026-10-09 · MT5 build 6230 · Raw Trading Ltd real ticks. Results come from historical data, not live trading, and do not guarantee future results.
What it draws
- A line (Momentum) from buffer 0.
- A line (Signal Line) from buffer 2.
- Arrows (Centerline Cross Up) from buffer 3, drawn on the closed bar.
- Arrows (Centerline Cross Down) from buffer 4, drawn on the closed bar.
- Arrows (Bullish Divergence) from buffer 5, drawn on the closed bar.
- Arrows (Bearish Divergence) from buffer 6, drawn on the closed bar.
- Rectangles (Divergence Lines) drawn as chart objects, not buffers — they are not readable by iCustom() in an EA.
- An on-chart panel (Momentum); values shown in the panel are not exposed as buffers.
Inputs
| Input | Default | What it does |
|---|---|---|
| MomentumPeriod | 14 | Bars back N: Momentum = 100 * Close / Close N bars ago (2-100) |
| SignalPeriod | 6 | SMA period of the signal line drawn over Momentum (2-50) |
| StrongDeviationPercent | 1 | Distance from 100 (in points) that colors Momentum as strong (0.1-10.0) |
| EnableDivergence | true | Detect bullish / bearish divergence between price swings and Momentum |
| PivotLookback | 3 | Bars on each side that confirm a swing high / low; the divergence prints this many bars after the swing (2-10) |
| DivergenceMaxBars | 60 | Maximum bars between two consecutive swings to compare them (20-200) |
| EnableHigherTF | true | Show Momentum of a higher timeframe on the panel |
| HigherTimeframe | H4 | Higher timeframe; if not above the chart timeframe, the next standard timeframe is used |
| ShowChartArrows | true | Draw centerline cross and divergence arrows in the indicator window |
| ShowDivergenceLines | true | Draw a trendline joining the two divergence swings on the price chart |
| EnableAlertPopup | true | Popup alert on a centerline cross, signal line cross or divergence |
| EnableAlertPush | false | Push notification on a centerline cross, signal line cross or divergence |
| EnableAlertSound | false | Play a sound on a centerline cross, signal line cross or divergence |
| AlertCooldownBars | 5 | Minimum bars between two alerts of the same type (1-50) |
| PanelScale | 1 | Panel size multiplier (screen DPI is applied automatically) |
| PanelCorner | Left Upper | Chart corner for the panel |
| Theme | Dark | Chart color theme |
| RestoreTheme | true | Restore the original chart colors when the indicator is removed |
How to read it
Install in one line
Copy the .ex5 file into MQL5/Indicators (File > Open Data Folder), refresh the Navigator and drag Momentum onto a chart.
Reading the Momentum line and its colours
The line's position against 100 tells you the direction of the move over the last MomentumPeriod bars (14 by default). The colour tells you how strong the move is. Momentum counts as strong when it is at least StrongDeviationPercent points away from 100. With the default of 1, that means at or above 101, or at or below 99. Between 99 and 101 the line counts as mild.
Common misread: Momentum above 100 but falling is not a sell signal. Price is still higher than it was 14 bars ago. The advance is only slowing down. Wait for an actual cross before you act.
The picture below shows the typical shape of a full swing: Momentum climbs through 100, reaches the strong zone, fades, and crosses back down.
Centerline Cross arrows
- Cross Up: on the closed bar Momentum is above 100, and on the previous closed bar it was at or below 100.
- Cross Down: on the closed bar Momentum is below 100, and on the previous closed bar it was at or above 100.
The arrow appears only after the bar closes, so it never shows on the bar that is still forming. In a flat market Momentum hovers around 100 and the arrows alternate. If you see an up arrow and a down arrow within a few bars of each other, the market is choppy and both arrows are noise.
Signal line crosses
When Momentum crosses above its signal line, momentum is rising faster than its recent average. A cross below means it is fading. These crosses do not draw arrows. They appear on the panel and can trigger an alert.
Divergence arrows and lines
A Bullish Divergence means price made a lower swing low but Momentum made a higher one, so the selling is weakening. A Bearish Divergence is the reverse at swing highs: a higher price high with lower Momentum. Here is how one bullish signal forms:
- 1Swing low formsLowest low with PivotLookback (3) bars on each side
- 2Swing confirmedOnly after PivotLookback bars have closed to its right
- 3Price checkNew low is below the previous swing low, which is at most DivergenceMaxBars (60) bars older
- 4Momentum checkMomentum at the new low is higher than at the previous low
- 5OutputArrow in the Momentum window, trendline on the price chart, alert if enabled
Common misread: the divergence arrow prints PivotLookback bars after the swing low or high, which is 3 bars at the default. This is how the swing gets confirmed, not a late redraw. By the time the arrow appears, price has had PivotLookback bars to move away from the extreme. Each new divergence line replaces the previous one of the same type. Switching ShowDivergenceLines off removes the lines.
The panel
The panel shows:
- the last centerline cross or divergence, with its strength
- the current Momentum and signal line values
- the last centerline cross and the last signal line cross
- the last divergence
- the Momentum reading on the higher timeframe
Use PanelCorner to move it and PanelScale to resize it. Screen DPI is applied automatically.
Inputs that change the signals
| Input | Default | Range | What changing it does |
|---|---|---|---|
MomentumPeriod | 14 | 2-100 | Lower: faster line and more centerline crosses. Higher: smoother line and fewer, later crosses. |
SignalPeriod | 6 | 2-50 | Lower: the signal line hugs Momentum and crosses it more often. |
StrongDeviationPercent | 1 | 0.1-10.0 | Sets the distance from 100 at which the line turns to the strong colour. Does not change when arrows print. |
PivotLookback | 3 | 2-10 | Higher: fewer, more important swings, but the divergence prints later. |
DivergenceMaxBars | 60 | 20-200 | The largest gap between two swings that can still be compared. |
AlertCooldownBars | 5 | 1-50 | Minimum number of bars between two alerts of the same type. |
On/off switches: EnableDivergence turns divergence detection on or off. ShowChartArrows hides or shows the arrows, and ShowDivergenceLines hides or shows the trendlines. EnableHigherTF adds or removes the higher-timeframe reading on the panel.
Alerts
Alerts fire on three events: a centerline cross, a signal line cross and a divergence. Popup alerts (the MT5 alert window) are on by default. Push notifications (EnableAlertPush) and sound (EnableAlertSound) are off. AlertCooldownBars limits how often alerts fire. It does not stop arrows from being drawn.
A decision rule to start with
These rules are a starting point. The Lab has not tested them.
- Take a Centerline Cross Up only when Momentum is also above its signal line and the panel's higher-timeframe Momentum is above 100. Skip it if a Cross Down printed within the last 5 bars (5 is only an example and has no link to
AlertCooldownBars). The reverse applies to a Cross Down. - Treat a divergence as a warning, not an entry. Act only when the next centerline cross or signal line cross goes in the divergence's direction.
Installation
- 1Download MomentumIndicator.ex5 from the button above (Google Drive).
- 2In MetaTrader 5: File → Open Data Folder → MQL5 → Indicators. Copy MomentumIndicator.ex5 there.
- 3Restart MT5 or right-click Indicators in Navigator → Refresh.
- 4Drag Momentum onto a chart. For push alerts, enable "Allow push notifications" under Tools → Options → Notifications.
- Tested on MT5 build 6230.
Key terms and guides
- Centerline cross
- A centerline cross happens when an oscillator such as RSI, Stochastic, CCI or MACD moves from one side of its middle value (50 or 0) to the other. It signals that momentum has switched from bearish to bullish, or the reverse.
- Bearish divergence
- Bearish divergence is when price makes a higher high but a momentum oscillator such as RSI or MACD makes a lower high. It warns that buying pressure is fading before price turns down.
- Momentum
- Momentum is how fast price is moving in one direction. The Momentum indicator compares the latest close with the close a set number of bars ago, so it shows whether a move is speeding up or slowing down.
- Simple moving average
- A simple moving average (SMA) is the average closing price of the last n candles, drawn as one line on the chart. Traders use it to read trend direction, time pullback entries and build crossover signals.
- Every tick based on real ticks
- Every tick based on real ticks is the MT5 Strategy Tester mode that replays the actual bid and ask ticks your broker recorded, with the real changing spread, instead of ticks the tester invents from 1-minute bars.
- Signal line
- A signal line is a moving average of an indicator's own line, such as the 9-period average of the MACD line. When the indicator crosses above or below it, traders read it as a change in momentum.
More on this subject: Oscillators & momentum guide, terms and tools
User reviews
No reviews yet. Members who download the tool can review it here.
Sign in and download the tool to review it.
Build a checklist with it
Momentum does one job on the chart: entry signal. Put it on the same chart as the tools below and the IndicatorFree panels merge into one checklist card, ordered trend, zone, signal, risk.
- Trend / contextDMIMomentum tells you when; this tells you which way the market leans, so you can skip signals against it.
- Zone / levelLiquidity MapShows the zones and levels, so you can see whether a signal from Momentum fires at a level worth trading.
The Lab has not tested these combinations. Each tool is tested on its own; the card only lines up what each one says. Free members get 2 new tools a day. If one has to wait until tomorrow, install BlackBox to raise the limit to 5 a day (20 on a live account).
FAQ
Does Momentum repaint?
No repaint detected. In a 9 Jul 2026 – 8 Oct 2026 test on EURUSD M15 (Raw Trading Ltd real ticks), 1,181 signals were logged at bar close and re-read at the end of the test: 0 changed. Arrows print on the bar that closes the signal, with no delay.
Can I use Momentum in an EA?
Yes. Read buffer 3 (Centerline Cross Up) with iCustom() on bar 1 — the last closed bar.
Why can’t my EA read the zones?
Zones and the panel are chart objects, not indicator buffers, so iCustom() does not return them.
How do I get alerts on my phone?
Enter your MetaQuotes ID under Tools → Options → Notifications, tick "Enable push notifications", and keep the push alert input on.
Why does it open in a separate window?
It plots values on their own scale, so MT5 draws it below the price chart.
Does it work on other pairs?
Tested on EURUSD only; other symbols not tested.
Does the Momentum indicator work on gold, indices or crypto in MT5?
Yes. The formula is a price ratio, so it calculates on any symbol. The Lab tested only one pair, though, so other markets are untested. Check whether the default StrongDeviationPercent of 1 still separates strong moves from mild ones on your symbol.
Why is there no arrow when Momentum crosses its signal line?
Signal line crosses are reported on the panel and can trigger an alert, but they are not drawn as arrows. Arrows are only drawn for centerline crosses and divergences.
Will it change my chart colours?
Yes, while it is attached. The Theme input applies a chart colour theme (Dark by default). With RestoreTheme left on, your original colours come back when you remove the indicator.
What does the panel show if HigherTimeframe is not above my chart timeframe?
It switches to the next standard timeframe above your chart. For example, on an H4 chart with the default H4 setting, the panel reads a higher timeframe instead. Set EnableHigherTF to false to remove the reading.
Can I get Momentum alerts on my phone?
Yes. Set EnableAlertPush to true. Your desktop MT5 terminal must also be linked to the MT5 mobile app with your MetaQuotes ID in the terminal's notification settings. Push alerts fire on the same events as popups: centerline crosses, signal line crosses and divergences.
Changelog
- 1.00Initial release: classic Momentum oscillator (100 x Close / Close N bars ago) with a smoothed SMA signal line and crossover detection, 4-step strength coloring (Strong/Mild Bullish/Bearish), automatic bullish/bearish. · 2026-10-09
Final verdict
Verdict: a dependable momentum trigger, not a trading system
The tool does what a momentum trigger needs to do. In the Lab's EURUSD M15 test, every one of the 1181 logged signals stayed where it printed. It also handles three jobs in one window: centerline crosses, divergence detection with lines on the price chart, and a higher-timeframe check on the panel. The alert cooldown keeps a choppy market from flooding you with popups.
The limits are just as clear:
- Do not use the arrows on their own.
- Readings depend on the market. Momentum is a price ratio, so the same Momentum value does not mean the same thing on every symbol or timeframe. The strong threshold of 1 suits some markets better than others.
- Weak in ranges. When price goes sideways, Momentum stays near 100 and the centerline arrows flip back and forth.
- Divergence is not a reversal. Several divergences can print in a row while the trend keeps going.
The picture below sums up when the tool earns its place on your chart and when it does not:
- –You want a confirmation trigger that stays fixed after the bar closes
- –You trade divergence but miss it in real time
- –You want a higher-timeframe momentum check without a second chart
- –Price is trending or breaking out of a range
- –You need a tested win rate before trading a signal
- –Price is flat and Momentum sits near 100
- –You want to enter at the exact swing low or high
- –You want arrows on signal line crosses
Settings to start with
Start with the defaults. Every change below is an untested starting point, not tested by the Lab. Compare each one with the default on your own chart before relying on it.
- M5 charts: try
PivotLookback5 so small wiggles stop counting as swings, andAlertCooldownBars10 to cut repeated alerts. - Line rarely turns strong: on low timeframes of quiet pairs, Momentum may seldom reach 101 or 99. Watch the panel's Momentum value for a session, then try
StrongDeviationPercent0.3 and see whether the colours start to separate strong moves from mild ones. - Higher-timeframe check: pick a
HigherTimeframea few steps above your chart, for example H1 on an M15 chart, so the panel filters for the bigger trend instead of the same one. - Fewer, slower crosses: raise
MomentumPeriodto 21 when the default arrows flip too often for your style.





















