Login Sign Up
XAUUSD3,627.30▼ -0.73% XAGUSD43.015▼ -1.67% EURUSD1.09373 BTCUSD58,795.02▼ -2.30% GBPUSD1.33941▲ 0.94%· Tue 09:00 USDJPY158.673▼ -0.55%· Tue 09:00 US3046,214.3▲ 1.33%· Mon 19:30 US5006,581.8▲ 1.13%· Mon 19:30 GER4025,325.7▼ -0.35%· Thu 09:41 AUDUSD0.69697▲ 0.38%· Tue 09:00 USDCAD1.37411▼ -0.04%· Tue 09:00
Free Indicator MT4MT5 v1.01

SGT Squeeze Momentum

SGT Squeeze Momentum shows when volatility is compressed (Bollinger Bands inside the Keltner Channel) and how momentum is turning, in a separate sub-window, and marks BUY and SELL signals on the main chart only after a candle has closed, with …

SGT Squeeze Momentum MT5 indicator on an H4 gold XAUUSD chart with the momentum histogram and squeeze dots in the sub-window, a SELL box with Entry, SL and TP lines extending to the current bar, and the Investor Tipster panel

About

SGT Squeeze Momentum is a free, original Investor Tipster tool built on the public volatility-squeeze idea. The code is written from scratch for MT4 and MT5. It reads closed candles for its signals, so a BUY or SELL mark never repaints.

What it shows

  • Squeeze: the Bollinger Bands (20, 2.0) are inside the Keltner Channel (20, 1.5 x range). Volatility is compressed. When the bands move back outside the channel the squeeze is off. On H4 and above the channel multiplier is widened a little by default (Auto Keltner Width).
  • Momentum histogram (sub-window): a linear regression of the price's distance from the mean of the highest-high / lowest-low midpoint and the close average. Four colors: above zero rising, above zero falling, below zero falling, below zero rising.
  • Zero-line dots: squeeze on (gold), squeeze off (cyan), no squeeze (gray).
  • BUY / SELL on closed candles only: the arrow and filled box on the main chart, with Entry, Stop Loss and Take Profit lines.

Signals.

Squeeze length. A squeeze counts when it has been on for at least Min Bars in Squeeze bars in a row. Default 0 = automatic: 5 bars up to M30, 4 bars on H1 / H2, 3 bars on H4 and above. BUY (path 1): after such a squeeze ends, on the release bar or on any of the next 3 bars (Signal Window After Release), the first closed bar with momentum above zero and higher than on the previous bar. SELL: the mirror, momentum below zero and lower than on the previous bar. BUY / SELL (path 2): if the squeeze ended no more than 10 bars ago (Recent Squeeze Window) and path 1 has not given a signal yet, momentum crossing zero upward gives a BUY and downward a SELL. Each squeeze gives at most one signal. Optional trend filter (off by default): BUY only when the signal candle closes above the EMA (default 200), SELL only when it closes below it. Entry is the close of the signal candle. Stop Loss is ATR(14) x 1.5 away from the entry, or beyond the recent swing (your choice). Take Profit is the stop distance x 2.0 (risk : reward 2.0). Older signals' Entry, Stop Loss and Take Profit lines end at the bar where the stop or target would have been reached. The latest signal's lines stay drawn to the current bar until a new signal appears.

Panel. The boxed panel (default: bottom left) shows the squeeze state, the momentum direction, the last signal with date, time and price on its own line, Entry, Stop Loss, Take Profit, the signal status, and "License: Free". Click the header to collapse it.

Works on any symbol and timeframe your broker offers, including gold (XAUUSD) and forex pairs. This is a technical study tool. It does not guarantee results. Test it on a demo chart first.

Footer on the panel: Investor Tipster · investortipster.com · SGT · smartgoldtrade.com

User manual

Install, inputs, panel, FAQ

