Blog / Strategy
Strategy

Coil Tension Breakout

Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.

What Is This Strategy?

The Coil Tension Breakout strategy is a volatility-contraction breakout system that combines a coil pattern (a short sequence of successively narrowing price bars) with an Exponential Moving Average (EMA) trend filter and the Average True Range (ATR) volatility measure. Rather than reacting to a single quiet candle, it hunts for a very specific shape: a run of bars whose individual ranges shrink bar by bar, packed inside a tight ATR envelope — a miniature pennant, or "coil," winding up. The idea behind the pattern is that when volatility is systematically wrung out of a market, "tension" tends to build and later release with a directional thrust.

This is a trend-following breakout strategy, not a mean-reversion tool. The market condition it is designed for is a directional trend that pauses to consolidate before continuing. By requiring the coil to form and then break out with the prevailing slow-EMA trend, the strategy attempts to filter out the random, two-sided breakouts that so often trap traders. It only takes a signal when the compression resolves in the same direction the market was already leaning.

As a learning tool, the Coil Tension Breakout is well suited to traders who want to study volatility compression, breakout confirmation, and structural risk placement. It illustrates several important concepts at once: how to define a pattern in code, how to gate entries with a trend filter, and how to place a stop based on market structure rather than an arbitrary distance. It is best viewed as a case study in disciplined breakout design — something to test, dissect, and understand — not as a shortcut to results.

How It Works

The strategy processes one freshly-closed bar at a time (so it does not repaint) and manages a single position at a time, symmetrically for both long and short trades. Here is what happens step by step:

coil tension breakout MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
CoilBars 4 3 8 Number of successively-narrowing bars that form the coil.
ContractionFactor 0.90 0.60 1.00 Each coil bar's range must be ≤ the previous bar's range × this value (contraction strictness).
CoilAtrMax 1.50 0.50 3.00 Maximum coil span (highest high − lowest low) expressed in ATRs — how tight the coil must be.
TrendPeriod 100 20 250 Period of the slow EMA that defines the tradable trend regime.
SlopeLookback 5 2 20 Number of bars back used to measure the slow EMA's slope.
BreakAtrMult 0.15 0.00 1.00 Decisive-break margin: the release close must clear the coil boundary by this × ATR.
AtrPeriod 14 7 28 Averaging period for the ATR volatility measure.
StopBufferAtr 0.25 0.00 1.50 Extra ATR buffer placed beyond the opposite coil edge for the structural stop.
TpAtrMult 3.00 0.50 8.00 Take-profit distance from entry, expressed in ATRs.
BreakevenAtr 1.00 0.00 3.00 Move the stop to entry after price runs this many ATRs in favour.
Lots 0.10 0.01 1.00 Position volume (lot size) per trade.
Magic 5127 0 9,999,999 Magic number used to identify and manage this EA's orders.
coil tension breakout MT5 EA — MQL5 source code

Recommended Chart Settings

The Coil Tension Breakout was designed for a single primary timeframe and is well suited to a liquid FX major such as EUR/USD or GBP/USD, or a major stock index, on timeframes from M15 to H4. The pattern logic is timeframe-agnostic, so it can be explored on other instruments and periods, but liquid markets with clean, orderly ranges tend to produce cleaner coils. Keep in mind that results will vary substantially across different symbols, sessions, and market conditions — a setting that behaves well in a trending market may behave very differently in a choppy or news-driven one. Always test any configuration on your own data before drawing conclusions.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Every strategy involves trade-offs, and being clear-eyed about them is part of learning. On the strengths side, the Coil Tension Breakout is highly selective: the requirement for a strictly narrowing sequence of bars and a tight ATR envelope and a with-trend breakout means it stays out of the market most of the time and only acts on a well-defined setup. Its structural stop is placed by market geometry rather than a fixed number of pips, and the failed-breakout exit and breakeven ratchet are designed to keep individual losses small and bounded.

On the limitations side, breakout strategies are vulnerable to false breaks — price clearing a boundary only to reverse. The trend filter and confirmation margin reduce these, but no filter eliminates them. Because the strategy is so selective, it may produce relatively few trades, which means it can take a long time to gather a meaningful sample and can sit idle during periods that do not form qualifying coils. It may underperform in ranging, directionless markets where coils repeatedly form but breakouts fail to follow through, and in violently gapping or news-driven conditions where the structural stop may be exceeded by slippage. Historically, trend-continuation breakout systems tend to do better in persistently trending environments and worse in whipsaw conditions — so the market regime matters a great deal.

Risk Management Tips

Sound risk management is what separates disciplined testing from gambling. Consider these general principles:

Risk Warning

Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.

Downloads

← Back to Blog