Browse Indicators
Indicators MT5 Indicators MT4 Indicators ICT Indicators MT5 ICT Indicators MT4 ICT Indicators Add Indicators Download/Add MT5 Indicators Download/Add MT4 Indicators Blog Browse Indicators
Olymptrade – Start with $10. Get up to 100% more.
Product Post

Range Filter Trend Histogram MT4 Indicator

Last Update Nov 4, 2026 4 min read 2,956 views 0 comments Intermediate
Indicator file
Range Filter Trend Histogram
Free licence

Splits range from trend on MT4 with grey, green and red ADX trend-power bars around 20, and arrows the first candle of a new trend that passes its filters.

Range Filter Trend Histogram MT4 works as an ADX histogram on MetaTrader 4 that labels the market as ranging or trending before it offers any trade. Its bars stay grey while Trend power is under 20, the Range / Trend threshold, and turn green or red once an uptrend or a downtrend gains enough strength. At the start of such a trend, a Buy Arrow under the candle, or a Sell Arrow over it, marks the earliest finished candle that clears every active filter.

Range Filter Trend Histogram Specifications

In MetaTrader 4 the tool works in two places: a subwindow under the price chart holds the trend-power bars, and the chart itself receives arrows that are set only after the candle closes.

ItemDetails
PlatformMetaTrader 4 (MT4); also available for MT5
CategoriesOscillators, Signal & Forecast
Indicator typeTrend, Breakout, Entry Exit
Skill levelIntermediate
TimeframesAny; shown here on M15
Trading styleIntraday, Day Trading
MarketsForex, Commodities, Indices, Crypto, Stock (shown on XAUUSD)
DisplayTrend power bars and their line in a subwindow, dashed 20 level; Buy / Sell arrows over and under the candles; panel rows Trend power, Market, Last signal
AlertsNone
Version1.0

In the Custom Indicator window, the About tab carries the build name, Range Filter Trend Histogram MT4 - MtIndicatorHub 1.0. Behind it, the panel in the upper left corner reads Trend power 13.5 falling with Market on Range, and the subwindow label reads Range Filter Trend Histogram MT4 (14).

Range Filter Trend Histogram MT4 About tab in the Custom Indicator window on XAUUSD M15
About tab of the MT4 Custom Indicator window, build 1.0, over XAUUSD M15

What Is the Range Filter Trend Histogram Indicator?

The Range Filter Trend Histogram indicator asks one question of every candle: is price moving in one direction strongly enough to count as a trend? The answer is Trend power, a reading made from ADX together with the DI+ and DI- lines over the Filter period (ADX / DMI), set to 14 candles. The higher the bar, the stronger the move, up or down alike.

Colour adds the direction. Grey bars sit under 20, the dashed level of the Range / Trend threshold, and stand for a range. Above that level a bar turns green when the upward side leads, which the indicator treats as a strong uptrend, or red when the downward side leads, a strong downtrend.

On MT4 the reading also appears as numbers in the subwindow label: Range Filter Trend Histogram MT4 (14) is followed by the current value twice, once for the bars and once for the line along their tops. The (14) is the Filter period.

The info panel puts the same reading into words. Its Trend power row adds rising or falling, the Market row picks Uptrend, Downtrend or Range, while the Last signal row keeps the time, date and direction of the most recent arrow.

A visual test on XAUUSD M15, from 9 April to 15 April 2026, shows all of this on one screen: Buy on 10 April at 16:45, Sell at 23:15, then Buy on 13 April at 10:45, the arrow the Last signal row names.

Range Filter Trend Histogram MT4 visual test on XAUUSD M15 with Buy and Sell arrows
XAUUSD M15 visual test, 9 to 15 April 2026: three arrows, panel on Uptrend

Buy Signal

The Buy Arrow is printed once per uptrend, under the first rising candle of it that the filters accept. Green bars that follow add nothing new; as long as Alternate Buy / Sell only remains on, the next arrow on the chart has to be a Sell.

