Skip to content
MT5MT4soonTradingViewsooncTradersoonNinjaTradersoonPythonsoon
IndicatorTrend indicatorsMT5No repaint

Moving Average Flow

Free MT5 moving average indicator with green/red fill, closed-bar cross arrows, a slope panel and alerts. Lab repaint test: 0 of 812 signals changed.

Add to a kit
CompareRequest a variant
Embed
Moving Average Flow on XAUUSD M15, MT5 chart with default settings: moving average, bullish cross, bearish cross
Screenshots from a real MT5 chart · 9 · scroll sideways
Moving Average Flow inputs window in MetaTrader 5 with the default settings
Moving Average Flow inputs window in MetaTrader 5 with the default settings
Moving Average Flow Bullish Cross arrow on XAUUSD M15, 28 Oct 2026 22:00
Moving Average Flow Bullish Cross arrow on XAUUSD M15, 28 Oct 2026 22:00
Moving Average Flow Bullish Cross arrow on XAUUSD M15, 28 Oct 2026 10:30
Moving Average Flow Bullish Cross arrow on XAUUSD M15, 28 Oct 2026 10:30
Moving Average Flow Bearish Cross arrow on XAUUSD M15, 27 Oct 2026 23:15
Moving Average Flow Bearish Cross arrow on XAUUSD M15, 27 Oct 2026 23:15
Moving Average Flow on XAUUSD H4 (another timeframe)
Moving Average Flow on XAUUSD H4 (another timeframe)
Moving Average Flow on XAUUSD M5 (another timeframe)
Moving Average Flow on XAUUSD M5 (another timeframe)
Moving Average Flow on-chart panel: last signal and status
Moving Average Flow on-chart panel: last signal and status
Moving Average Flow on EURUSD M15
Moving Average Flow on EURUSD M15
Moving Average Flow zoomed out on XAUUSD M15: several weeks of history
Moving Average Flow zoomed out on XAUUSD M15: several weeks of history
Test verdictPassed
Repainted
0 / 812
Signals / week
≈ 61.8
Tested on
EURUSD M15
Tested
2026-10-09
Download free · Google DriveFree account needed · sign in with Google in one clickFree — share it freely. Just don’t sell, crack or modify it. Licencev1.00 · 146.5 KB · .ex5
Lab pick — built by the lab, not from a member request. Want something like it? Request a tool

Overview

For traders who want trend context, not entry signals: Moving Average Flow is a free MT5 trend indicator. It draws one moving average on your main price chart, shades the gap between the close and the average in green or red, puts cross arrows on closed bars and adds a status panel. In the Lab's repaint test on EURUSD M15, 0 of 812 arrows changed after they appeared.

It shows which side of the average price is on and whether the average is rising, falling or flat.

What it draws on your chart

A moving average is the average price of the last N bars. It smooths out bar-to-bar noise so the direction is easier to see. Moving Average Flow draws it in the main chart window, not a subwindow, and adds four things around it:

  • Moving Average line: built from MaPeriod bars (default 20) with the MaMethod you choose (Simple by default), applied to the AppliedPrice (Close by default).
  • Shading: green while the close is above the MA and red while it is below.
  • Bullish Cross / Bearish Cross arrows: an arrow under the bar when the previous closed bar closed at or below the MA and the last closed bar closes above it. An arrow over the bar marks the opposite case.
  • Status panel: the last cross with its strength and how many bars ago it fired, the MA method and price, the close's distance from the MA in ATR and percent, the slope state, and the higher-timeframe bias with its alignment and MA value.

How the Lab tested it

The Lab ran version 1.00 on MT5 build 6230 on 2026-10-09. The test used EURUSD M15 from 2026-07-09 to 2026-10-08, replayed on Raw Trading Ltd real ticks. Every arrow was logged when it appeared and then compared with the finished chart. The maximum arrow delay was 0 bars, so each arrow appears on the bar that closed across the MA, not later.

For each arrow the Lab checked one thing: did price move 1 ATR (Average True Range, the typical bar size) in the arrow's direction before it moved 1 ATR against it? The chart below shows the result for each arrow type.

Lab: share of arrows that reached 1 ATR in their direction first (EURUSD M15, 2026-07-09 to 2026-10-08)Illustration
Bullish Cross (406 signals)
47.0%
Bearish Cross (406 signals)
49.9%
All arrows (812 signals)
48.4%

Scale zoomed in to show the difference (bars do not start at zero).

What this means for you: 48.4% of all 812 arrows reached 1 ATR in their direction first. That is slightly worse than a coin flip. On EURUSD M15, a close across the MA gives no edge by itself. The tool is useful as a trend reading, not as an entry trigger.