SGT Squeeze Momentum is a free MT4 and MT5 indicator (version 1.01). There is no license key and it makes no internet connection. It shows the volatility squeeze and the momentum in a separate sub-window and marks BUY and SELL signals on the main chart on closed candles only, with Entry, Stop Loss and Take Profit lines. It is a technical analysis tool and does not promise any result.

What you get

  • Squeeze: the Bollinger Bands (20, 2.0) are inside the Keltner Channel (20, 1.5 x range). Volatility is compressed. When the bands move back outside the channel the squeeze is off. On H4 and above the channel multiplier is widened a little by default (Auto Keltner Width).
  • Momentum histogram (sub-window): a linear regression of the price's distance from the mean of the highest-high / lowest-low midpoint and the close average. Four colors: above zero rising, above zero falling, below zero falling, below zero rising.
  • Zero-line dots: squeeze on (gold), squeeze off (cyan), no squeeze (gray).
  • BUY / SELL on closed candles only: the arrow and filled box on the main chart, with Entry, Stop Loss and Take Profit lines.

Install on MT4

  1. In MetaTrader 4, choose File -> Open Data Folder.
  2. Open MQL4/Indicators/.
  3. Copy SGT_Squeeze_Momentum.ex4 into that folder.
  4. In the Navigator, right-click Indicators and choose Refresh, or restart the terminal.
  5. Open a chart (for example XAUUSD H4) and drag SGT Squeeze Momentum onto it. It opens its own sub-window.
  6. Set the inputs if you want, then click OK. No DLL permission, WebRequest setting or key is needed.

Install on MT5

  1. In MetaTrader 5, choose File -> Open Data Folder.
  2. Open MQL5/Indicators/.
  3. Copy SGT_Squeeze_Momentum.ex5 into that folder.
  4. In the Navigator, right-click Indicators and choose Refresh, or restart the terminal.
  5. Open a chart and attach SGT Squeeze Momentum. It opens its own sub-window.
  6. Set the inputs if you want, then click OK. No DLL permission, WebRequest setting or key is needed.

How to read it

  • Zero-line dots: gold = squeeze on (Bollinger Bands inside the Keltner Channel), cyan = squeeze off (bands outside the channel), gray = neither.
  • Histogram: the momentum value. Bright green: above zero and rising. Dark green: above zero but falling. Bright red: below zero and falling. Dark red: below zero but rising.
  • BUY / SELL box: an arrow and a filled box on the main chart, on the closed candle that gave the signal. A BUY sits below the low, a SELL above the high. The box keeps a gap from the candle and stays inside the chart.
  • Entry / SL / TP lines: blue Entry line at the signal candle's close, red Stop Loss, green Take Profit. Older signals' lines end at the bar where the stop or target would have been reached. The latest signal's lines extend to the current bar until a new signal appears.

The signal rule

Squeeze length. A squeeze counts when it has been on for at least Min Bars in Squeeze bars in a row. Default 0 = automatic: 5 bars up to M30, 4 bars on H1 / H2, 3 bars on H4 and above. BUY (path 1): after such a squeeze ends, on the release bar or on any of the next 3 bars (Signal Window After Release), the first closed bar with momentum above zero and higher than on the previous bar. SELL: the mirror, momentum below zero and lower than on the previous bar. BUY / SELL (path 2): if the squeeze ended no more than 10 bars ago (Recent Squeeze Window) and path 1 has not given a signal yet, momentum crossing zero upward gives a BUY and downward a SELL. Each squeeze gives at most one signal. Optional trend filter (off by default): BUY only when the signal candle closes above the EMA (default 200), SELL only when it closes below it. Entry is the close of the signal candle. Stop Loss is ATR(14) x 1.5 away from the entry, or beyond the recent swing (your choice). Take Profit is the stop distance x 2.0 (risk : reward 2.0).

Signals are written only when a candle has closed, so a mark never moves or disappears afterwards. The histogram and dots of the forming candle update while it is open; they settle when it closes. If no momentum condition is met after the release, there is no signal for that squeeze.

