Mat hold and rising three methods use different boundaries
TA-Lib implements mat hold with a bullish first candle, a bearish second candle and a bullish fifth candle; candles 3 and 4 can have either color. Their bodies step lower but penetrate only a limited part of candle 1. TradingView describes rising three methods with three small bearish middle bodies inside the first candle range. These definitions should not share a detector merely because both use five candles.
- A body gap does not require a gap between wicks. If candle 2 low overlaps candle 1 high, the body-gap test can still pass.
- In the example below, candle 2 body is 111 to 113 while candle 1 high is 111. Its body is not contained in candle 1 range, so it fails that rising-three-methods condition.
- Some definitions impose additional color or wick restrictions. Keep the source and settings with the pattern label; different signal counts may reflect different rules.
| Test | Mat hold structure used here | TradingView rising three methods description |
|---|---|---|
| Second candle | Bearish body entirely above the first body | Small bearish body inside candle 1 high-low range |
| Middle group | Three small bodies; the last two overlap the upper part of body 1 | Three small bearish bodies within candle 1 range |
| Fifth close | Above the highest high of candles 2 to 4 | Above the close of candle 1 |
| Trend | Uptrend measured before candle 1 | Existing uptrend; built-in trend options are configurable |