Bearish crosses did slightly better than bullish in this 3-month EURUSD sample (49.9% against 47.0%), but both stay under or near 50%. Don't read a directional edge into it.

The arrows are also frequent. At default settings the Lab counted 61.8 arrows per week on M15, 30.9 of each kind. Many of them are just price wobbling around the average.

Who it is for

  • Traders who want the MA, its slope, the distance from it and the higher-timeframe bias on one screen instead of judging them by eye.
  • Traders who already have an entry method and need a filter that tells them which side of the trend they are on.

How it works

  1. 1
    Builds a moving average of the chosen price: simple, exponential, smoothed or linear weighted.SMA = sum of last N prices / N, EMA = Price x a + EMA_prev x (1 - a), a = 2 / (N + 1)Inputs: MaPeriod, MaMethod, AppliedPrice
  2. 2
    Measures slope as the average's change over the lookback divided by ATR, coloured rising, falling or flat against a threshold.Slope = (MA - MA N bars ago) / ATR, flat if abs(Slope) < SlopeFlatThresholdInputs: SlopeLookback, SlopeFlatThreshold, AtrPeriod
  3. 3
    Marks an up arrow when close crosses above the average and a down arrow when it crosses below.Inputs: ShowCrossArrows
  4. 4
    Shades between close and the average, and shows the same slope reading from a higher timeframe.Inputs: ShowFill, UseHtfBias, HtfTimeframe

Specifications

Platform
MetaTrader 5
Version
1.00
Type
Indicator
Window
Main chart
Draws
1 line, 2 arrows, 1 panel
Alerts
popup, push, sound
Repaints
No (0 of 812 signals changed)
Inputs
18
Tested on
MT5 build 6230 · 2026-10-09

Repaint test

Signals logged live
812
Changed after close
0
Arrow delay
None

No repaint detected. In a 9 Jul 2026 – 8 Oct 2026 test on EURUSD M15 (Raw Trading Ltd real ticks), 812 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.

Signal statistics

Price moved 1×ATR in the signal direction first48.4%
Price moved 1×ATR against it first50%
Neither within 20 bars1.6%

Over 9 Jul 2026 – 8 Oct 2026 on EURUSD M15, the indicator printed 812 arrows. After 48.4% of them, price moved 1×ATR(14) in the arrow's direction before moving 1×ATR against it (median 2 bars). 1.6% reached neither level within 20 bars.

This measures price movement after the arrow, not a trading result. It includes no spread, commission, stop loss or position sizing.

What it draws

  • A line (Moving Average) from buffer 2.
  • Arrows (Bullish Cross) from buffer 4, drawn on the closed bar.
  • Arrows (Bearish Cross) from buffer 5, drawn on the closed bar.
  • An on-chart panel (Status); values shown in the panel are not exposed as buffers.

Inputs

InputDefaultWhat it does
MaPeriod20Bars N averaged by the moving average (2-500)
MaMethodSimpleAveraging method: Simple, Exponential, Smoothed or LinearWeighted
AppliedPriceClosePrice fed into the moving average
ShowFilltrueShade the area between the close and the MA (green above, red below)
ShowCrossArrowstrueShow arrows where a closed bar closes across the MA
SlopeLookback5Bars back used to measure the MA slope (2-50)
SlopeFlatThreshold0.05Slope below this many ATR counts as Flat (0.0-1.0)
AtrPeriod14ATR period for the slope threshold and the price distance (2-200)
UseHtfBiastrueShow the higher timeframe MA slope and its alignment on the panel
HtfTimeframeAuto (next higher timeframe)Timeframe for the bias; Auto = next higher timeframe
AlertPopuptruePopup alert on a new confirmed cross
AlertPushfalseSend a push notification to the MT5 mobile app
AlertSoundtruePlay a sound on a new confirmed cross
SoundFilealert.wavSound file in the MT5 Sounds folder
ShowPaneltrueShow the status panel
PanelScale1Panel size multiplier (DPI is applied automatically)
ThemeDarkChart color theme
RestoreThemetrueRestore the original chart colors when the indicator is removed

How to read it

Install: copy the .ex5 file (146.5 KB) into your MT5 MQL5/Indicators folder, refresh the Navigator and drag Moving Average Flow onto a chart.

How the average and the slope are calculated

  • SMA = sum of the last N prices / N. EMA = Price x a + EMA_prev x (1 - a), where a = 2 / (N + 1). The other two MaMethod options are Smoothed and LinearWeighted.
  • Slope = (MA - MA N bars ago) / ATR, where N is SlopeLookback. The slope reads Flat when abs(Slope) < SlopeFlatThreshold. Otherwise it reads Rising or Falling.

