MetaTrader 4 indicator
Double Top Chart Pattern Indicator for MT4
Spot double top reversal patterns the moment they are detected. The indicator scans your MetaTrader 4 chart, draws the top line and the support line, marks the detection bar and sounds an alert, so you stop hunting for the pattern by eye.
- MetaTrader 4
- Any symbol
- Any timeframe
- Sound alerts
The pattern
What is a double top chart pattern?
A double top is a classic reversal structure. Price rallies to a high, pulls back, then rallies again to a similar high and fails to break through. The two peaks resemble the letter M, and the low of the pullback between them acts as the support level traders watch.
The pattern suggests buyers are running out of strength at a resistance zone. Traders often watch for price to reach the support level as the sign that the pattern is playing out, and treat it as context for a possible change in direction. It is not a guarantee, and double tops can fail.
Double tops are easy to miss and slow to mark by hand. They need two matching highs and a clear pullback in the right order, and the shape keeps changing as new bars print. The Double Top Chart Pattern Indicator for MT4 does that scanning for you, on every bar, so you can spend your time on the trade instead of the trendline.
Features
Everything you need to trade double tops on MT4
A chart-window indicator built for one job: finding double top patterns quickly, drawing them clearly and telling you when one is detected.
Automatic double top detection
Scans the visible history and every new bar for double top formations. No manual trendlines, no hunting for matching highs, no second-guessing where the pullback low sits.
Small, medium and large sizes
Look for compact double tops, mid-sized ones or wide structures. Switch each size on or off to match the scale you trade.
Top line and support line drawn for you
Both lines are placed on the chart for each formation, so you see the two highs and the support level at a glance.
Detection marker on the chart
A cyan dot marks the bar where a double top is detected. Each formation is flagged once, which keeps busy charts readable.
Sound and log alerts
When a double top is detected on the live bar, the indicator plays your chosen sound file and writes a message to the Experts log, so you do not have to watch the screen.
Full control of line style
Choose separate colors for the top line and the support line and set the line width. Match your chart theme or make the pattern stand out.
Data buffer for your own tools
The same detection value is held in an indicator buffer labelled Found, which you can read from your own tools with iCustom.
Clean removal
Every line the indicator draws is removed from the chart when you take the indicator off, so no leftover objects clutter your workspace.
Built for MetaTrader 4
Why this double top indicator suits MetaTrader 4
This version is written for the MT4 platform and uses its own chart objects, inputs window, alerts and indicator buffers, so it feels like part of the terminal rather than an add-on bolted on.
Native MT4 trend lines
The top line and support line are standard MT4 trend line objects. Click them, restyle them, check them in the Objects List or delete them with the tools you already know.
The familiar inputs window
Settings sit in the normal MT4 properties dialog, grouped into pattern sizes, parameters and colors. Save your favorites as a preset and reuse them across charts.
Works with chart templates
Attach the indicator, tune it once and save the chart as a template. New charts load with your pattern sizes and colors already set.
Alerts that use MT4’s own tools
The alert plays a file from your MT4 Sounds folder and writes to the Experts tab of the Terminal window, where you can review earlier detections.
Readable from Data Window and iCustom
The Found buffer shows in the Data Window and can be read from your own Expert Advisors, scripts or other indicators through iCustom.
Compiled .ex4, no extras
One compiled file in your Indicators folder. It needs no DLLs or external libraries and runs on any MT4 broker account, on as many charts as you like.
Pattern sizes
Choose the double top size that fits your trading
Double tops come in different scales. Pick the sizes you care about and leave the rest off.
Small
Compact double tops
Short structures that develop over a handful of bars. Suited to lower timeframes and fast intraday trading.
Medium
Everyday double tops
Mid-sized structures that fit most day trading and short swing setups. A balanced choice for general use.
Large
Wide double tops
Big structures that take longer to build. Useful on higher timeframes for swing and position traders.
All three sizes are on by default. Turn off the ones you do not trade and the chart stays cleaner.
Setup
Install the Double Top Chart Pattern Indicator for MT4 in minutes
-
Copy the file into MetaTrader 4
In MT4, choose File, then Open Data Folder. Place
ChartPatternDoubleTopPro.ex4inMQL4/Indicators. Restart MT4, or right-click the Navigator and choose Refresh. -
Attach it to a chart
Open any symbol and timeframe, find the indicator under Navigator, Indicators, and drag it onto the chart.
-
Pick your pattern sizes and style
In the inputs window, enable the sizes you want and choose line colors and width. The defaults work well out of the box.
-
Let the chart do the scanning
Double tops appear with their lines and a detection dot. Keep alerts on and MT4 will play a sound when one is detected on the live bar.
Requires MetaTrader 4 build 600 or newer. The indicator is supplied as a compiled .ex4 file, so no compiling is needed.
In practice
How traders use double top patterns
Double tops can fail, and price can break either way. Many traders wait for confirmation and plan their risk before acting. The indicator finds the pattern. Your plan decides what to do with it.
Reversal context
A double top near a major resistance level can flag a market that is struggling to push higher. Combine it with the levels you already trade.
Support level watching
Use the support line as a reference level. Watch how price behaves around it and wait for your own confirmation before acting.
Multi-timeframe confirmation
Run the Large size on a higher timeframe for the bigger picture and the Small size on a lower one to time entries within it.
Review and risk planning
A detected double top is a prompt to review open positions, stop distances and position size before the next move.
Settings
Inputs you can adjust
Every option appears in the standard MT4 inputs window when you attach the indicator.
| Input | Default | What it does |
|---|---|---|
EnableSmall |
true | Look for small double tops. |
EnableMedium |
true | Look for medium-sized double tops. |
EnableLarge |
true | Look for large double tops. |
Range |
10 | Main sensitivity setting for pattern detection. The default suits most charts; test any change on your own symbol and timeframe. |
SetAlert |
true | Play a sound and write to the Experts log when a double top is detected on the live bar. |
SoundAlertFile |
notify.wav | Sound file played by the alert. Use any file in your MT4 Sounds folder. |
TopLineColor |
SkyBlue | Color of the line joining the two highs. |
SupportLineColor |
Orange | Color of the support line. |
LineWidth |
2 | Thickness of all pattern lines. |
Compatibility
Requirements and compatibility
- Platform
- MetaTrader 4, build 600 or newer
- File format
- Compiled .ex4 indicator
- Indicator type
- Chart window overlay
- Symbols
- Any instrument your broker offers
- Timeframes
- M1 to MN
- Alerts
- Sound file and Experts log message
- Trading
- Analysis only, places no orders
FAQ
Double Top Chart Pattern Indicator for MT4: frequently asked questions
What does a double top indicator do?
It scans price for the double top, a reversal structure where price makes two highs at a similar level with a pullback between them. When it finds one, it draws a line across the two highs and a support line at the pullback low on your MT4 chart, marks the detection bar and can alert you.
Does it work on every symbol and timeframe?
Yes. It runs on any symbol your broker offers in MetaTrader 4, from forex pairs to metals, indices and crypto CFDs, and on every timeframe from M1 to monthly.
What is the difference between small, medium and large patterns?
The three sizes look for double tops of different scales. Small suits quick intraday structures, medium suits everyday trading, and large picks up wide, slow-forming structures on higher timeframes. You can enable any combination.
How do the alerts work?
With alerts enabled, the indicator plays a sound file and writes a message to the Experts log when a double top is detected on the live bar. The default sound is notify.wav, and you can point it at any file in your MT4 Sounds folder.
Does it place trades for me?
No. It is an analysis tool that marks patterns on your chart. It does not open, modify or close orders, so every trading decision stays with you.
Can the signal change while a bar is still forming?
Yes. The indicator evaluates every bar, including the one still forming, so a detection on the live bar can change before that bar closes. Many traders wait for the bar to close before acting on it.
Can I read the signal from an Expert Advisor?
The indicator exposes one data buffer, labelled Found, that holds a value on bars where a double top is detected. You can read it from your own tools with iCustom.
Do I get the source code, and do I need to compile it?
The indicator is delivered as a compiled .ex4 file, so there is nothing to compile. Copy it into your MQL4/Indicators folder, refresh the Navigator and attach it to a chart.
Does a double top guarantee a reversal?
No chart pattern does. Double tops can fail, and price can break either way, so use the indicator alongside your own analysis, confirmation and risk management.
Get started
Add the Double Top Indicator to your MT4 charts
Stop marking double tops by hand. Attach the indicator, choose your pattern sizes and let MetaTrader 4 tell you when a new one is detected.
Trading leveraged products such as forex and CFDs carries a high level of risk and may not be suitable for everyone. You can lose more than your initial deposit.
The Double Top Chart Pattern Indicator is a charting tool for MetaTrader 4. It is not financial advice and does not guarantee results. Past patterns do not predict future price movement. MetaTrader is a trademark of its respective owner.



