MetaTrader 4 indicator
Triangle Chart Pattern Indicator for MT4
Find ascending, descending and symmetrical triangles the moment they form. This MetaTrader 4 indicator scans your chart, draws both trendlines, projects them forward and sounds an alert, so you stop hunting for the pattern by eye.
- MetaTrader 4
- Any symbol
- Any timeframe
- 3 triangle types
The pattern
What is a triangle chart pattern?
A triangle is a consolidation pattern where price swings tighten into a narrowing range between two converging trendlines. Traders read it as a market that is pausing and building pressure before its next move.
There are three common forms. An ascending triangle has a roughly flat upper boundary and a rising lower boundary. A descending triangle has a roughly flat lower boundary and a falling upper boundary. A symmetrical triangle has both boundaries closing in toward each other.
Drawing them by hand is slow, and the shape keeps changing as new bars print. The Triangle 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 triangle patterns on MT4
A chart-window indicator built for one job: finding triangles quickly, drawing them clearly and telling you when a new one appears.
Automatic triangle detection
Scans the visible history and every new bar for triangle formations. No manual trendlines, no counting swings, no guessing which highs and lows to connect.
Three triangle types
Track ascending, descending and symmetrical triangles together, or switch off the types you do not trade.
Small, medium and large sizes
Look for compact, mid-sized or wide triangles. Enable any combination to match the scale you trade.
Trendlines drawn for you
Both boundaries are placed on the chart for you, so the structure is visible at a glance and easy to inspect.
Forward projection lines
Dotted extensions carry each boundary ahead so you can see where the triangle narrows. Set how many bars they run, or hide them.
Sound and pop-up alerts
When a triangle is detected on the live bar, the indicator plays your chosen sound and opens an alert window, so you do not have to watch the screen.
Latest-pattern-only mode
Keep only the most recent triangle on the chart. Older lines are removed automatically, which keeps busy charts readable.
Line colors and width
Choose the upper and lower line colors and set the line width to match your chart theme or make the pattern stand out.
Triangle types
Ascending, descending and symmetrical triangle detection
Each triangle type has its own tick box. Trade all three or leave out the ones you do not use.
Ascending
Flat upper boundary, rising lower boundary
Buyers keep stepping in at higher lows while price presses against a roughly level ceiling. Traders often watch the ceiling for a breakout.
Descending
Falling upper boundary, flat lower boundary
Sellers push the highs lower while price rests on a roughly level floor. Traders often watch the floor for a break.
Symmetrical
Falling upper boundary, rising lower boundary
Both trendlines close in toward each other, showing a range that is tightening with no clear winner yet.
All three types and all three sizes (small, medium and large) are on by default. Turn off what you do not trade and the chart stays cleaner.
Platform
Built natively for MetaTrader 4
The Triangle Chart Pattern Indicator for MT4 is written for MT4 itself, so it behaves like part of the platform rather than an add-on bolted to it.
Native MetaTrader 4 indicator
Delivered as a compiled .ex4 file that loads from the Navigator like any built-in indicator. It draws in the main chart window and needs no external software or DLL imports.
Standard MT4 trend lines
The boundaries are ordinary MT4 trend lines, so you can select, restyle or delete them with the platform’s own tools. They are cleared when you remove the indicator.
Familiar inputs window
Every option sits in the standard MT4 inputs dialog with tick boxes and color pickers. Save and reload your presets, or keep them inside chart templates.
Built on MT4 alerts
Alerts use the platform’s own sound and alert window, with sound files taken straight from your MT4 Sounds folder.
Data buffer for iCustom
One indicator buffer holds a value on bars where a triangle is detected, so your own tools and Expert Advisors can read it with iCustom.
Run it on many charts
Attach it to as many symbols and timeframes as you like, each with its own settings, and save the layout in your MT4 profiles.
In practice
How traders use triangle patterns
Triangles can resolve in either direction or fail. Many traders wait for confirmation and plan their risk before acting. The indicator finds the pattern. Your plan decides what to do with it.
Breakout watching
Use the projected boundaries as reference levels. Watch how price behaves near the upper or lower line and wait for your own confirmation before acting.
Consolidation context
A narrowing range shows a market pausing between moves. Combine it with the support, resistance and trend context you already use.
Volatility awareness
A tightening triangle is a reminder that conditions are changing. Use it to review stop distances and position size ahead of the next move.
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.
Setup
Install the Triangle Chart Pattern Indicator for MT4 in minutes
-
Copy the file into MetaTrader 4
In MT4, choose File, then Open Data Folder. Place
ChartPatternTriangle.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 triangle types and sizes
In the inputs window, choose the types and sizes you want, set the projection length and pick line colors and width. The defaults work well out of the box.
-
Let the chart do the scanning
Triangles appear with their trendlines and projections. Keep alerts on and MT4 will play a sound and open an alert window when a new one is detected on the live bar.
Requires MetaTrader 4 build 600 or newer and enough chart history loaded. You receive the compiled .ex4 file, so there is nothing to compile.
Settings
Triangle indicator 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 triangles. |
EnableMedium |
true | Look for medium-sized triangles. |
EnableLarge |
true | Look for large triangles. |
ShowAscendingTriangle |
true | Show ascending triangles. |
ShowDescendingTriangle |
true | Show descending triangles. |
ShowSymmetricalTriangle |
true | Show symmetrical triangles. |
LastOnly |
false | Show only the most recent triangle and remove older ones. |
SetAlert |
true | Play a sound and open an alert window when a triangle is detected on the live bar. |
ExtensionBars |
50 | How many bars the dotted projection lines run ahead. Set to 0 to hide them. |
SoundAlertFile |
Alert1.wav | Sound file played by the alert. Use any file in your MT4 Sounds folder. |
LineWidth |
2 | Thickness of the pattern lines and the detection dot. |
UpperLineColor |
Orange | Color of the upper boundary, its projection and the detection dot. |
LowerLineColor |
Green | Color of the lower boundary and its projection. |
Compatibility
Requirements and compatibility
- Platform
- MetaTrader 4, build 600 or newer
- Indicator type
- Chart window overlay
- File delivered
- Compiled .ex4 indicator
- Symbols
- Any instrument your broker offers
- Timeframes
- M1 to MN
- Alerts
- Sound file and MT4 alert window
- Trading
- Analysis only, places no orders
FAQ
Triangle Chart Pattern Indicator for MT4: frequently asked questions
What does the Triangle Chart Pattern Indicator for MT4 do?
It scans your MetaTrader 4 chart for ascending, descending and symmetrical triangles. When it finds one, it draws the upper and lower trendlines, projects both forward with dotted lines, marks the detection bar with a dot and can alert you.
Does it work on every symbol and timeframe?
Yes. It runs on any symbol your broker offers in MetaTrader 4, including forex pairs, metals, indices and crypto CFDs, and on every timeframe from M1 to monthly.
What is the difference between ascending, descending and symmetrical triangles?
An ascending triangle has a roughly flat upper boundary and a rising lower boundary. A descending triangle has a roughly flat lower boundary and a falling upper boundary. A symmetrical triangle has both boundaries converging. You can switch each type on or off in the inputs.
What do the small, medium and large sizes mean?
They look for triangles 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 opens a MetaTrader 4 alert window when a triangle is detected on the live bar. The default sound is Alert1.wav, and you can use any file from 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 triangle flagged on the live bar can change before that bar closes. Many traders wait for the bar to close before acting.
What file do I receive and do I need to compile anything?
You receive the compiled .ex4 indicator file. Copy it into the MQL4/Indicators folder, refresh the Navigator and attach it to a chart. There is nothing to compile and no extra software to install.
Does a triangle pattern guarantee a profitable trade?
No chart pattern does. Triangles can break out in either direction or fail, so use the indicator alongside your own analysis, confirmation and risk management.
Get started
Add the Triangle Chart Pattern Indicator for MT4 to your charts
Stop redrawing triangles by hand. Attach the indicator, choose your triangle types and sizes and let MetaTrader 4 tell you when a new pattern 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 Triangle Chart Pattern Indicator for MT4 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.





