Range Filter Signals
- 指标
- 版本: 1.1
- 更新: 3 十一月 2026
Range Filter Signals is a free indicator for MetaTrader 5. Its range filter line moves only when price travels further than its smoothed average range, so it stays flat in choppy price action and follows a real move. Buy and sell arrows mark the turns, with alerts.
It places no orders. Everything comes from closed bars, so an arrow never appears and then disappears.
Standalone: everything is built in. You do not need to buy or install any other product named on this page.
Quick start
- Attach it to any chart and timeframe. The defaults are Sampling period 100 and Range multiplier 3.0.
- A longer period or a larger multiplier gives fewer signals. Switch off Draw the bands if you want only the line.
- Pop-up and push alerts are on. Switch on Play a sound or E-mail if you want them.
What you see on the chart
- The filter line: green while it rises, red while it falls.
- Two dotted bands at the filter plus and minus the range (optional).
- A buy or sell arrow on the closed bar where the filter turns.
How it works
- The range: the average size of a bar-to-bar close change, smoothed twice (over the period and over twice the period minus one) and multiplied by the multiplier.
- The filter: when the close is above it, it rises to the close minus the range and never falls. When the close is below it, it falls to the close plus the range and never rises. Smaller moves leave it unchanged.
- A buy signal: the close is above a rising filter, right after a sell setup. A sell signal is the mirror. One arrow per turn.
- Own implementation of the published range-filter method, written from the maths.
Who it is for
For traders who want a trend line that ignores noise, on any symbol and timeframe.
Inputs
| Input | Default | What it does |
|---|---|---|
| Sampling period | 100 | Smoothing length of the average range (2 to 1000). |
| Range multiplier | 3.0 | Scales the range. Larger gives fewer signals. |
| Draw the bands | on | Shows or hides the two dotted bands. |
| Closed bars to calculate | 3000 | How much history is calculated (300 to 50000). |
| 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? |
How often it signals
Signals per month per symbol with the defaults, on EURUSD, GBPUSD, USDJPY and XAUUSD, October 2023 to October 2026 (D1: ten years), closed bars. A code count, not a trading result.
| Timeframe | Signals per month |
|---|---|
| M15 | about 58 to 62 |
| H1 | about 15 |
| H4 | about 4 to 5 |
| D1 | about 0.6 to 0.8 |
How it was checked
- Non-repainting: in the Strategy Tester on XAUUSD H1, every tick, January to October 2026 (91 million ticks, 4,406 bars), 131 signals appeared. None changed after its bar closed or was drawn on the forming bar.
- Code check: the filter, range, bands, trend side and every arrow were compared bar by bar with an independent Python calculation. The test ran on EURUSD, GBPJPY, XAUUSD and BTCUSD, M15, H1 and H4, with two settings. The results were identical.
Alerts and Expert Advisors
One alert per signal, on the bar that gives it: pop-up, sound, push notification and e-mail, each switched separately. Nothing is sent while history loads, never twice for the same bar, and not in the Strategy Tester.
Buffers: 0 buy arrow (the bar's low), 1 sell arrow (the bar's high), 2 filter, 3 its colour (0 rising, 1 falling), 4 upper band, 5 lower band.
Questions
- Does it repaint? No. It uses closed bars only.
- Why does the line stay flat? Price has not moved further than the range away from it. That is the point of the filter: small moves do not change it.
- Does it work on gold and crypto? Yes, on any symbol with history.
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 the indicator on the same chart. | You see the arrows the EA reads. The EA has the calculation built in. 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. |
| Session Levels | Add it to the same chart. | It draws the Asia, London and New York sessions and killzones, the previous day and week levels and a time panel as context. It is not a signal. |
| Repaint and Signal Scorecard | Name this indicator and its buy and sell buffers. The scorecard checks whether its signals repaint and how they did on the chart history. | It measures the signals and places no trades. A good score on history is not a forecast. |
| Indicator Arrow Trader | Name this indicator and its arrow buffers. The EA reads the arrow of each closed bar and sends the order with a stop loss and a fixed 0.01 lot. | It turns the arrows into orders for you. It promises no profit; test it on a demo account first. |
Stacking more indicators was not found to improve results in my gold tests, so I do not suggest it.
Related products
- Range Filter Signals MT4: the same indicator for MetaTrader 4.
- UT Bot Signal Alerts: another free arrow indicator on closed bars, with the same alert channels.
- Signal Trader: an Expert Advisor that trades the UT Bot, SuperTrend, Range Filter or Half Trend signal. The calculation is built in.
- MACD Multi Timeframe Signal Alerts - a free indicator with the same closed-bar approach and alert options, for MACD crosses on the chart or a higher timeframe.
- All my products on MQL5
Custom work
Want an EA that trades this indicator, a custom version of it, 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 it helps your trading, 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 indicator shows a filtered trend. It does not predict the market, and past signals are no indication of future results.

用户没有留下任何评级信息