Mat Hold Candlestick Pattern: The Gap Nobody Teaches
Mat hold candlestick pattern: five candles with a gapped pause. Whether a bearish one exists, how deep the pause may fall, and what each reading counts.
The mat hold is a five-candle bullish continuation pattern: a long candle in the direction of an uptrend, a short candle that opens with a gap above it, two more short candles that drift back, and a long candle that resumes the trend. The three small candles in the middle are the pause, and Bajaj Broking names the pattern from them: they form a small consolidation area it calls the mat.
Neither published specification defines a bearish mat hold. The second candle also has to gap: on our own EURUSD 15-minute bars, requiring that gap takes 86 candidates down to 1.
What are the mat hold rules?
The first specification comes from the open-source TA-Lib library, which describes it as "A five-candle bullish continuation pattern: a long white candle, an upside real-body-gapped small black candle, two more small falling candles that hold within the first body, and a final white candle closing above the reaction days' highs".
The gapping candle plus two more makes three candles in the pause, and the library calls only the last two the "reaction" candles. Its containment rule and its penetration parameter are both written about the reaction candles rather than about the gapping one.
thinkorswim's version is the second specification, and it is four numbered rules:
- "The first candle is long and bullish and continues the uptrend"
- "The second candle is bearish and gaps up from the first candle"
- "The next two candles are short and form a short-term downtrend, closing within the first candle's body"
- "The fifth candle is bullish again and closes above the second candle's Open price"
Neither specification checks the trend that came before. The open-source library says so outright: "The continuation reading assumes a prior uptrend, which is not verified."
Does ChartLabs mark the mat hold?
Yes. ChartLabs marks the first specification, gap and all. Mat Hold is one of the 61 pattern switches in the Candlestick Patterns indicator, which you add from the chart's Indicators menu under the Patterns heading, and it draws on the price pane with your candles. The switch sits among the four- and five-candle patterns and is on as soon as you add the indicator, so there is nothing to turn on.
Candle five gets an MH below its low when the whole rule is met, the real-body gap and the half-body penetration limit included. The mark sits under the low because the pattern reads bullish; a bearish or neutral pattern in the same indicator puts its code above the bar's high.
Does the mat hold need a gap?
Both specifications require one. The library asks for an "upside real-body-gapped small black candle", and thinkorswim's rule 2 is that the second candle "gaps up from the first candle". Most explainers drop it: TrendSpider's rules never mention a gap, Bajaj Broking's and Enlightened Stock Trading's structures have none, StockGro demotes it to an option with a row reading "Can have small gaps between candles", and LiteFinance demotes it to a tendency, "many valid Mat Hold patterns show a noticeable gap between the candle bodies rather than just wick overlaps". Elearnmarkets keeps it in its definition, "a large upward candle, a gap higher, and three smaller candles that move downward", and then leaves it out of its own five-candle summary.
A real-body gap means the pausing candle's body sits clear of the first candle's body. Measured on our cleaned data, EURUSD and a euro-quoted index, 1 January to 31 August 2026, aggregated from 1-minute bars. Data comes from Dukascopy, tick-level where it is available, cleaned to remove anomalies, and converted to 1-minute candles as the lowest timeframe.
| Cell | Series length | Skeleton, two reaction candles | Of those, with the real-body gap |
|---|---|---|---|
| EURUSD M15 | 16,520 bars | 86 | 1 |
| EURUSD H1 | 4,130 bars | 20 | 0 |
| EURUSD H4 | 1,068 bars | 5 | 0 |
| EURUSD D1 | 208 bars | 1 | 1 |
| Index M15 | 15,181 bars | 90 | 3 |
| Index H1 | 3,897 bars | 16 | 0 |
| Index H4 | 1,041 bars | 6 | 0 |
| Index D1 | 207 bars | 2 | 0 |
With three reaction candles instead of two, the 48 EURUSD 15-minute skeletons include 0 with the gap.
In a market that trades around the clock, a bar's open is the first tick inside that bar, so consecutive bars are joined by construction and a true gap needs a session break. The index does pause for about an hour each evening, and it gets 3 gapped skeletons out of 90 rather than 1 out of 86. A session break helps and does not rescue the rule at these timeframes.
The skeleton counted above is a long white candle, a short opposite-coloured candle, the reaction candles, and a long white candle, with "long" meaning a body above the mean body of the previous 10 bars and "short" meaning a body at or below it. Those two thresholds are not ones we picked. The open-source library's Candlestick Settings page gives the long-body average and the short-body average alike as the real body averaged over the previous 10 bars at a factor of 1.0, and ChartLabs uses the same values. The library's Mat Hold page prints neither.
Is there a bearish mat hold?
No, not in either specification. ChartLabs marks the Mat Hold as bullish only, never as bearish, and the open-source library's page says the same. thinkorswim files the pattern among its bullish-only entries.
Four explainers teach one anyway. Elearnmarkets states it in a line, "Mat hold patterns can be bullish or bearish". Enlightened Stock Trading builds it into its candle list and again into its summary, where "In an uptrend, it signals a bullish mat hold continuation, while in a downtrend, it confirms a bearish mat hold continuation". StockGro teaches one too. LiteFinance teaches it twice and the two accounts disagree: first "The bearish Mat Hold pattern starts with a long white candle extending the uptrend. The next three candles are black", then nine lines later "the bearish Mat Hold starts with a long red or black bearish candle, followed by three smaller white or green bullish candles pulling back". Bajaj Broking's FAQ answers "Yes" to whether the pattern appears in bearish phases, then explains in the same answer that it is "considered valid only during a clear uptrend".
We counted the mirror anyway, with the gap and without it, on both instruments at four timeframes. It completes 0 times in all eight cells. That is a statement about eight months of two instruments rather than about every market.
How many candles are in the pause?
Three: the gapping candle plus two reaction candles, on both specifications. Several explainers describe three reaction candles, making four in the pause, and TrendSpider says "One to three small candlesticks".
On the same EURUSD 15-minute series, the skeleton with two reaction candles occurs 86 times and the skeleton with three occurs 48 times.
How far may the pause fall back?
The open-source library puts a number on it, and no explainer mentions the setting. Its penetration setting defaults to 0.5, described as the "Max fraction of the 1st white body the reaction days (3rd, 4th) may penetrate". ChartLabs uses the same limit.
There are four published readings of containment. Measured on the same 86 EURUSD 15-minute skeletons:
| Reading | Who publishes it | Count |
|---|---|---|
| Reaction candles penetrate at most half of candle 1's body | the open-source library's penetration setting, default 0.5, which ChartLabs uses | 22 |
| Reaction candles close inside candle 1's body | thinkorswim | 66 |
| Pause candles stay above candle 1's low | Bajaj Broking, Elearnmarkets | 70 |
| Pause candles stay inside candle 1's high-low range | StockGro, Enlightened Stock Trading | 15 |
Read what each test measures before you compare the numbers, because the ordering looks wrong at first glance. thinkorswim's rule is a test on closes only, so a reaction candle whose wick leaves candle 1's body still passes it. The range reading tests whole candles including wicks, which is why it is the strictest of the four even though a range is wider than a body. They are different tests, not strict and loose versions of one test.
The two specifications alone are 22 against 66, a factor of 3.0. The widest pair is 70 against 15, a factor of 4.7. Whichever you pick, write it down: a mat hold count without its containment rule is not comparable with anyone else's.
What must the fifth candle do?
Five published answers.
| Reading | Who publishes it | Count |
|---|---|---|
| Closes above the reaction candles' highs | the open-source library | 55 |
| Closes above candle 2's open | thinkorswim | 78 |
| Closes above candle 1's close | TrendSpider | 78 |
| Closes above candle 1's high | Bajaj Broking, StockGro, Enlightened Stock Trading | 67 |
| Engulfs the body of the third pause candle | LiteFinance | see below |
The first four are counted on the same 86 two-candle skeletons. LiteFinance's cannot go in that column, because it teaches a three-candle pause, so its rule belongs to the 48 three-candle skeletons: the fifth candle "engulfs the body of the third candle in the series", stated again as a candle that "covers the body of the third candle entirely". Measured there it gives 18 of the 48, where the mildest reading, a close above candle 1's close, gives 43 of the same 48. It is the strictest fifth-candle rule we found published, and none of the 18 has the gap.
TrendSpider states two of these on one page: its structure bullet asks for a close "above the first candlestick's close", and its entry step asks for a close "above the high of the first candlestick". Those are different levels on the same bar, so decide which one you mean before you count.
How often does a complete mat hold actually print?
Once, on 16,520 EURUSD 15-minute bars, read the way ChartLabs marks it. Read thinkorswim's way, not at all.
| Cell | Whole rule as ChartLabs marks it | thinkorswim's whole rule |
|---|---|---|
| EURUSD M15 | 1 | 0 |
| EURUSD H1 | 0 | 0 |
| EURUSD H4 | 0 | 0 |
| EURUSD D1 | 1 | 0 |
| Index M15 | 2 | 0 |
| Index H1 | 0 | 0 |
| Index H4 | 0 | 0 |
| Index D1 | 0 | 0 |
One occurrence on 208 daily bars, over eight months, is not a rate and does not generalise, and nothing here says what price did after any of those bars.
The detectors are not broken. On hand-built textbook cases taken from each specification's own wording, each one marks 1 match: the three-candle skeleton, its gap, the first specification's whole rule and thinkorswim's.
One forecast worth not repeating: StockGro writes that "When you see a Mat Hold pattern on the chart, it tells you that the stock or index will make new highs." Nothing we read publishes a tested result for the pattern, and neither do we.
How is the mat hold different from the rising three methods?
Two differences, both in the pause. The rising three methods has no gap anywhere in it, where the mat hold's pause opens with one. And the mat hold's pullback has a named depth limit, the penetration setting, which the three methods has no equivalent for. The open-source library's See Also list for the mat hold points at Rising/Falling Three Methods and Upside/Downside Gap Three Methods. Rising and falling three methods has its own containment argument and its own counts.
How do you backtest a mat hold?
Four rule choices, written down before you count anything.
- Two reaction candles or three. On EURUSD 15-minute bars that is 86 skeletons against 48.
- Gap or no gap. That is the 86-to-1 decision, and it is the one both specifications make for you.
- Which containment rule, from the four above, and whether it tests closes or whole candles. Between the two specifications alone that is 22 against 66.
- Which fifth-candle threshold, from the five above, written as a level rather than a label.
Then the mechanics.
- Set the long-body and short-body thresholds against a stated average and do not change them mid-count. The built-in uses the mean body of the previous 10 bars.
- Fix the instrument and timeframe first. ChartLabs session setup helps here: pick random dates by length and period, or hand-pick a range.
- Step bar by bar with the next bar hidden. A five-candle pattern is not complete until candle 5 closes, so a method that shows you candle 5 while you are judging candle 3 is not a test of this pattern.
- Count the skeleton before the gap and after it, as two numbers, and keep near-misses in their own column.
- Charge yourself costs on anything you trade. Commission and slippage are applied per symbol, so the P&L reflects what trading actually costs.