How to backtest

An indicator cannot run in the Strategy Tester, so check it visually on history:

  1. Open a chart of the symbol and timeframe you want to study and attach the indicator. Raise Bars to Analyze if you want to look further back (default 1000 bars).
  2. Scroll back through the chart. Every past BUY / SELL box stays where it was given.
  3. Turn on Show Entry / SL / TP Lines and set Signals With Lines high enough to cover the period. Older signals' lines stop at the bar where the target or the stop was reached, so you can read how each signal played out. The latest signal's lines stay drawn to the current bar until a new signal appears. The panel status shows Open, Target reached or Stop reached for the last signal.
  4. Try the optional EMA trend filter, the stop mode (ATR from entry or beyond the swing) and the risk : reward value, and compare on demo before using any setting.
  5. For an automatic test with orders, use SGT Squeeze Momentum EA in the Strategy Tester (its manual explains the steps).

Past behavior on a chart does not predict future results.

Inputs (defaults)

Squeeze Settings

Label Default Meaning
Bollinger Length 20 Number of bars for the Bollinger Bands average and deviation (default 20).
Bollinger Multiplier 2.0 Standard deviations from the average to each band (default 2.0).
Keltner Length 20 Number of bars for the Keltner Channel average and range (default 20).
Keltner Multiplier 1.5 Channel half-width as a multiple of the average range (default 1.5).
Keltner Range True Range True Range (default) or High - Low, averaged over the Keltner Length.
Auto Keltner Width (H4 and above) true On: the Keltner multiplier is widened on higher timeframes (x1.10 on H4, x1.20 on D1 and above), because closes drift further from their average there and a fixed 1.5 almost never finds a squeeze. Off: the multiplier is used as typed on every timeframe.
Momentum Length 20 Bars used for the linear-regression momentum (default 20).

Signals

Label Default Meaning
Show Buy/Sell Signals true Draw the BUY / SELL arrow with its filled label box on the main chart at each signal.
Min Bars in Squeeze (0 = auto) 0 How many bars in a row the squeeze must be on before it can give a signal. 0 = automatic: 5 bars up to M30, 4 on H1 / H2, 3 on H4 and above.
Signal Window After Release (bars) 3 After a long squeeze ends, the signal may come on the release bar or on any of this many following bars, on the first bar whose momentum agrees (default 3, 0 = release bar only).
Recent Squeeze Window (bars, 0 = off) 10 Second path: if the squeeze ended no more than this many bars ago and gave no signal yet, momentum crossing zero gives the signal (default 10, 0 = off).
Use Trend Filter (EMA) false Optional. On: BUY only when the signal candle closes above the EMA, SELL only below it. Off by default.
Trend EMA Length 200 Length of the trend EMA used by the filter (default 200).
Show Entry / SL / TP Lines true Draw Entry, Stop Loss and Take Profit lines for the latest signals.
Signals With Lines 3 How many of the newest signals keep their Entry / SL / TP lines.
Stop Loss Based On ATR from entry ATR from entry: stop = entry minus / plus ATR x multiplier. Beyond recent swing: stop = the lowest low (BUY) or highest high (SELL) of the lookback, minus / plus ATR x multiplier.
Stop Loss (ATR multiplier) 1.5 ATR (14) multiplier for the stop distance (default 1.5).
Swing Lookback (bars) 10 Bars (including the signal candle) searched for the swing extreme when the stop is based on the swing.
Take Profit (risk : reward) 2.0 Take profit distance as a multiple of the stop distance (2.0 = 2R).

Oscillator Colors

Label Default Meaning
Above Zero Rising green Histogram color when momentum is above zero and rising.
Above Zero Falling dark tint Histogram color when momentum is above zero and falling.
Below Zero Falling red Histogram color when momentum is below zero and falling.
Below Zero Rising dark tint Histogram color when momentum is below zero and rising.
Squeeze On Dot gold Zero-line dot color while the Bollinger Bands are inside the Keltner Channel.
Squeeze Off Dot cyan Zero-line dot color while the Bollinger Bands are outside the Keltner Channel.
No Squeeze Dot gray Zero-line dot color when neither of the two cases applies.
Histogram Width 3 Thickness of the histogram bars (1 to 5).