The slope is divided by ATR, so one threshold works on both quiet and fast markets. On the chart, the Moving Average line itself is coloured by this slope state (rising, falling or flat), and the panel shows the same state as text.

Reading the shading

Green shading means the close is above the MA, and red means it is below. The wider the shaded band, the further price has moved from the average. The panel shows the exact distance in ATR and percent.

Reading the cross arrows

The illustration below shows what a cross looks like and the most common problem with it: around a flat average, arrows come in quick alternating pairs.

Illustration of a typical signal: cross arrows around a flat moving averageIllustration
Moving Average (flat in this str1.10000Red shading:close below MAGreen shading:close above MARed shading:close below MABullish CrossBearish CrossBullish CrossBearish Cross

The arrow appears only after the bar closes on the other side of the MA. Bar 5 closes above the line after bar 4 closed below it, so the Bullish Cross arrow goes under bar 5. Bars 14 and 15 show the trap: an up arrow followed by a down arrow on the very next bar. On a real chart the MA is a curve. It is drawn flat here because flat stretches are where these back-to-back arrows bunch up. Check the panel's slope state there before you act on an arrow.

Reading the Status panel

Read the panel from top to bottom:

  • Last cross: the direction, its strength and how many bars ago it fired. Use it to tell whether an arrow is fresh or old. Strength is a relative reading; the Lab did not test it, so use bars-ago as the main freshness check.
  • MA method and price: confirms which settings are active.
  • Distance from the MA in ATR and percent: how far price has stretched from the average.
  • Slope state: Rising, Falling or Flat, using the formula above.
  • Higher-timeframe bias: the MA slope on the higher timeframe, whether it agrees with your chart, and that timeframe's MA value.

Inputs to change first

  1. MaPeriod (2-500, default 20): this matters most. A longer period gives a slower line and fewer crosses. A shorter period gives more crosses.
  2. MaMethod (Simple, Exponential, Smoothed, LinearWeighted): the formulas above show that Exponential weights recent prices more, so it turns sooner than Simple.
  3. SlopeFlatThreshold (0.0-1.0, default 0.05): raise it if you want more of the market labelled Flat.
  4. SlopeLookback (2-50, default 5): a longer lookback makes the slope state change less often.
  5. UseHtfBias / HtfTimeframe: Auto uses the next higher timeframe. Pick a fixed timeframe if you always want the bias from the same one.
  6. AtrPeriod (2-200, default 14): sets the ATR used for the slope threshold and for the distance reading.

Display inputs: ShowFill, ShowCrossArrows, ShowPanel, PanelScale (DPI is applied automatically), Theme (Dark) and RestoreTheme (on).

Alerts

Alerts fire on a new confirmed cross, after the bar has closed:

  • AlertPopup (on): the MT5 alert window.
  • AlertSound (on): plays SoundFile (default alert.wav) from the MT5 Sounds folder.
  • AlertPush (off): sends a notification to the MT5 mobile app.

A decision rule for each arrow

  • Bullish Cross: consider it only if the panel slope reads Rising and the higher-timeframe bias agrees. Skip it when the slope reads Flat.
  • Bearish Cross: consider it only if the slope reads Falling and the higher-timeframe bias agrees. Skip it when the slope reads Flat.

This rule is a starting idea built from the panel's own readings. The Lab has not tested it, so check it on your own charts first.

Common misreads and how to spot them

  • Treating every arrow as a trend change. When arrows alternate within a few bars while the line runs sideways, price is chopping around the average, not reversing.
  • Reading the live bar's shading as a cross. The shading follows the close, so on the bar still forming it can switch colour several times before the bar closes. Only an arrow, which needs a closed bar, marks a confirmed cross.

Installation

  1. 1Download MovingAverageIndicator.ex5 from the button above (Google Drive).
  2. 2In MetaTrader 5: File → Open Data Folder → MQL5 → Indicators. Copy MovingAverageIndicator.ex5 there.
  3. 3Restart MT5 or right-click Indicators in Navigator → Refresh.
  4. 4Drag Moving Average Flow onto a chart. For push alerts, enable "Allow push notifications" under Tools → Options → Notifications.
  5. Tested on MT5 build 6230.

Key terms and guides

Entry Trigger
An entry trigger is the specific event on the chart, such as a candle closing past a level or price breaking a small swing, that tells you to open the trade now instead of only watching the setup.
Average True Range
Average True Range (ATR) is a volatility indicator that shows how far price typically moves per candle, gaps included, averaged over a set number of candles. It measures the size of moves, not their direction.
Moving average
A moving average is a line drawn from the average closing price of a set number of recent candles, recalculated on every new candle. It smooths out price noise and shows which way the trend is pointing.
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.
Trend
A trend is the main direction price keeps moving in over a period. In an uptrend price makes higher highs and higher lows. In a downtrend it makes lower highs and lower lows.
Market Noise
Market noise is the small, random back-and-forth price movement that has no lasting direction. It comes from routine buying and selling, not from a real change in what traders think an asset is worth.

More on this subject: Trend & moving averages guide, terms and tools

User reviews

No reviews yet. Members who download the tool can review it here.

Write a review

Sign in and download the tool to review it.

Build a checklist with it

Moving Average Flow does one job on the chart: trend / context. Put it on the same chart as the tools below and the IndicatorFree panels merge into one checklist card, ordered trend, zone, signal, risk.

  • Zone / levelDemand Zone FinderAdds where price is: the zones and levels that Moving Average Flow does not draw.
  • Entry signalInside Bar BreakoutAdds the entry signal: the moment to act once Moving Average Flow has set the scene.

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 Moving Average Flow repaint?

No repaint detected. In a 9 Jul 2026 – 8 Oct 2026 test on EURUSD M15 (Raw Trading Ltd real ticks), 812 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 Moving Average Flow in an EA?

Yes. Read buffer 4 (Bullish Cross) 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.

Does it work on other pairs?

Tested on EURUSD only; other symbols not tested.

Can I use Moving Average Flow on H4 or M5?

Yes, it runs on any MT5 timeframe, and the Lab's screenshots include H4 and M5. The Lab statistics come from EURUSD M15 only, so count how many arrows your timeframe produces before you rely on them.

What does Auto mean in HtfTimeframe?

Auto takes the bias from the next higher timeframe than your chart. If you always want the bias from one timeframe, choose a fixed timeframe from the list instead.

How do I get cross alerts on my phone?

Set AlertPush to true. A new confirmed cross then sends a notification to the MT5 mobile app, and your MT5 terminal must already be linked to that app.

Will the indicator change my chart colours?

It applies the chosen Theme (Dark by default) while it is attached. With RestoreTheme on, the default, your original chart colours come back when you remove it.

Does it work on gold, indices or other forex pairs?

It runs on any symbol. Slope and distance are scaled by ATR, which is meant to keep them comparable; the Lab only tested EURUSD, so there are no results for other symbols.

Changelog

  • 1.00Initial release: Moving Average (Simple / Exponential / Smoothed / Linear-Weighted) with ATR-based slope coloring, a shaded price-to-MA area, confirmed closed-bar cross arrows with popup/push/sound alerts, an optional. · 2026-10-09

Final verdict

Verdict: arrows that never repainted, but not an entry signal on their own

Moving Average Flow does its main job well. Its arrows stay on the bar where they fired, and the panel puts slope, distance in ATR and higher-timeframe bias in one place.

The Lab numbers also show where it stops. The median arrow was settled within 2 bars, and only 1.6% of arrows had not moved 1 ATR either way after 20 bars (1.2% for bullish, 2.0% for bearish). So a cross is usually followed by a quick 1-ATR move, but the direction of that move was close to random in the test. Use the tool to tell you which side and what kind of trend you are in.

Limits you should know

  • The Lab tested one symbol and one timeframe: EURUSD M15. There are no Lab statistics for other pairs or timeframes.
  • It draws a single MA. It does not draw a two-MA cross, stop levels or targets.

Who should skip it

  • Traders on low timeframes who will not filter the arrows. At default settings, alerts will come often.
  • Traders who already read MA slope and distance by eye and do not need the panel.

Settings to start with

Start on the defaults; on EURUSD M15 that is the exact setup the Lab measured. Leave AlertPush off until you have seen how many arrows your timeframe produces. To get fewer arrows on M15, try MaPeriod 50. To label more chop as Flat, try SlopeFlatThreshold 0.10. The Lab has not tested either value, so compare each one with the default before relying on it.

The comparison below sums up when the tool helps and when it does not.

Moving Average Flow: use it when / skip it when
Use it when
  • –You want to know which side of the MA price is on at a glance
  • –You need slope and higher-timeframe bias as a filter for your own entries
  • –You want arrows that stay put once the bar closes
Skip it when
  • –The panel slope reads Flat and arrows alternate every few bars
  • –You trade a symbol or timeframe and expect Lab-tested results there

Ideas to pair it with

You could run ADX alongside it to judge trend strength, and skip Moving Average Flow crosses while ADX shows a weak trend. This is an idea to try. The Lab has not tested this pair.

More trend indicators tools