On XAUUSD M15 on 2 September 2026, green bars were on screen long before the Buy Arrow. Between 08:30 and 11:15 Trend power was fading, about 33.0 at 08:30 and 21.0 by 11:00, and Require rising trend power, on by default, blocks any arrow while the reading drops. At 11:45 the bar went grey on a reading of 18.7.

The arrow came at 15:15, when the reading turned back up across 20, to about 20.9, on a candle that finished above its open, with a close near 4336.75. Its low, near 4330.05, is where a protective stop fits best. The 16:00 candle tested that area and held: it opened at 4331.48, dipped to 4330.57, about 0.52 above that low, and closed at 4339.51 as the reading climbed to 23.7.

By 18:00 the reading stood at 40.3. On 3 September the 08:00 candle hit 4440.28, about 103.53 higher than where the arrow candle closed, and the green colour lasted 84 candles in all, ending with the 13:00 candle of that day. The first bar that is no longer green is where a long trade built on this arrow loses its reason.

Range Filter Trend Histogram MT4 Buy Arrow under the 15:15 candle on XAUUSD M15
2 September 2026: green bar back above 20 and the Buy Arrow at 15:15

Sell Signal

A Sell Arrow needs the opposite picture: a red bar at 20 or higher and a candle that ends below its open. The arrow then appears over that candle's high.

XAUUSD M15 on 1 September 2026 came out of a quiet morning, with Trend power at 17.4 on the grey 05:45 bar. After that grey stretch the 06:30 bar turned red, yet its candle finished higher than it opened, so nothing was drawn. One candle later the picture was complete: the 06:45 candle, with an open of 4438.48, rose to 4443.53 and closed at 4436.59, exactly its low, as Trend power reached 20.3. The Sell Arrow sits above it.

A stop over that high would be 6.94 from the close. The fall that followed went much further: by 16:30 Trend power was up to 49.0, and on 2 September at 04:45 price hit a low of 4288.30, 148.29 below the arrow candle's close.

Later on 2 September another red bar touched the line, 20.1 at 13:45, and still no Sell Arrow came. That candle closed slightly up, from 4309.29 to 4309.37, and the last arrow on the chart was already a Sell, which Alternate Buy / Sell only does not repeat. By 14:00 the reading was back under 20, at 19.1.

Range Filter Trend Histogram MT4 Sell Arrow above the 06:45 candle on XAUUSD M15
1 September 2026, 06:45: the candle closes on its low, red bar at 20.3

Indicator Settings

MetaTrader 4 has no input groups, so the Inputs tab lists all 12 settings of the indicator in a single column.

Range Filter Trend Histogram MT4 Inputs tab with the 12 default inputs
MT4 Inputs tab: 12 inputs in one list, Filter period 14 and threshold 20.0

The first two rows set the measurement of Trend power and the end of a range, the next five control which arrows appear and how often, and four more add checks around a 50-period exponential moving average. The last row is for the panel, and all eight true / false switches load as true.

InputDefaultWhat it changes
Filter period (ADX / DMI)14Number of candles the ADX and the DI+ / DI- lines read to build Trend power
Range / Trend threshold20.0Level where grey range bars end and coloured trend bars begin; raise it to accept only stronger trends
Show Buy signalstrueTurns the Buy Arrows on or off
Show Sell signalstrueTurns the Sell Arrows on or off
Alternate Buy / Sell onlytrueAfter a Buy the next arrow must be a Sell, and the reverse
Min bars between signals
(0 = off)
10Fewest candles allowed between two arrows; 0 lets them come closer
Require rising trend powertrueNo arrow while Trend power is dropping
Trend EMA filtertrueBuy Arrows need price over a rising EMA, Sell Arrows price under a falling EMA
Trend EMA period50How many candles that EMA averages
DI+ / DI- dominance filtertrueWaits until one side, buyers or sellers, clearly leads
Late entry
(over-stretch) filter
trueDrops the arrow when price is already far from the EMA
Show info paneltrueTurns the Trend power / Market / Last signal panel on or off

