Range Filter Scanner MT5
- 指标
- 版本: 1.1
- 更新: 3 十一月 2026
- 激活: 10
Range Filter Scanner MT5 is an indicator for MetaTrader 5 that shows the latest range-filter BUY or SELL for many symbols and timeframes. Each cell uses closed bars only and never changes after its bar has closed. Run the free demo in the Strategy Tester on your own symbol before you decide.
It shows, marks and alerts. It does not trade. It runs the same range-filter engine as the free Range Filter Signals indicator.
In plain words
Checking many charts one by one takes time. You open a chart, look at the trend, and move on to the next.
The range filter is a trend line that moves only when price travels further than its usual bar-to-bar range. It stays flat in noise. When it turns, a BUY or SELL is marked.
This scanner runs that filter for every symbol and timeframe you pick. It shows one cell for each. The cell tells you the latest signal and how many bars ago it came.
A "+" tells you the next timeframe to the right has its filter running the same way. It helps you see if a short and a longer view agree.
The cells show where the filter turned. They do not say where price goes next.
What you see on the chart
- A panel with symbols as rows and timeframes as columns.
- Each cell reads BUY or SELL and the number of closed bars since that signal, for example "BUY 3". Zero means the newest closed bar.
- Green cells are BUY and red cells are SELL. A cell is brighter while its signal is 3 bars old or less.
- A "+" after the text means the filter on the next timeframe to the right runs the same way. The last column never has one.
- "loading": the history for this cell has not arrived yet. "-": no signal in the bars loaded. "n/a": not enough bars.
Hover over a cell for a tooltip with the filter's direction and range. Click a cell to open that chart.
Worked example
The scanner uses the same calculation as the free indicator. Take XAUUSD in the H4 column with the default settings, using the bars of the parity test (terminal history, server time). Bars from 11 June 2026 at 08:00 to 16:00 closed below a falling filter of 4129.52, with a range of about 60.4.
The bar that opened at 20:00 closed at 4212.13. The filter rose to 4212.13 - 60.47 = 4151.66 and a buy signal was found. When that bar closed the cell read BUY 0. After the next H4 bar closed it read BUY 1, and so on. The cell stayed brighter while the age was 3 or less.
Whether the cell showed a "+" depended on the H4 filter and the D1 filter at that time, so no value is given here.
Key facts
| Type | Indicator on one chart with a panel of symbols x timeframes, for MetaTrader 5. |
| Shows | Per cell: the latest BUY or SELL, its age in closed bars and a "+" when the next timeframe's filter runs the same way. |
| When a signal is final | When its bar closes. A cell uses closed bars only and never changes after its bar has closed. |
| Reload and timeframe change | The panel is built again and every cell reloads its closed bars. The values come out the same, with the same history. No alerts are sent for signals found while loading. |
| Alerts | Pop-up and push are on. Sound and e-mail are off. Cells that signal together are sent as one message. Alerts are silent in the Strategy Tester. |
| Trades | No. It places no orders. |
| Other products needed | None. The calculation is built in. |
| Symbols | Market Watch (up to 30 by default, at most 60) or your own list. A broker suffix is found automatically. |
| Timeframes | Comma-separated list that becomes the columns. Any of the MetaTrader 5 timeframes. |
| Tested on | EURUSD, GBPJPY, XAUUSD and BTCUSD at M15, H1, H4 and D1 (loader), and XAUUSD H1 (repaint). |
Quick start
- Attach it to any one chart. By default the panel lists the symbols in your Market Watch (up to 30) against M15, H1, H4 and D1.
- For your own symbols, set Which symbols to My list and fill My list, comma separated. Type plain names such as EURUSD.
- Change Timeframes the same way, for example H1,H4,D1. The list order sets the columns, left to right.
- A cell reads "loading" until its history arrives. The panel title counts how many cells are loaded.
- Pop-up and push alerts are on. Switch on Play a sound or E-mail if you want them.
The defaults (Sampling period 100, Range multiplier 3.0) work without tuning. Put your shorter timeframe on the left and the longer one on the right, so that "+" compares them.
Who it is for
For traders who use the range filter on several symbols or timeframes. It shows where the filter turned last and whether the next timeframe agrees.
Not for you if you want one chart with the filter drawn bar by bar, or an automatic trading system.
How it works under the hood
The engine
Each cell runs the range-filter engine of the free indicator on one symbol and timeframe. It is my own implementation of the published method, written from the maths.
- Range = EMA of (EMA of the absolute close change over the period) over twice the period minus one, x the multiplier. Each EMA starts from its first value.
- Filter: with the close above it, it rises to the close minus the range and never falls. With the close below it, it falls to the close plus the range and never rises.
- Buy setup: the close is above the filter, differs from the previous close, and the filter's latest move was up. The sell setup is the mirror image.
- A signal is the first buy setup after a sell setup, or the first sell setup after a buy setup.
The "+" mark
The "+" compares the filter of a cell with the filter of the cell to its right. It shows when both filters run the same way, both rising or both falling. It compares the filters, not the signal bars.
With "Alert only when the next timeframe agrees" on, an alert is sent only for cells that have a "+".
Closed bars and loading
The forming bar is never used. A cell starts from the newest closed bars of its history (1000 by default), then adds one closed bar at a time. If the history changes under a cell, the cell starts again from the history.
The panel refreshes every second. It starts only a few cells per refresh, so a large list fills in over a few seconds.
Reload, restart and timeframe change
The columns come from the Timeframes input, not from the chart. Changing the chart's timeframe rebuilds the panel and reloads every cell from closed bars. The values are the same as before, with the same history. Loading sends no alerts.
Inputs
| Input | Default | What it does |
|---|---|---|
| Which symbols | Market Watch | Market Watch, or your own list. |
| My list, comma separated | EURUSD,GBPUSD,USDJPY,XAUUSD,BTCUSD | Used when Which symbols is My list. |
| Broker suffix to try first | empty | For example .m. Found automatically if empty. |
| Most symbols shown | 30 | From 1 to 60. |
| Timeframes | M15,H1,H4,D1 | Comma separated. They become the columns, left to right. |
| Sampling period | 100 | Same as in the free indicator. |
| Range multiplier | 3.0 | Same as in the free indicator. |
| Mark "+" when the next timeframe to the right is on the same side | on | Higher-timeframe agreement mark. |
| Alert only when the next timeframe agrees | off | Limits alerts to cells with a "+". |
| Closed bars each cell starts from | 1000 | History per cell, 200 to 5000. |
| Highlight a cell when its signal is this many bars old or less | 3 | Brighter cell for a fresh signal. |
| Panel corner, font size, colours | top left, 9 | Look and place of the panel. |
| Clicking a cell opens that symbol and timeframe | on | Opens the chart, or brings it to the front. |
| Template for charts opened by a click | empty | Optional template name. |
| Pop-up alert | on | Alert window in the terminal. |
| Play a sound | off | Plays the sound file below. |
| Sound file | alert.wav | File from the terminal Sounds folder. |
| Push notification | on | Needs your MetaQuotes ID. |
| off | Needs e-mail set up in the terminal options. | |
| Debug log for bug reports | false | Found a problem? |
Alerts and Expert Advisor use
Alerts. Pop-up, sound, push notification and e-mail, each switched separately. Cells that signal together are sent as one message. Nothing is sent while history loads, twice for the same cell and bar, or in the Strategy Tester.
Buffers. Buffer 0 holds the number of fresh BUY cells and buffer 1 the number of fresh SELL cells, on the newest bar. A cell is fresh while its signal is no older than the highlight setting.
How often. Signals per month per symbol with the defaults (EURUSD, GBPUSD, USDJPY, XAUUSD, closed bars; a code count, not a trading result). M15 about 58 to 62, H1 about 15, H4 about 4 to 5, D1 under 1.
How it was checked
- The engine is the one in the free Range Filter Signals. It matched an independent Python calculation on every bar. It also passed a tick-by-tick repaint test in the Strategy Tester (XAUUSD H1, 91 million ticks, 0 changed signals).
- The scanner's loader starts a cell from 1,000 bars, then adds 300 closed bars one at a time. It was compared with the same Python calculation on the terminal's own bars. That was 4 symbols x M15, H1, H4 and D1, identical in 16 of 16 files.
Not tested: alerts on a live chart (the tester is silent for alerts). No profit or accuracy test was made. The scanner reports where the filter turned and is not a strategy.
Limits
- A signal is a turn of the filter, not a bottom or a top call. Price can turn back at once.
- It places no orders and gives no stop loss, target or lot size.
- A cell needs history for its symbol and timeframe. It reads "loading" until the terminal has it, and "n/a" when there are too few bars.
- A cell shows the latest signal within the bars it loaded (1000 by default). An older signal reads "-".
- The bars come from your broker. Another broker's history gives slightly different bars and sometimes different signals.
- The panel runs on one chart. Alerts need the terminal running and that chart open.
FAQ
Does it repaint? No. Cells use closed bars only. They never change after their bar has closed.
What happens if I change the chart timeframe or reload? The panel is built again and every cell reloads its closed bars. You get the same values with the same history, and no alerts for old signals.
What does "+" mean? The filter on the next timeframe to the right runs the same way as this cell's filter. It describes agreement, not a promise.
Which symbols and timeframes can I scan? Any symbol with history on your server and any timeframe in the Timeframes list, up to 60 rows. It was tested on forex, gold and crypto symbols.
My broker adds a suffix to symbol names. Does it work? Yes. Type EURUSD and the scanner finds names such as EURUSD.m. You can also put the suffix in Broker suffix to try first.
Does it work on gold and crypto? Yes, on any symbol with history.
Can an Expert Advisor read it? Yes. Buffer 0 and buffer 1 hold the number of fresh BUY and SELL cells.
Can I run it on a VPS? Yes, like any indicator. It needs a running terminal with the chart open. It places no orders.
How is it different from the free indicator? The free Range Filter Signals draws the filter on one chart. The scanner covers many symbols and timeframes with a higher-timeframe check.
Try it first
Download the free demo from this page and run it in the Strategy Tester on your own symbol. Check the cells against the bars on the charts.
The free Range Filter Signals shows the same filter and the same signals on one chart. It is a good way to learn how the line turns before you use the scanner. You do not need it to use the scanner.
Works well with
These are workflow suggestions. I have not found that any pair gives better trading results. You do not need any of them.
| Product | How to use them together | Why |
|---|---|---|
| Signal Trader | Choose Range Filter as the source and put Range Filter Signals on the same chart. | You see the arrows the EA reads. Its validated presets use other sources. |
| Risk Position Tool | Pick the trade from the chart, then drag the entry and stop lines. The tool gives the lot for your risk. | It separates where you enter from how much you risk. The tool places no orders. |
Related products
- Range Filter Scanner MT4: the same scanner for MetaTrader 4.
- Range Filter Signals: the free indicator with the same engine; it draws the filter, bands and arrows on one chart.
- UT Bot Scanner MT5: a scanner of the same kind for the UT Bot signal on many symbols and timeframes.
- Squeeze Momentum Scanner MT5 - another scanner panel for many symbols and timeframes, for volatility squeezes.
- All my products on MQL5
Custom work
Want an EA that trades this indicator, a custom version of it, several of my indicators or EAs combined into one, an EA that trades another indicator you use (mine or another developer's), or a new indicator or EA of your own? Order it through MQL5 Freelance and choose me as the developer: order through Freelance. Send your requirements, rules and the flow or algorithm you want. The whole order, payment and delivery stay inside MQL5 Freelance.
Found a problem?
- In the inputs, set "Debug log for bug reports" to true.
- Repeat what went wrong.
- Open the Experts tab in the Toolbox. Copy the lines that start with "DBG" and paste them in a comment on this page, with the symbol and timeframe.
- Set the debug log back to false.
The debug lines never contain your account number, name, server, balance or equity.
If you find it useful, a short review on this page helps other traders find it.
Questions: use the comments on this page or send me a message on MQL5.
Trading involves risk. The scanner shows a filtered trend. It does not predict the market, and past signals are no indication of future results.