Four rule choices and two thresholds is more than anyone holds in their head across five candles. The built-in Mat Hold switch checks the whole first specification for you. For thinkorswim's rule or your own combination, the built-in Pine Script editor lets you write it once instead of judging it by eye, and "Example: Mark bars by a rule" on the Pine Scripts tab opens a copy to start from. There is a Notes column in the Orders panel and a note button on the chart while a trade is open, and notes come out in the CSV export, so the rule version stays attached to the trade that used it. Log the instrument, the timeframe and the date range next to it, along with the near-miss count.
Where each tool helps
| What it gives you | |
|---|---|
| The open-source TA-Lib library | A published formula, a named penetration parameter defaulting to 0.5, two stated limits (the reaction candles' colours are not checked, and the prior uptrend is not verified), and long-body and short-body thresholds on a separate Candlestick Settings page rather than on the pattern's own page |
| thinkorswim | A second specification as four numbered rules, filed bullish-only, with length, trend setup and body factor as inputs and no defaults given for them |
| ChartLabs | Bar-by-bar replay on cleaned data from Dukascopy, your own indicators in Pine Script, and a note on every trade |
Facts in that table come from each vendor's own page. Which fits depends on whether you want a formula or the reps.
Related reading
- Forex backtesting, for how pair and session choices move a count that turns on gaps.
- Backtesting a trading strategy: a beginner's guide, for the surrounding process.
- Backtesting accuracy, slippage and data quality, for why the data under a pattern count matters.
Next step
Pick two reaction candles or three, gap or no gap, one containment rule and one fifth-candle threshold. Write all four down, then count them on a stretch of history you have not studied.
Start the 7-day free trial, no credit card needed, and step through the bars yourself.
Related Topics
Related
Forex Backtesting: Test Your Strategy on Real Data
A practical guide to backtesting forex strategies: why session dynamics, spread variation, and pair-specific behavior change your results, what clean historical data actually means, and a five-step process for testing a strategy before you risk real capital.
Backtesting a Trading Strategy: A Beginner's Guide
What backtesting is, why it matters, and how to run one step by step: defining your rules, choosing clean historical data, stepping through the chart trade by trade, logging results, and reading the metrics that tell you whether your strategy has a real edge.
Backtesting Accuracy: How Slippage and Data Quality Matter
Why backtest results and live results drift apart, and what actually closes the gap: clean tick data, honest spread assumptions, and commission and slippage modelled directly on every trade you log.