MethodKit Band Squeeze Breakout
- Experts
- Version: 1.0
- Activations: 5
MethodKit Band Squeeze Breakout
This Expert Advisor implements a well-known, public trading method and is offered for reference. It does not promise profit. Trading decisions and risk are yours. Past results do not guarantee future results. It is sold as a one-off tool, with no individual advice, signals, or set-up service. It is not an official product of, and is not endorsed or licensed by, any third-party author or rights holder.
Short description
Enters when a bar closes outside a standard-deviation band after the band has sat inside an ATR channel, with the stop at the middle band, and exits when the close comes back through the middle.
Breakout (band squeeze, then a close outside the outer band). Default stop and exit: the method's own level = the middle band (fallback ATR x 2). No take profit by default. Exit on a close back through the middle.
Designed around EURUSD, USDJPY and XAUUSD on H1 or H4. It can be attached to any symbol and timeframe the broker offers. These are the conditions the method is built around, not a performance claim.
How it works
This is a reference implementation of a publicly described squeeze-and-break method. The outer band is a standard-deviation band around a moving average (default period 20, deviation 2). The inner channel is an EMA of the same period plus or minus a multiple of ATR (default 1.5). A squeeze is in effect when both outer bands sit inside the inner channel. After a set number of closed squeeze bars (default 3), a buy is taken if the next bar closes above the upper outer band, and a sell if it closes below the lower outer band. The stop is the middle of the outer band. The position is also closed when a later bar closes back through that middle. A stop loss is always attached. There is no grid, averaging down, or martingale. It is not an official product of, and is not endorsed or licensed by, any third-party author or rights holder.
Shared risk controls
A stop loss is always attached. Lot size is a fixed lot or a percentage of equity at risk (hard cap 5 percent), plus a maximum-lot cap. Maximum open positions (default 1). A daily loss stop (default 3 percent of the day-start balance). A spread filter, a magic number, and broker GMT offset and DST inputs. No grid, no averaging down, no martingale.
Method inputs
- Outer band period (InpSQBandPeriod), default 20: Period of the standard-deviation band.
- Outer band deviation (InpSQBandDev), default 2.0: Width of the outer band in standard deviations.
- Inner channel EMA / ATR period (InpSQChPeriod), default 20: Period of the inner ATR channel.
- Inner channel ATR multiplier (InpSQChMult), default 1.5: Half-width of the inner channel, in ATR units.
- Minimum closed bars of squeeze before a break (InpSQMinBars), default 3: How long the squeeze must last on closed bars.
The common inputs (lot mode, fixed lot, risk percent, maximum lot, stop-loss mode, maximum positions, daily loss stop, spread filters, magic number, broker time, and the others listed in the user manual) are the same as in the other MethodKit EAs.
Important
This software does not predict markets and is not investment advice.
Trading leveraged products (FX, CFDs and similar) carries a high risk of loss. You can lose more than you expect, including, in some cases, more than your deposit.
That includes backtests and any forward or demo results.
Please test in the Strategy Tester and on a demo account, and confirm the broker's GMT offset, before any live use. Support is limited to installation questions and bug fixes.
Nothing in this description is a solicitation to buy or sell any financial instrument.
Installation
Copy the compiled .ex5 file into the MQL5/Experts folder, attach it to a chart, set the broker GMT offset, and allow algorithmic trading. Test it in the Strategy Tester and on a demo account first. See the user manual for the full input list.