Filter period, Min bars between signals and Trend EMA period all count candles. On M30 that means 7 hours of data behind Trend power, at least 5 hours between two arrows and 25 hours for the EMA; on H4 the Filter period alone covers 56 hours.

Conclusion

Range Filter Trend Histogram MT4 is built to tell trending candles from ranging ones by a single ADX-based reading against the 20 level, and to put an arrow only where a new trend first passes its checks.

Fourteen candles of directional movement stand behind each bar, so a trend is confirmed after it has begun, and no arrow is fixed before its candle closes. Colour on its own is never a signal: a dropping Trend power, the spacing in candles, the EMA, DI and late-entry filters or the rule that sides take turns can each leave a coloured bar without an arrow. The panel always speaks about the newest candle, which no longer fits the screen once the chart is scrolled back, and the inputs include no alert, so new arrows have to be watched on the chart.

Your rating

Rate this indicator

How useful was this indicator? Click a star.

FAQ

Frequently asked questions

It is the indicator's single reading, built from ADX and the DI+ and DI- lines over the Filter period, 14 candles by default. It measures the strength of the current move only; the bar colour gives its direction, green with buyers ahead and red with sellers ahead. The panel shows the same number with the word rising or falling.

Ten by default, through Min bars between signals; a value of 0 removes the gap. On 1 September 2026 the green bars at 08:30 and at 08:45 stood just 7 and 8 candles past the 06:45 Sell Arrow, so the indicator could not answer them with a Buy.

The panel follows the live candle at the right edge. After you scroll back, all three panel rows still describe that newest bar, and so do the two values in the subwindow label, while the bars and arrows on screen belong to older candles.

With Trend EMA filter at true, a Buy Arrow needs price above an EMA that is rising, and a Sell Arrow needs price below one that is falling. Trend EMA period sets its length, 50 by default; switching the filter off removes this condition, so arrows no longer depend on that average.

It goes to the earliest candle closing below its open while its histogram bar shows red at 20 or more, Trend power is rising and every switched-on filter agrees. On 1 September 2026 the 06:30 bar already showed red while its candle ended higher than it opened, so the arrow waited for 06:45, a candle that closed at 4436.59, its low.

Discussion

Comments

Be the first to comment.

New releases

New MetaTrader 4&5 indicators

View all indicators
01 MT4 Beginner

Trend Continuation Oscillator MT4 Indicator

MT4 oscillator with Bull and Bear Continuation values; a Buy or Sell arrow marks the bar where either one turns positive.

2,908 views 11 downloads
02 MT4 Advanced

ICT Killzones MT4 Indicator

Marks the Asian, London, New York AM and New York PM killzones on MT4 as coloured boxes, with green high and red low lines to each session's end.

2,168 views 13 downloads
ICT Free
03 MT5 Advanced

ICT Killzones MT5 Indicator

Draws the Asian, London, New York AM and New York PM killzones of each day on MT5, with every box's high and low carried on as green and red lines.

2,971 views 14 downloads
ICT Free
04 MT4 Intermediate

RSI Color Candles MT4 Indicator

Paints each MT4 bar in one of four RSI(14) zones and marks with an arrow the bar where RSI first closes over 60 (Buy) or under 40 (Sell).

2,830 views 10 downloads
Useful trading articles

Build a sharper trading framework.

View all articles

Study market structure, liquidity, imbalance, and execution without scattered notes.

01 Beginner

How to Install an Indicator in MetaTrader 4

Install a custom .ex4 indicator in MetaTrader 4: download it, put it in MQL4 Indicators, refresh the Navigator and attach it to a chart.

2 min read
02 Beginner

How to Install an Indicator in MetaTrader 5

Add a custom .ex5 indicator to MetaTrader 5: copy it to MQL5 Indicators, reload the Navigator and attach it, plus fixes when it does not show up.

2 min read