SGT Squeeze Momentum EA is a paid MT4 and MT5 expert advisor (version 1.01). It trades BUY and SELL signals from the volatility squeeze release (Bollinger Bands inside the Keltner Channel) with a momentum check, on closed candles only. A license or trial key is required on a demo or live chart ($100 lifetime or $20 per month; one license = one account). The Strategy Tester does not need a key; the same file is the free backtest download.
Install on MT4
- In MetaTrader 4, choose File -> Open Data Folder.
- Open
MQL4/Experts/ and copy SGT_Squeeze_Momentum_EA.ex4 into it.
- Allow WebRequest: Tools -> Options -> Expert Advisors -> tick "Allow WebRequest for listed URL" -> add
https://investortipster.com.
- In the Navigator, right-click Expert Advisors and choose Refresh, or restart the terminal.
- Open a chart (for example XAUUSD H4) and attach SGT Squeeze Momentum EA.
- On the Common tab allow live trading, and switch AutoTrading on in the toolbar.
- On the Inputs tab paste your key into Enter your License Key, review the trade settings, then click OK.
Install on MT5
- In MetaTrader 5, choose File -> Open Data Folder.
- Open
MQL5/Experts/ and copy SGT_Squeeze_Momentum_EA.ex5 into it.
- Allow WebRequest: Tools -> Options -> Expert Advisors -> tick "Allow WebRequest for listed URL" -> add
https://investortipster.com.
- In the Navigator, right-click Expert Advisors and choose Refresh, or restart the terminal.
- Open a chart and attach SGT Squeeze Momentum EA.
- On the Common tab allow Algo Trading, and turn Algo Trading on in the toolbar.
- On the Inputs tab paste your key into Enter your License Key, review the trade settings, then click OK.
Price and license
- Lifetime license: $100 (one payment).
- Monthly license: $20 per month.
- One license works on one MetaTrader account (the buyer's own account), on one terminal at a time.
- The SGT Squeeze Momentum indicator is free and needs no license.
License
SGT Squeeze Momentum EA is a paid product. It uses the Investor Tipster license API (product slug sgt-squeeze-momentum-ea). The key is sent only in the X-License-Key header, never in a URL, and it is never printed in full in the log.
- Get your License Key from your Investor Tipster dashboard and bind your own MT4 or MT5 account number there (the API never binds an account by itself).
- Paste the key into the Enter your License Key input.
- Add
https://investortipster.com under Tools -> Options -> Expert Advisors -> Allow WebRequest for listed URL. Without it the check fails with error 4060 (MT4) or 4014 (MT5), the panel says so, and no new trades are opened.
- A check runs when the EA starts and then about every hour. One license is for one account and one terminal at a time. If the check does not return valid (wrong key, expired, other terminal in use, no connection) the EA opens no new trades (existing positions and their stop loss / take profit stay as they are), draws nothing on the chart except the small license panel, and retries after a few minutes.
- Removing the EA or closing the chart tells the server to release the terminal slot.
- The Strategy Tester needs no key: the license check is skipped in the tester. The same
SGT_Squeeze_Momentum_EA file is the free backtest download; on a demo or live chart you enter your key.
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). 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.
How trades are handled
- Signals come from the last closed candle only.
- A signal that cannot be sent (failure, spread above your limit, outside the trading hours window) stays pending and is retried on later ticks. It expires after Signal Valid For (bars) bars, and a newer signal replaces it.
- With Use Signal SL / TP on, the order carries the signal's stop loss and take profit. If price has already moved beyond the stop or the target, the signal is skipped. Stops are widened to the broker's minimum stop distance if needed.
- The EA closes its own position before opening the other side (when Reverse on Opposite Signal is on), holds at most one position, and never buys and sells at the same time.
- It never modifies or closes trades that belong to another magic number or to a manual order. On MT5, if another magic number or a manual position is open on the symbol, it does not trade and keeps the signal until it expires.
- Max Trades Per Day counts orders opened by this EA for the current broker-server day, per symbol and magic number. The counter is kept in the terminal's global variables, so it survives a restart.
- Use Trading Hours limits new entries and reversals to the window you set (broker server time).
- If the license is not valid, no new trades are opened and the chart shows only the small license panel. Existing positions keep their broker-side stop loss and take profit.
How to backtest
The Strategy Tester needs no License Key: the license check is skipped there. The same SGT_Squeeze_Momentum_EA file runs on a live or demo chart once you enter your key.
- Open the Strategy Tester: MT4 View -> Strategy Tester (Ctrl+R); MT5 View -> Strategy Tester (Ctrl+R).
- Choose SGT Squeeze Momentum EA, the symbol (for example XAUUSD) and the timeframe (for example H1).
- Pick the date range. In MT4 use model Every tick (best quality needs history data of the symbol); in MT5 use Every tick based on real ticks if your broker provides them, otherwise Every tick.
- Set the deposit and leverage you want to study. Keep Lot Size small (default 0.01).
- Open the EA's inputs. No license key is needed in the tester. Review the squeeze, signal and trade settings. If your history is short, check Bars to Analyze.
- Click Start. For a look at the signals on the chart, tick Visual mode (MT4 "Visual mode"; MT5 "Visual"): the BUY / SELL boxes and Entry / SL / TP lines are drawn like on a live chart. Without visual mode the EA skips all drawing to run faster.
- Read the Results, Graph and Report tabs. Change one setting at a time (for example the minimum squeeze bars, the trend filter, the stop multiplier or the risk : reward) and compare runs on the same period.
- Spreads, commissions and slippage in the tester differ from real trading. A test shows how the rules behaved on past data; it does not predict future results. Always follow with a demo account.
A 1-year XAUUSD comparison on M15, M30, H1, H4 and D1 is in Backtest results by timeframe later in this manual. Best tested timeframe in that test: H4.
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). |
Trade Settings
| Label |
Default |
Meaning |
| Lot Size |
0.01 |
Volume of each new order, rounded to the symbol's lot step. |
| Use Signal SL / TP (off = fixed points) |
true |
On: the order uses the signal's ATR / swing stop and its target. Off: the fixed point values below are used. |
| Fixed Stop Loss (points) |
0 |
Stop loss in broker points when Use Signal SL / TP is off. 0 = none. |
| Fixed Take Profit (points) |
0 |
Take profit in broker points when Use Signal SL / TP is off. 0 = none. |
| Max Spread (points, 0 = off) |
0 |
Skip a new entry while the spread is above this value. The signal stays pending and is retried. |
| Magic Number |
20261202 |
Identifies this EA's orders. It never touches other magic numbers or manual trades. |
| Slippage |
30 |
Maximum slippage in points. |
| Reverse on Opposite Signal |
true |
On: close the current position and open the other side. Off: close only, do not open the opposite trade. |
| Signal Valid For (bars) |
3 |
A signal that could not be sent (spread, failure, hours) is dropped after this many bars. |
| Max Trades Per Day (0 = off) |
5 |
Stops opening new trades after this many for the current server day (per symbol and magic number). |
| Use Trading Hours |
false |
Only open or reverse trades inside the window below. |
| Start Hour (server time) |
8 |
First hour of the window (broker server time, 0-23). |
| End Hour (server time) |
20 |
Hour the window ends (not included). A start later than the end means a window across midnight. |
License
| Label |
Default |
Meaning |
| Enter your License Key |
(empty) |
Paste the key from your Investor Tipster dashboard. |
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 the squeeze state and the momentum direction, the last signal with date, time and price, Entry / Stop Loss / Take Profit and status, account number, spread, position, P&L, trades today, license status and expiry, and the server message. Footer: Investor Tipster · investortipster.com · SGT · smartgoldtrade.com
Click the header to collapse it. Panel and chart objects are removed when the EA is detached, the timeframe or symbol changes, or the chart is closed.
FAQ
Why did it not open a trade at the signal?
Check AutoTrading / Algo Trading, the license status in the panel, the max spread filter, the trading hours window, the daily trade limit, and (MT5) whether another position is open on the symbol. The reason is printed in the Experts log.
Does the chart drawing affect trading?
No. The drawings are for review. In the non-visual Strategy Tester the EA skips all drawing.
Does the EA draw the histogram?
No. The momentum histogram is part of the free SGT Squeeze Momentum indicator. The EA draws the signal marks, the Entry / SL / TP lines and the panel.
Does one key work on two computers at once?
No. One license is for one account and one terminal at a time. Remove the EA on the first terminal so it can release the session.
Can I run it with other expert advisors?
Yes. On MT4 it ignores other experts' orders. On MT5 it waits while any other magic number or manual position is open on the same symbol.
Backtest results by timeframe (1 year, XAUUSD, lot 0.01)
XAUUSD, 2025.11.30 to 2026.11.30, MT5 Strategy Tester on MetaQuotes-Demo data, model Every tick based on real ticks (history quality 99% real ticks on every timeframe), deposit 10 000 USD, leverage 1:100, default inputs, lot 0.01. Spread came from the real tick data (no fixed spread, spread filter off).
| TF |
Net profit (USD) |
Profit factor |
Trades |
Win % |
Max equity DD $ (%) |
Sharpe |
Recovery factor |
Largest loss (USD) |
Max consecutive losses (USD) |
| M15 |
-60.74 |
0.99 |
414 |
33.82% |
950.07 (8.74%) |
-0.29 |
-0.06 |
-46.36 |
11 (-122.66) |
| M30 |
-13.83 |
1.00 |
207 |
34.78% |
648.43 (6.16%) |
-0.07 |
-0.02 |
-74.81 |
9 (-203.78) |
| H1 |
48.92 |
1.02 |
118 |
35.59% |
671.05 (6.54%) |
0.16 |
0.07 |
-145.17 |
8 (-215.16) |
| H4 |
166.75 |
1.11 |
40 |
37.50% |
652.12 (6.18%) |
0.66 |
0.26 |
-102.18 |
7 (-381.37) |
| D1 |
1 190.64 |
3.87 |
8 (low sample) |
62.50% |
409.52 (3.81%) |
0.91 |
2.91 |
-179.32 |
2 (-313.27) |
Best tested timeframe: H4. H4 had the highest profit factor among the timeframes with enough trades (1.11 over 40 trades), a maximum equity drawdown of 652.12 USD (6.18%), and the highest Sharpe ratio (0.66) and recovery factor (0.26) of those four. D1 showed a profit factor of 3.87, the highest net profit and the lowest maximum equity drawdown of the five (409.52 USD, 3.81%), but on only 8 trades, so it is too small a sample to rely on. H1 finished slightly ahead (profit factor 1.02, 118 trades). M30 was about break-even (profit factor 1.00, net -13.83 USD). M15 had a profit factor of 0.99 and a small loss in this test, with the largest maximum equity drawdown of the five (8.74%).
Ranking (by profit factor and drawdown, timeframes with at least about 20 trades):
- H4: PF 1.11, 40 trades, max equity DD 6.18%
- H1: PF 1.02, 118 trades, max equity DD 6.54%
- M30: PF 1.00, 207 trades, max equity DD 6.16% (slight loss in this test)
- M15: PF 0.99, 414 trades, max equity DD 8.74% (loss in this test)
Low sample (fewer than 20 trades), not ranked: D1 PF 3.87, 8 trades, DD 3.81%
These are results of one test on one broker's historical data. Past results, in the tester or live, do not guarantee future results. Spread, commission, swap and execution differ between brokers and accounts. Test on a demo account before trading live.
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.