The stock market has the VIX, a single number that tells you how nervous traders are. Forex pairs, gold and synthetic indices do not have one. The free Volatility Filter indicator for MT4 and MT5 builds a VIX-style gauge from the chart itself. It shows you in one line whether the market is calm or starting to panic.
Where the Number Comes From
The method is straightforward. Take the highest close over a recent window of bars, see how far the current low sits below it, and express that gap as a fraction of the high:
Volatility Filter = (Highest close over N bars − current low) ÷ highest close over N bars
When price drops sharply away from its recent high, the gap widens and the line jumps. When price grinds steadily higher, the gap stays small and the line stays low. The classic version of this formula uses 22 bars. Our copy shows 20 in its window label, so check the Inputs tab on yours. Because the formula only uses price history, completed bars should not change. The current bar moves with price, like any live indicator.
A Real Example on the Chart
Look at the screenshot. Step Index 200 climbs for two weeks, but the blue line underneath is far from flat. Its tallest spikes line up with the sharpest pullbacks: the drop around 31 October, and the slide from roughly 11,384 back toward 11,307 around 8–9 November. During the smooth stretches of the trend, the line settles down near the bottom of its window.
That is how to read it. A low, quiet line means a calm, orderly market. A sudden spike means sellers have pushed price well off its high, and fear is entering the market. A spike that rises out of a long quiet period is often the first sign that a range is about to break.
Who the Volatility Filter Indicator Suits, and Who Should Skip It
Good fit: traders who want a volatility filter to sit beside their system. For example, you might skip breakout trades while the line is asleep, cut position size when it spikes, or confirm a pullback entry once the spike starts to fade. It pairs naturally with moving averages, Bollinger Bands, RSI or MACD.
Skip it if you want arrows that tell you when to buy or sell. It does not give entry signals. It measures conditions, and the decision is still yours.
One extra trick: watch for divergence. If price makes a new low but the spike is smaller than the last one, the selling pressure may be running out.
Quick Answers
- Platforms? MT4 (.ex4) and MT5 (.ex5), both in the zip.
- Markets? Any chart: forex, gold, indices, crypto, stocks and synthetic indices.
- Timeframes? All. Anything from M15 for intraday work up to D1 for swing trading.
- Where does it appear? In its own window under the price chart, as a single line.
- Price? Free.
Like every tool here, it is best used as confirmation alongside your own strategy and risk management. Test it on a demo account first. More free tools are on our free EAs and indicators page.
Three Practical Ways to Use It as a Filter
- Breakout filter. If you trade range breakouts, only take the break once the line has started lifting off its lows. A breakout while the line is flat and asleep has nothing behind it, and those are the ones that most often fail and fall back into the range.
- Position sizing. When the line spikes, the market is moving further per candle, so the same stop distance in pips carries more risk. Cutting your lot size during spikes keeps your risk per trade roughly constant.
- Pullback timing. In an uptrend, a spike usually marks a sharp pullback. Instead of buying into the middle of the drop, wait for the line to roll over and start falling, then look for your entry back in the direction of the trend.
Settings tip: a shorter period makes the line jumpier and quicker to react, while a longer one smooths it out. If you change it, scroll back through a few weeks of history and see which version lines up best with the pullbacks and breakouts on the market you trade.
Install the Volatility Filter Indicator in Two Minutes
- Download the zip below and unzip it. It contains an MQL4 folder for MT4 and an MQL5 folder for MT5.
- In MetaTrader, open File → Open Data Folder, then:
- MT4: copy Volatility Filter.ex4 into MQL4 → Indicators
- MT5: copy Volatility Filter.ex5 into MQL5 → Indicators
- Restart MetaTrader, or right-click Indicators in the Navigator and choose Refresh.
- Drag Volatility Filter onto a chart. It opens in a separate window below price. The label inside that window still shows the indicator’s original short name, Synthetic VIX.
- Telegram channel: https://t.me/StunnedCandles
- Contact me directly: https://t.me/StunnedCandlesAdmin
Risk warning: Trading forex, CFDs and synthetic indices carries a high risk of loss and is not suitable for everyone. This indicator is provided free for education and is not financial advice. It does not guarantee profits. See our Risk Disclaimer.

