Vix Fix Signal Alerts MT4
- 지표
-
Allan Aparece Ninal
MetaTrader 5용 인디케이터와 전문가 어드바이저(EA)를 개발합니다.
작업 방식:
- 모든 인디케이터는 리페인팅 여부를 확인합니다. 신호는 마감된 봉에서만 결정되며, 모든 틱 테스트로 이후에 바뀌지 않는다는 것을 확인합니다.
- 모든 계산은 독립적인 기준 계산과 봉 단위로 비교합니다.
- 전략은 최적화에 사용하지 않은 데이터로 백테스트합니다. 우위가 없는 규칙은 그렇다고 분명히 밝히고 전략으로 판매하지 않습니다. - 버전: 1.0
Vix Fix Signal Alerts MT4 is a free MetaTrader 4 indicator for the Williams Vix Fix. It is a VIX-like fear gauge built from the chart's own prices, from the chart's timeframe or any higher one. It marks a BUY when a fear spike ends and a SELL when its mirror, a top spike, ends, and sends alerts.
It places no trades.
It follows Larry Williams' public Vix Fix formula, written in MQL4 from the formula. It runs in its own window below the chart and works on any symbol: forex, gold, indices, crypto.
MetaTrader 4 edition: the same calculation, inputs, signals and alerts as the MetaTrader 5 version. MetaTrader 4 has no colour buffers, so each side of the histogram is two buffers, calm and spike.
Standalone: everything is built in. You do not need to install any other product named on this page.
What you see on the chart
- Above zero, the Vix Fix as a histogram: it rises when price falls hard below its recent closes (fear). Calm bars are grey; a spike bar is green.
- Below zero, its mirror for tops: it grows when price runs far above its recent closes. A top spike bar is red. You can switch the mirror off.
- Two trigger lines on each side: the upper Bollinger band (soft blue) and the range high (dotted grey). A bar at or above either line is a spike.
- A green dot and a blue arrow on the price chart for a BUY: the bar where a fear spike ends.
- A red dot and a red arrow for a SELL: the bar where a top spike ends.
- A small label in the window: the timeframe used, the bar's state (calm, fear spike, top spike) and the latest signal with its age.
The colours are soft mid-tones that read on dark and light charts.
How the signal is built
The Vix Fix is the distance from the highest close of the last 22 bars down to this bar's low, in percent of that close. The mirror is the distance from the lowest close of the last 22 bars up to this bar's high.
A bar is a spike when its value reaches one of two lines. The first is the upper Bollinger band (20 bars, 2 standard deviations). The second is the range high: 85% of the highest value of the last 50 bars. By default the BUY comes on the first calm bar after a fear spike, when the selling pressure fades. You can switch it to the first spike bar.
Everything is decided at the close of a bar. A dot, arrow or alert appears on the bar that closed with the signal. It never moves afterwards. A bar that ends a fear spike and a top spike at the same time gets no signal.
Higher timeframe without repainting
Set Timeframe to H4 on an H1 chart and the window shows the H4 Vix Fix. A chart bar shows the newest H4 bar that has closed when the chart bar closes. The histogram steps once per H4 bar, on the H1 bar that completes it, and stays there.
Many multi-timeframe indicators show the forming higher-timeframe bar on older chart bars. Their history looks better than it was live. This one never does. What you see on a past bar is what it showed at that bar's close.
Who it is for
For traders who wait for panic selling to fade before they look for a long. Also for those who know the Vix Fix from TradingView.
Not for you if you want a ready-made trading system. A spike can end and price can fall again. You decide which signals matter.
Inputs
| Input | Default | Description |
|---|---|---|
| Timeframe | current | the chart's own, or a higher one up to W1. A lower one falls back to the chart's. |
| Lookback of the highest close | 22 | - |
| Tops | on | the mirrored Vix Fix below zero and its SELL signals. |
| Spike at or above the upper Bollinger band | on | length 20, width 2.0. |
| Spike at or above the range high | on | lookback 50, 0.85 of its highest value. |
| Signal | when a spike ends | or when a spike starts. |
| Draw the trigger lines | on | - |
| Arrows on the price chart | on | for BUY and SELL, on the last 2000 bars. |
| Arrow colours | blue / red | - |
| State label in the window | on | - |
| Pop-up | on | - |
| Sound | off (file alert.wav) | - |
| Push | on | - |
| off | - | |
| Debug log for bug reports | off | see Found a problem? |
How often
Per month per symbol with the defaults (EURUSD, GBPUSD, USDJPY, XAUUSD, BTCUSD, closed bars, 2024 to 2026; a code count, not a trading result). BUY and SELL together: M15 about 189 to 281, H1 about 47 to 72, H4 about 12 to 18, D1 about 2 to 3. BUY alone: M15 about 95 to 142, H1 about 23 to 36, H4 about 6 to 9, D1 about 1 to 2. With a higher timeframe set, the counts are those of that timeframe.
Alerts and Expert Advisor use
One alert per closed bar, never while the history loads. The message says BUY or SELL, whether a spike ended or started, the timeframe used, the Vix Fix value and the close. For push alerts, set your MetaQuotes ID under Tools, Options, Notifications.
Buffers for Expert Advisors (iCustom): 0 is the Vix Fix on a calm bar and 1 on a spike bar. 2 and 3 are the same for the mirror (as a negative value). Buffers 4 and 5 are the upper band and range high; 6 and 7 the same for the mirror (negative). Buffer 8 holds the Vix Fix on a BUY bar and buffer 9 the mirror (negative) on a SELL bar. They are empty otherwise.
How it was checked
Code check: an independent Python version was compared bar by bar with the indicator. It covered the Vix Fix, its mirror, both trigger lines on each side, every spike, BUY and SELL. The runs used the MetaTrader 4 Strategy Tester on EURUSD, GBPJPY, XAUUSD and BTCUSD at M15, H1 and H4. Three input sets, one with the H4 Vix Fix. All 36 files matched (47,775 signals).
Code check: an every-tick run on EURUSD H1 with the H4 Vix Fix (8.4 million ticks, 4,812 closed bars, 127 signals). Bar-by-bar runs on EURUSD, GBPJPY, XAUUSD and BTCUSD at H1 and M15 used the H4 Vix Fix too. No signal changed after its bar closed, and none showed on the live bar.
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 |
|---|---|---|
| Risk Position Tool MT4 | 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 MT4 | Add it to the same chart. | It draws session boxes and previous day and week levels as context. It is not a signal. |
| Divergence Signal Alerts MT4 | Add it to the same chart. | It marks RSI and MACD divergences against price, a second view of a fading move. |
Questions
Does it repaint? The forming bar's values move with price. Once a bar has closed, its values, dots, arrows and alerts do not change. With a higher timeframe, a chart bar shows only higher-timeframe bars that had closed by then.
Is it the real VIX? No. It is computed from the chart's own prices, so it works on symbols that have no volatility index.
Is there a MetaTrader 5 version? Yes, Vix Fix Signal Alerts, with the same inputs and signals.
Why does it differ a little from another Vix Fix? Versions differ in the standard deviation (here the population form, as on TradingView), in whether the mirror is shown, and in where the signal sits. Here the signal is on the closed bar that ends the spike.
Does it work in the Strategy Tester? Yes, in visual mode, on any symbol.
Will I get alerts on my phone? Yes, push is on by default. Set your MetaQuotes ID.
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.
The defaults are a starting point. An indicator does not predict price, and trading carries a risk of loss.
