M Pattern Trading (Double Top): Meaning, Strategy, and AI Detection
The M pattern, also known as a double top chart pattern, is a classic bearish reversal formation that appears after an uptrend. It resembles the letter "M", formed by two consecutive price peaks at a similar resistance level with an intermediate trough that establishes the neckline.
In testing across 180 daily and 4-hour candlestick charts in 2026, Pineify AI achieved an 83% detection accuracy on clear screenshots where both peaks and the intervening valley were visible with at least 30 preceding candles.
AI Detection
How Pineify AI Identifies M Pattern Trading & Double Top Chart Scanner | Pineify
Pineify processes your chart screenshot through a multi-stage computer vision and pattern matching pipeline purpose-built for candlestick charts.
Upload Your Screenshot
Take a screenshot of any candlestick chart — TradingView, ThinkOrSwim, webull, or a phone photo. Pineify reads the image and identifies the pattern automatically.
AI Pattern Recognition
Pineify AI scans uploaded chart screenshots for two distinct swing highs separated by a central reaction trough. The computer vision model checks price symmetry between both peaks within a 3% to 5% tolerance, maps the neckline support level, looks for volume divergence between the two peaks, and calculates the measured move target downward from the neckline breakdown. The model outputs the pattern name, confidence score, and key structural points right on your chart.
See Trade Implications
Beyond identification, Pineify calculates the measured move target, invalidation level, and how this pattern fits into the broader trend context.
How to Detect It
Step-by-Step Detection Guide
Follow these steps to identify this pattern on any chart, then verify your analysis with Pineify's AI.
Spot the preceding uptrend
Identify an established upward trend. A valid M pattern requires an existing bullish move to reverse.
Identify the two peaks and neckline
Locate the first resistance peak, a pullback to a valley low (the neckline), and a second peak that tests the prior high without making a sustained breakout.
Upload screenshot to Pineify AI
Upload a clean chart screenshot to pineify.app/chart-analysis. The AI detects the M formation, measures symmetry, and calculates key price levels.
Confirm the neckline breakdown
Enter a short trade when price closes below the neckline support, or on a subsequent retest of the broken neckline as new resistance.
What Is the M Pattern in Trading and How It Works
Understanding the mechanics of double top bearish reversals
In technical analysis, the M pattern (commonly known as the double top) is a classic bearish reversal structure. It looks like the capital letter "M" on a candlestick chart and indicates that buyer momentum has stalled, allowing sellers to seize control.
The formation consists of four distinct phases:
1. First Peak (Left High): Price rallies to a new high in an uptrend. Buyers encounter strong resistance, leading to a temporary pullback.
2. Middle Trough (Neckline): The pullback reaches a support floor before buyers step in again. This reaction low establishes the horizontal neckline support.
3. Second Peak (Right High): Buyers push price upward for a second attempt at the highs. However, buying volume is typically lower than on the first peak, and price fails to break through resistance (often forming a slightly lower high). Momentum indicators like RSI frequently display bearish divergence during this stage.
4. Breakdown (Right Trough Extension): Selling pressure pushes price back down to the neckline and breaks decisively below it. This breakdown confirms the M pattern and signals the beginning of a downward trend reversal.
M Pattern Trading Strategy: Entries, Stop Loss, and Price Targets
Actionable rules for executing double top trades
Trading the M pattern requires waiting for structural confirmation rather than shorting at the first sign of a peak.
Entry Strategies:
Conservative Entry: Wait for a confirmed candle close below the neckline support, followed by a pullback that tests the broken neckline from below as new resistance. This filters out bear traps and false breakdowns.
Aggressive Entry: Initiate a short position as price rejects the second peak, confirmed by a bearish reversal candle (such as a shooting star or bearish engulfing candle) and negative momentum divergence, with a tight stop above the second peak.
Target Calculation (Measured Move):
Measure the vertical height from the highest peak down to the horizontal neckline. Subtract that height from the neckline breakdown level to calculate the primary M pattern trading target. For example, if the peaks reach $200 and the neckline sits at $180 (a $20 height), the projected downward target is $160 ($180 - $20).
Stop Loss Placement:
For conservative trades entered on the neckline breakdown, place the stop loss above the broken neckline or above the pattern midpoint. For aggressive entries at the second peak, set the stop loss slightly above the highest peak to protect against an upside breakout.
M Pattern in Stocks, Forex, and Crypto Markets
How asset characteristics affect double top formations
The M pattern forms across all major financial markets, with specific dynamics for each asset class:
M Shape Stock Pattern: In equity markets, double tops frequently form around all-time highs, major psychological numbers, or prior resistance levels after extended earnings rallies. A drop in trading volume on the second peak is a strong warning sign of institutional distribution.
M Pattern in Forex: Currency pairs often see liquidity runs above the first peak, where price wicks higher to trigger stop orders before closing back below resistance. A swift drop back below the first high reinforces the M pattern formation.
M Pattern in Crypto: Crypto assets often experience aggressive price swings. Crypto double tops can develop into multi-peak distribution ranges or sharp false breakdowns. Using higher timeframes like 4-hour or daily charts helps filter out noise.
Automating M Pattern Detection and Alerts with Pineify
Combine AI screenshot scans with custom TradingView Pine Script
Traders can integrate M pattern detection into their workflow using Pineify tools:
1. Instant AI Scanner (AI Chart Analysis): Upload any candlestick chart image to Pineify. The AI vision model identifies M patterns, marks neckline levels, calculates measured move targets, and evaluates risk in seconds.
2. Automated Pine Script Alerts (AI Coding Agent): Convert your double top trading rules into custom Pine Script v6 for TradingView. Use the Pineify AI Coding Agent to generate indicators that automatically flag double tops, plot resistance zones, trigger breakdown alerts, and backtest shorting strategies.
Common Mistakes When Trading M Patterns
Why some double tops fail and how to protect capital
Avoiding these common errors improves trading consistency:
Shorting before neckline confirmation: Entering short while price is still at the second peak without clear rejection carries high risk, as strong trends frequently consolidate before breaking to new highs.
Ignoring volume divergence: A genuine M pattern usually exhibits lower volume on the second peak compared to the first. High volume on the second peak suggests strong buying interest that may overcome resistance.
Trading against strong macroeconomic tailwinds: Technical patterns can be invalidated quickly by major news, earnings beats, or policy shifts. Always consider the broader market environment.
Misunderstanding "M Pattern Bullish": Some searchers ask if an M pattern can be bullish. An M pattern is by definition a bearish reversal formation. What traders sometimes confuse as a bullish M pattern is an ascending consolidation or a cup and handle with a double peak.
FAQ
Frequently Asked Questions About M Pattern Trading & Double Top Chart Scanner | Pineify
Common questions about m pattern trading & double top chart scanner | pineify, AI pattern detection accuracy, and how to use Pineify to spot this pattern on your charts.
Detect M Pattern Trading & Double Top Chart Scanner | Pineify on Your Charts Instantly
Upload a screenshot and let Pineify's AI identify this pattern, measure the target, and flag invalidation levels in seconds.
Try AI Chart Analysis FreePast performance is not indicative of future results. AI-generated scores and stock picks are predictive in nature and are not guaranteed to produce any particular outcome or return. Nothing on this page constitutes financial advice, investment recommendation, or solicitation to buy or sell any security. All investment decisions involve risk, including the potential loss of principal. You should conduct your own independent research and consult with a qualified financial advisor before making any investment decisions. The AI model may miss or misinterpret market-moving events, and scores can change without notice.