Alerts

Label Default Meaning
Alert on New Signal true Pop-up alert when a new signal appears on a freshly closed candle.

Chart Display

Label Default Meaning
Bars to Analyze 1000 How many recent bars are analysed and drawn (minimum 150).

Panel

Label Default Meaning
Show Panel true Draw the on-chart information panel.
Panel Corner Bottom Left Chart corner for the panel. Default Bottom Left.
Panel Offset X 15 Horizontal margin from the chosen corner, in pixels at 120 DPI (scaled to your screen).
Panel Offset Y 30 Vertical margin from the chosen corner, in pixels at 120 DPI (scaled to your screen).

The panel

The boxed panel (default Bottom Left, 15 / 30 pixels from the corner, scaled to your screen DPI) shows:

  • Squeeze: ON with the number of bars it has lasted, OFF, or NONE, for the last closed candle.
  • Momentum: UP or DOWN, rising or falling, in the histogram color.
  • Last signal: BUY or SELL on one line, with date, time and price on the line below.
  • Entry, Stop Loss, Take Profit of that signal and its Status (Open, Target reached, Stop reached).
  • License: Free.
  • Footer: Investor Tipster · investortipster.com · SGT · smartgoldtrade.com

Click the header to collapse or expand the panel. All panel and chart objects are removed when you detach the indicator, change the timeframe or symbol, or close the chart.

FAQ

Does a signal repaint? No. Signals use closed candles only. The forming candle never gets a signal.

Why is there no signal at every squeeze release? A signal needs a squeeze that lasted at least the minimum number of bars, then momentum on the right side of zero and moving in the signal direction within a few bars of the release (or a zero cross shortly after it), and (if you turn it on) the trend filter to agree. Higher timeframes have fewer squeezes than M15, so fewer signals is normal there.

Which timeframes and symbols? Any. Lower timeframes give more squeezes and more noise; compare on a demo chart.

Can I change the colors? Yes. All histogram and dot colors are inputs.

Risk disclaimer

Trading forex, gold and other leveraged markets involves a risk of loss. This is a technical analysis tool; it does not promise profits or any particular result. Use a demo account first and never risk money you cannot afford to lose.

Inputs (defaults)

  • Bollinger Length = 20
  • Bollinger Multiplier = 2.0
  • Keltner Length = 20
  • Keltner Multiplier = 1.5
  • Keltner Range = True Range
  • Auto Keltner Width (H4 and above) = true
  • Momentum Length = 20
  • Show Buy/Sell Signals = true
  • Min Bars in Squeeze (0 = auto) = 0
  • Signal Window After Release (bars) = 3
  • Recent Squeeze Window (bars, 0 = off) = 10
  • Use Trend Filter (EMA) = false
  • Trend EMA Length = 200
  • Show Entry / SL / TP Lines = true
  • Signals With Lines = 3
  • Stop Loss Based On = ATR from entry
  • Stop Loss (ATR multiplier) = 1.5
  • Swing Lookback (bars) = 10
  • Take Profit (risk : reward) = 2.0
  • Above Zero Rising = green
  • Above Zero Falling = dark tint
  • Below Zero Falling = red
  • Below Zero Rising = dark tint
  • Squeeze On Dot = gold
  • Squeeze Off Dot = cyan
  • No Squeeze Dot = gray
  • Histogram Width = 3
  • Alert on New Signal = true
  • Bars to Analyze = 1000
  • Show Panel = true
  • Panel Corner = Bottom Left
  • Panel Offset X = 15
  • Panel Offset Y = 30
Trading involves risk. Indicators show past price behaviour and do not guarantee results. Test on a demo account first.