Squeeze Momentum Signals MT4
- Göstergeler
- Sürüm: 1.1
Squeeze Momentum Signals MT4 is a free MT4 indicator that shows when volatility is compressed (a squeeze) and when it releases, with a momentum histogram, fired arrows and alerts.
It places no trades.
It is a port of the Squeeze Momentum Indicator by LazyBear for TradingView, which is itself a variation of John Carter's TTM Squeeze. It runs in its own window below the chart.
Standalone: everything is built in. You do not need to buy or install any other product named on this page.
MetaTrader 4 edition: the same calculation, histogram colours and fired arrows as the MetaTrader 5 version. MetaTrader 4 cannot colour a single histogram or shift arrows by pixels. So the histogram is drawn as four buffers, and the fired-arrow distance is a multiple of the average range. The in-between dot state (slate in MetaTrader 5) is not drawn.
What you see on the chart
- Dots on the zero line: amber when the Bollinger Bands are inside the Keltner Channel (squeeze on). Grey when they are outside (squeeze off). Nothing is drawn in between.
- A momentum histogram: strong green above zero and rising, pale green above zero and fading, strong red below zero and falling, pale red below zero and recovering. The colours are soft mid-tones that read on dark and light charts.
- An up or down arrow on the first closed bar after a squeeze ends, pointing the way momentum leans.
- Optional alerts on squeeze release and on momentum colour change. The release alert says how many bars the squeeze lasted.
- Squeeze length: a label in the indicator window shows how many bars in a row the current squeeze has lasted, or how long the last one lasted. The count is also a buffer, so it shows in the Data Window.
- Three squeeze levels (optional): as in John Carter's later Squeeze Pro, the Bollinger Bands are compared with three Keltner widths (2.0, 1.5 and 1.0). The dots show the tightest one they fit inside, in one amber family: deep orange-gold for a high squeeze, amber for mid, muted amber for low, grey for none. Off by default; the original single squeeze stays the default.
How the signal is built
The squeeze is on when the Bollinger Bands sit inside the Keltner Channel. Momentum is a linear regression of price against the middle of its recent range, as in the original script.
Everything is decided at the close of a bar. A fired arrow appears on the first closed bar after the squeeze turns off. A colour-change marker appears when the histogram colour differs from the previous closed bar.
An optional trend filter keeps only signals that agree with a moving average: up above it, down below it.
Who it is for
For traders who watch volatility compression and momentum on any symbol or timeframe, and for those who know the LazyBear script from TradingView.
Not for you if you want a ready-made buy and sell system. It shows volatility and momentum, and you decide what to do.
Inputs
| Input | Default | Description |
|---|---|---|
| Bollinger length | 20 | period of the bands. |
| Bollinger multiplier | 2.0 | band width, used only when LazyBear mode is off. |
| LazyBear mode | on | the original script uses the Keltner multiplier for the band width; off uses the Bollinger multiplier. |
| Keltner length | 20 | channel period, also the momentum length. |
| Keltner multiplier | 1.5 | channel width. |
| Keltner range: true range | on | off uses high minus low. |
| Trend filter | off | only signals with the trend (close against the average). |
| MA type | EMA | SMA or EMA. MA period – 200. |
| Mark and alert when the squeeze fires | on. | - |
| Mark and alert on momentum colour change | any change | or zero cross only, or off. |
| Fired-arrow distance | 0.3 | multiple of the average Keltner range, from the histogram bar. |
| Three squeeze levels | off | on compares the bands (Bollinger multiplier, 2.0) with three Keltner widths. LazyBear mode does not apply here, since it would make the three levels the same. A release is the first bar with no squeeze at any level. |
| Keltner multiplier, low / mid / high | 2.0 / 1.5 / 1.0 | the three widths, widest first. |
| Show the squeeze length 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? |
Alerts and Expert Advisor use
One alert per closed bar, never while the history loads. For push alerts, set your MetaQuotes ID under Tools, Options, Notifications. Buffers for Expert Advisors and other indicators: 0 to 3 hold the histogram by colour (rising up, fading up, falling down, recovering down). Buffers 4 and 5 are fired up and fired down, 6 the squeeze-on dots and 7 the squeeze-off dots. Buffer 8 is the momentum value, and 9 its colour (0 rising up, 1 fading up, 2 falling down, 3 recovering down). Buffer 10 is the dot and 11 its colour: 0 on, 1 off, 2 neither. With three levels the colour is 3 high, 0 mid, 4 low or 5 none. Buffer 14 is the colour change and 22 the squeeze length in bars. With three levels, 6 holds the mid dots and 19, 20 and 21 the high, low and no-squeeze dots. Buffers 4 and 5 sit the distance above or below the histogram value. Empty buffers hold EMPTY_VALUE.
How it was checked
Code check: values, colours, dots and markers were compared bar by bar with an independent Python version of the original script. It ran on EURUSD, GBPJPY, XAUUSD and BTCUSD at M15, H1 and H4 with three input sets (36 files, all matched).
Code check: an every-tick run on EURUSD H1 from 2026 (8,417,316 ticks, 4,812 closed bars, 1,086 markers). It found 0 markers that changed after their bar closed and 0 on the live bar.
Questions
Does it repaint? The histogram and dots of the forming bar move with price. Once a bar has closed, its values, markers and alerts do not change.
Why does it differ from another Squeeze indicator? Versions differ in the band multiplier, the range measure and the momentum formula. This one follows LazyBear, including its band-width quirk, and LazyBear mode lets you switch that off.
Does it work in the Strategy Tester? Yes, in visual mode, on any symbol.
Does it work on gold and crypto? Yes, on any symbol and timeframe.
Will I get alerts on my phone? Yes, push is on by default. Set your MetaQuotes ID.
Is the trend filter on? No, it is off by default.
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. |
| SMC Zones MT4 | Add it to the same chart. | It draws order blocks, fair value gaps and structure breaks as context. It describes past bars. |
Related products
- Squeeze Momentum Signals: the same indicator for MetaTrader 5.
- All my products on MQL5
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.
