MT4 Triangle & Wedge Breakout Indicator (Scanner)
MT4 Triangle & Wedge Breakout Indicator automatically identifies symmetrical, ascending, and descending triangles and wedges using fractal-based pattern recognition with MACD trend filtering. The scanner monitors detected formations across all specified assets and timeframes through a structured dashboard with configurable alerts.
Already a subscriber or have purchased a product?
What the Triangle & Wedge Breakout Indicator Does
The Triangle & Wedge Breakout Indicator automatically identifies five price formations — symmetrical triangle, ascending triangle, descending triangle, rising wedge, and falling wedge — using a fractal-based detection algorithm with a configurable MACD trend filter. Pattern detection is based on the geometric relationships between fractal highs and lows, with an additional directional filter to ensure detected formations align with the prevailing trend context.
Pattern identification is built on two analytical layers: a fractal indicator for structural point identification, and a MACD filter for directional context.
Triangle & Wedge Breakout Indicator — Key Features
Fractal-Based Structure Detection
The fractal indicator identifies local price highs and lows by evaluating a defined number of bars to the left and right of each candidate peak or trough.
The left-bar parameter controls how far back the fractal must be the dominant high or low — a larger value produces fewer but more structurally significant fractals. The right-bar parameter controls detection lag — a smaller value allows fractals to be identified closer to the current bar, at the cost of some additional noise.
Five Formation Types
Patterns are constructed by evaluating the geometric relationship between identified fractals.
- Symmetrical triangle — formed by two upper and two lower fractals where the upper boundary slopes downward and the lower boundary slopes upward, converging toward a point.
- Ascending triangle — the upper boundary is approximately horizontal, the lower boundary slopes upward. A slight slope tolerance is configurable.
- Descending triangle — the lower boundary is approximately horizontal, the upper boundary slopes downward.
- Rising wedge — both boundaries slope upward, with the lower boundary steeper — causing the two lines to converge.
- Falling wedge — both boundaries slope downward, with the upper boundary steeper — causing convergence in the opposite direction.
The directional context of each formation is determined by the sequence of alternating fractals: a bullish condition follows a lower fractal, a bearish condition follows an upper fractal.
MACD Filter and Prior Movement Check
The MACD filter is applied as a secondary directional filter.
When the MACD histogram is above the signal line, only bullish formations are registered. When the histogram is below the signal line, only bearish formations are registered. This ensures that detected formations are evaluated in the context of the prevailing trend direction as measured by MACD.
An additional prior movement check is also available — when enabled, it evaluates whether the price movement preceding the formation is consistent with the expected directional context of the pattern.
Display Formats
Each detected formation can be displayed in one of three graphical formats, selectable in the settings.
- Trend lines — two lines drawn through the upper and lower fractal points that define the formation boundaries.
- Triangle to last fractal — the formation is displayed as a filled triangle shape extending to the most recent fractal.
- Triangle to signal bar — the formation is displayed as a filled triangle shape extending to the bar where the directional marker appears.
Multi-Asset Scanner Dashboard
The dashboard displays the current detection status across all monitored assets and timeframes in a single structured view.
Each cell shows the abbreviated pattern name, the directional context of the registered condition — bullish or bearish — and the number of bars back at which it was registered. Clicking any cell updates the chart to the corresponding asset and timeframe directly.
Indicator Limitations — Triangle and wedge detection is based on fractal geometry applied to historical price data. The indicator identifies formations that meet the defined structural and proportional criteria — it does not predict future price movement or guarantee that a detected formation will result in any particular price behavior. Pattern validity depends significantly on the fractal and MACD parameter settings — different configurations will produce different formation counts and detection sensitivity. All registered conditions should be evaluated within a broader analytical framework.
Indicator Settings & Parameters
The indicator has the following parameters.
| Parameter | Description |
|---|---|
| Scanner & Alerts | |
| Assets | Instruments to include in the scanner, entered as a comma-separated list. |
| Max_bars | Limits how far back the scanner evaluates formations. Reducing this value improves calculation speed. |
| Enable alert / Enable email / Enable mobile | Alert delivery: platform notifications, email, or mobile — each configurable independently. |
| Pattern Detection | |
| Check Previous Movement | Enables an additional check that the prior price movement is consistent with the pattern’s directional context before registering a condition. |
| Triangularity (0–1) | Controls the shape tolerance of the pattern: 0 allows rectangular shapes, 1 requires a perfect triangle, intermediate values allow trapezoidal shapes. |
| Use Uniform Filter | Enables an additional shape filter to refine pattern detection criteria. |
| Deviation from Straight Line | The acceptable slope tolerance for the horizontal edge in ascending and descending triangles. |
| Fractals | |
| X Bars to the left of Top/Bottom | Controls how many bars to the left a fractal must be the dominant high or low. |
| X Bars to the right of Top/Bottom | Controls detection lag on the right side of the fractal. |
| Display | |
| Triangular Object | Selects the graphical display format:
|
System Requirements & Installation
What you need to run the indicator, how to download and install it in MetaTrader 4, and how the license works.
System Requirements
- Platform
- MetaTrader 4 (Desktop)
- Operating system
- Windows 10 or Windows 11
- Instruments
- Forex pairs, metals, indices, CFDs and other symbols available from your broker in MetaTrader 4
- Data
- Your broker’s price feed in MetaTrader 4
Not available on MetaTrader 4 Web or Mobile. Custom indicators run in the MetaTrader 4 desktop terminal only.
License Terms
- Lifetime License
- This indicator only, 1 live and 1 demo account, one-time payment, free updates included.
- All-Access Subscription
- All indicators and trade copiers, billed monthly, cancel anytime, updates included while the subscription is active.
- Free trial
- 5 days on the subscription plan. If not cancelled, the subscription starts automatically.
- License binding
- Linked to your email and to your MetaTrader 4 trading accounts: one live account and one demo account.
- Computers
- Not restricted. The license is linked to your trading accounts, not to a specific computer.
Installation
- Get access
Start the free trial, subscribe, or buy a lifetime license on this page.
- Download
The indicator is not sent by email. Open (top right of this page) and enter the email you used for your trial, subscription or purchase. The indicator file (.ex4) downloads to your computer.
- Copy to the MetaTrader 4 data folder
In MetaTrader 4, go to
File → Open Data Folder, openMQL4 → Indicatorsand copy the downloaded .ex4 file there. - Add to a chart
Restart MetaTrader 4 or right-click Indicators in the Navigator window and select Refresh. Then drag the indicator from the Navigator onto a chart.
- Activate the license
In the indicator inputs, enter the same email. On first activation, the license is linked to that email and to the trading account the terminal is logged into.
If MetaTrader 4 asks for additional permissions when the indicator is attached, such as DLL imports or WebRequest access, allow them in the indicator’s Common tab or under
Tools → Options → Expert Advisors.
Updating: When a new version is released, download it again through and replace the existing .ex4 file in the same folder.
Installation questions? Contact support, Monday to Friday.
"Best Seller" and "Trending" reflect Nordman Algorithms sales and usage data, January–September 2026.
Disclaimer — Software Use & Risk Disclosure
Nordman Algorithms is a trade name of Nordman Algorithms OÜ (Reg. No. 14435535), registered in Tallinn, Estonia.
Software Use
Software Nature & User Responsibility — Nordman Algorithms provides algorithmic software tools for technical analysis. Nordman Algorithms is not a financial advisor and is not liable for any losses. All trades conducted based on the software’s output are executed at the user’s sole discretion and risk.
Visual Markers & Signal Disclosure — This software may display visual markers (such as arrows, dots, or alerts) when predefined mathematical conditions are met. These markers are provided for educational and analytical purposes only, must not be interpreted as financial guidance, and do not constitute a recommendation to buy, sell, or hold any financial instrument. Users must independently validate all visual cues within their own trading methodology.
No Financial Advice — Nordman Algorithms does not provide discretionary trading signals, investment advice, or managed signal services. Our software represents a mathematical visualization of historical and real-time data. The appearance of a visual marker does not guarantee a profitable trade or predict future market behavior.
Read the full Terms of Service →Risk Disclosure
Trading Risk Warning — Futures, Forex, and options trading involve significant risk. Risk capital is money that can be lost without jeopardizing financial security. Only risk capital should be used for trading. Past performance is not indicative of future results. An investor could potentially lose all or more than the initial amount committed.
ESMA Risk Warning — Financial instruments, especially those involving leverage such as CFDs and Forex, are complex and carry a high risk of rapid financial loss. Our software provides analytical outputs and visual markers based on predefined mathematical conditions and does not mitigate or reduce inherent market risks. You should carefully consider whether you understand how leveraged financial instruments work and whether you can afford the high risk of losing your capital.
CFTC Rule 4.41 — Hypothetical or simulated performance results have inherent limitations. Unlike actual performance records, simulated results do not represent real trading. Because trades have not actually been executed, these results may under- or over-compensate for the impact of market factors such as liquidity. Simulated results are also subject to the benefit of hindsight. No representation is being made that any account will achieve profits or losses similar to those shown.
Read the full Risk Disclosure →Trademark Notice — MetaTrader 4 and MT4 are trademarks of MetaQuotes Ltd. Nordman Algorithms is an independent software developer and is not affiliated with, sponsored by, or endorsed by MetaQuotes Ltd. References to MetaTrader 4 identify software compatibility.
Need a different setup?
We can customize this indicator to your requirements: add new features, change the calculation logic, or combine several tools into a single solution. We also build Expert Advisors on your own logic, with configurable modules such as dynamic risk parameters, multi-stage trailing stops and additional confirmation filters.
Every project is delivered with full source code and post-delivery support. Fixed-price quote before development begins.



