MetaTrader 4 indicator
Find expanding-range megaphone patterns the moment they form. The indicator scans your MetaTrader 4 chart, draws both trendlines, projects them forward and sounds an alert, so you stop hunting for the pattern by eye.
The pattern
A broadening formation, also called a megaphone pattern or broadening wedge, is a chart structure where each swing high is higher than the last and each swing low is lower than the last. Triangles and wedges squeeze price toward a point. A broadening formation does the opposite: the range opens up and the two trendlines spread apart.
That widening shows up when volatility is rising and neither buyers nor sellers are in control. Traders watch it near major turning points and in news-driven markets, and use it as context for both reversals and breakouts.
The pattern is easy to miss and slow to draw. It needs two rising highs and two falling lows in the right order, and the shape keeps changing as new bars print. The Broadening Formation 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
A chart-window indicator built for one job: finding broadening formations quickly, drawing them clearly and telling you when a new one appears.
Scans the visible history and every new bar for broadening formations. No manual trendlines, no counting swings, no second-guessing which highs to connect.
Look for compact formations, mid-sized ones or wide structures. Switch each size on or off to match the scale you trade.
The upper and lower boundaries are placed on the chart as standard MT4 trend lines, so they stay visible, selectable and easy to inspect.
Dotted extensions show where both boundaries are heading. Set how many bars they run ahead to fit your timeframe.
When a formation appears 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.
Keep only the most recent formation on the chart. Older lines are removed automatically, which keeps busy charts readable.
Choose separate colors for the upper boundary, lower boundary and projection lines, and set the line width. Match your chart theme or make the pattern stand out.
A dot marks each bar where a formation is detected, and the same value is held in an indicator buffer you can read from your own tools.
Pattern sizes
Broadening formations come in different scales. Pick the sizes you care about and leave the rest off.
Small
Short structures that develop over a handful of bars. Suited to lower timeframes and fast intraday trading.
Medium
Mid-sized structures that fit most day trading and short swing setups. A balanced choice for general use.
Large
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
In MT4, choose File, then Open Data Folder. Place ChartPatternBroadeningFormation.mq4 in MQL4/Indicators. Restart MT4, or right-click the Navigator and choose Refresh.
Open any symbol and timeframe, find the indicator under Navigator, Indicators, and drag it onto the chart.
In the inputs window, enable the sizes you want, set the projection length, and choose line colors and width. The defaults work well out of the box.
Formations appear with their trendlines and projections. Keep alerts on and MT4 will play a sound when a new one forms on the live bar.
Requires MetaTrader 4 build 600 or newer. If you are installing the source file, open it in MetaEditor and press F7 to compile before use.
In practice
Broadening formations are volatile structures. Many traders wait for confirmation and plan for wider swings than they would use in a tight range. The indicator finds the pattern. Your plan decides what to do with it.
Use the projected boundaries as reference levels. Watch how price behaves when it reaches the upper or lower line, and wait for your own confirmation before acting.
A widening range near a major support or resistance level can flag a market that is losing direction. Combine it with the levels you already trade.
An expanding structure is a reminder that swings are growing. Use it to review stop distances and position size before the next move.
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.
Settings
Every option appears in the standard MT4 inputs window when you attach the indicator.
| Input | Default | What it does |
|---|---|---|
EnableSmall |
true | Look for small broadening formations. |
EnableMedium |
true | Look for medium-sized formations. |
EnableLarge |
true | Look for large formations. |
LastOnly |
false | Show only the most recent formation and remove older ones. |
SetAlert |
true | Play a sound and write to the Experts log when a formation appears on the live bar. |
ExtensionBars |
50 | How many bars the dotted projection lines run ahead. Set to 0 to hide them. |
LineWidth |
2 | Thickness of all pattern lines. |
UpperLineColor |
Orange | Color of the upper boundary line. |
LowerLineColor |
Lime | Color of the lower boundary line. |
ExtensionLineColor |
AliceBlue | Color of the dotted projection lines. |
SoundAlertFile |
notify.wav | Sound file played by the alert. Use any file in your MT4 Sounds folder. |
Compatibility
FAQ
It scans price for the broadening formation, also known as the megaphone pattern, where swing highs keep rising and swing lows keep falling. When it finds one, it draws the upper and lower trendlines on your MT4 chart, projects them forward and can alert you.
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.
The three sizes look for formations 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.
With alerts enabled, the indicator plays a sound file and writes a message to the Experts log when a formation appears on the live bar. The default sound is notify.wav, and you can point it at any file in your MT4 Sounds folder.
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.
Yes. The indicator evaluates every bar, including the one still forming, so a formation flagged on the live bar can change before that bar closes. Many traders wait for the bar to close before acting on it.
Yes. Turn on the latest-only option and the indicator keeps just the most recent formation, removing older lines as new ones appear.
The indicator exposes one data buffer that holds a value on bars where a formation is detected. You can read it from your own tools with iCustom.
No chart pattern does. Broadening formations can be volatile and unpredictable, so use the indicator alongside your own analysis, confirmation and risk management.
Get started
Stop redrawing megaphone patterns by hand. Attach the indicator, choose your pattern sizes and let MetaTrader 4 tell you when a new formation appears.
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 Broadening Formation 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.
Copyright @ 2026 Patternsmart - All rights reserved
This website is for educational and informational
purposes only and should not be considered a solicitation to buy or sell a
futures contract or make any other type of investment decision. It's not recommended to use any single indicator as sole evaluation criteria. The companies
and services listed on this website are not to be considered a recommendation
and it is the reader's responsibility to evaluate any product, service, or
company. patternsmart is not responsible for the accuracy or content of any
product, service or company linked to on this website.
Futures trading
contains substantial risk and is not for every investor.Please read the following risk disclosure before considering the
trading of this product:
Futures Risk Disclosure. An investor could
potentially lose all or more than the initial investment. Risk capital is money
that can be lost without jeopardizing ones financial security or life style.
Only risk capital should be used for trading and only those with sufficient risk
capital should consider trading. Past performance is not necessarily indicative
of future results.
Trading stocks, options, futures and forex involves
speculation, and the risk of loss can be substantial.Investor must consider all
relevant risk factors, including their own personal financial situation, before
trading. Trading foreign exchange on margin carries a high level of risk, as
well as its own unique risk factors. Forex investments are subject to
counter-party risk, as there is no central clearing organization for these
transactions. Please read the following risk disclosure before considering the
trading of this product:
Forex Risk Disclosure. Spreads, Straddles, and other multiple-leg option
strategies can entail substantial transaction costs, including multiple
commissions, which may impact any potential return. Options are not suitable for
all investors as the special risks inherent to options trading may expose
investors to potentially rapid and substantial losses. Prior to trading options,
you should carefully read
Characteristics and Risks of Standardized Options.
patternsmart.com
will not be held liable for the loss of money or any damage caused from relying
on the information on this site. Any investment decision you make in your account is solely your responsibility.
TESTIMONIAL DISCLOSURE: TESTIMONIALS APPEARING ON OUR SITE MAY NOT BE REPRESENTATIVE OF THE EXPERIENCE OF OTHER CLIENTS OR CUSTOMERS AND IS NOT A GUARANTEE OF FUTURE PERFORMANCE OR SUCCESS.