AutoTrianglePatterns

Auto Triangle Patterns
Overview
Auto Triangle Patterns is a chart indicator for MetaTrader 5. It scans the price history of the current chart and looks for three classical triangle formations: ascending, descending and symmetrical. When a formation is found, the indicator draws its two boundary lines, fills the area between them and adds a text label with the name of the formation. The pattern stays on the chart and is extended to the right with every new bar.
When price leaves the formation in either direction, or when the formation reaches its apex without a breakout, the indicator marks the result and stops updating that pattern. Resolved patterns remain on the chart so that past formations can be reviewed.
The indicator does not open or manage positions, does not place orders and does not generate trading signals. It is a technical analysis and chart visualization tool. All markings are interpretations of past price data.
How it works
The search is performed in several steps.
Swing points. The indicator finds swing highs and swing lows. A swing high is a bar whose high is not exceeded by the highs of the bars to its left and to its right; a swing low is found in the same way. The number of bars checked on each side is set by InpPivotLeft and InpPivotRight. Because the bars on the right side have to close first, a swing point is confirmed only after InpPivotRight bars have appeared after it.
Boundary lines. The upper line is drawn through the most recent InpTouches swing highs, and the lower line through the most recent InpTouches swing lows. Every swing point used for a line has to stay within a distance of InpFitTol multiplied by the Average True Range of the chart, where the ATR period is set by InpAtrLen. This tolerance is what makes the lines follow real price touches instead of an exact mathematical fit.
Classification. The two slopes decide the name of the formation. A line is treated as horizontal when the total change of its value over the length of the pattern is not more than InpFlatPct percent of the height of the pattern. An upper horizontal line with a rising lower line is an ascending triangle. A falling upper line with a horizontal lower line is a descending triangle. When both lines converge and the ratio between the faster and the slower slope is not more than InpSymRatio, the formation is symmetrical.
Validation. A candidate is accepted only when several conditions are met at the same time. The swing points of the two lines have to overlap in time. The length of the pattern has to be between InpMinBars and InpMaxBars. The point where the two lines meet has to be located to the right of the current bar. The upper line has to stay above the lower line. Finally, every bar between the start of the pattern and the current bar has to stay inside the channel, with the same ATR based tolerance that is used for the lines.
Drawing and updating. An accepted formation is drawn from its starting bar to the current bar. The lines of the active formation are extended to the right with every new bar, so the formation always reflects the latest price.
Result of a pattern. There are three possible outcomes. A breakout above the upper line marks a bullish breakout; a break below the lower line marks a bearish breakdown. In both cases an arrow is placed on the bar and the lines keep their solid style. If the price reaches the apex of the formation, or if the formation becomes longer than InpMaxBars, the pattern is closed without a breakout and is drawn with dashed lines and the note "expired". If a new formation starts while the previous one is still active, the previous one is closed in the same dashed style with the note "no breakout".
Only one formation is kept active at a time. Formations that are already resolved remain on the chart as static objects and are no longer changed.
How to use
Attach the indicator to any chart. It works on any symbol and any timeframe, and the default settings are a reasonable starting point for most charts.
Adjust the swing strength first. The pair InpPivotLeft and InpPivotRight defines how large a swing has to be before it is counted. Smaller values produce more swing points and more patterns; larger values produce fewer, larger patterns. Suitable values depend on the symbol and on personal chart reading habits.
Recommended starting values for the swing strength:
M5 to M15: InpPivotLeft 3, InpPivotRight 3
M30 to H1: InpPivotLeft 5, InpPivotRight 5
H4 to D1: InpPivotLeft 7, InpPivotRight 7
The number of touches per side is the second main control. InpTouches set to 2 finds patterns earlier and more often. Values of 3 or 4 require more confirmed touches on each line, so fewer patterns are found, and those that are found are based on more price evidence.
The tolerance InpFitTol is measured in ATR units and defines how strictly the swing points and the price inside the pattern have to follow the two lines. A value between 0.3 and 0.8 suits most charts. Lower values give tighter, more selective patterns; higher values accept looser ones.
The breakout mode is controlled by InpUseClose. With the default value of true, a breakout is counted only when a bar closes beyond a boundary line, so a wick that pierces a line without closing beyond it is not marked. With the value of false, the high and the low of the bar are used instead.
Alerts are shown by the terminal when a new formation is detected and when a breakout or a breakdown occurs. Alerts are produced on closed bars only. No alert is produced while the indicator scans past history during its first calculation.
Load enough chart history before drawing conclusions. The indicator scans up to InpHistoryBars bars of history on load; a chart with more bars loaded gives a more complete picture.
Input parameters
Pattern detection
InpPivotLeft. Number of bars to the left of a swing point that must not exceed it. Default 5.
InpPivotRight. Number of bars to the right of a swing point that must not exceed it. Default 5.
InpTouches. Number of swing points required on each boundary line. Values from 2 to 4. Default 2.
InpFlatPct. Maximum change of a boundary line over the length of the pattern, expressed as a percentage of the pattern height, for the line to be treated as horizontal. Default 25.0.
InpSymRatio. Maximum ratio between the two slopes for a symmetrical triangle. Default 3.0.
InpFitTol. Tolerance for the swing points and for the price inside the pattern, in ATR units. Default 0.5.
InpAtrLen. Period of the Average True Range used to convert the tolerance into price units. Default 14.
Pattern size and history
InpMinBars. Minimum length of a pattern in bars. Default 15.
InpMaxBars. Maximum length of a pattern in bars, counted from the start of the pattern to its apex. Default 200.
InpHistoryBars. Number of historical bars scanned when the indicator is loaded. The value 0 scans all available history. Default 3000.
Pattern types
InpShowAsc. Enable the search for ascending triangles. Default true.
InpShowDesc. Enable the search for descending triangles. Default true.
InpShowSym. Enable the search for symmetrical triangles. Default true.
Appearance
InpColAsc. Line color for ascending triangles. Default clrTeal.
InpColDesc. Line color for descending triangles. Default clrRed.
InpColSym. Line color for symmetrical triangles. Default clrBlue.
InpLineWidth. Width of the boundary lines. Default 2.
InpShowFill. Fill the area between the two boundary lines. Default true.
Breakout and alerts
InpUseClose. Require a bar to close beyond a boundary line before a breakout is counted. With the value false, the high and the low of the bar are used. Default true.
InpShowBreakout. Draw an arrow on the bar of a breakout or a breakdown. Default true.
InpColBull. Color of the arrow for a breakout above the upper line. Default clrGreen.
InpColBear. Color of the arrow for a break below the lower line. Default clrRed.
Notes and limitations
Swing points are confirmed only after InpPivotRight bars have closed on the right side of a swing. This delay is part of swing detection and is not a defect. Confirmed swing points do not move or disappear afterwards.
The active formation is refitted while new swing points appear, so its lines, its length and its label can change until the formation is resolved. Resolved formations are not changed afterwards.
Breakouts are evaluated on closed bars. With InpUseClose enabled, a wick that pierces a boundary line without closing beyond it is not marked as a breakout.
The lines of the active formation are drawn up to the current bar, including the bar that is still forming. The breakout evaluation itself uses closed bars only.
Only one formation is active at a time. Earlier formations stay on the chart as static objects.
All markings are chart objects. They belong to the chart window and are removed together with the indicator.
The indicator does not use indicator buffers. It displays nothing in the Data Window, and its values cannot be read by other programs.
The indicator needs a sufficient amount of history on the chart and a filled ATR buffer before it starts drawing.
Availability
The indicator is currently distributed free of charge through the MQL5 Market. After the number of downloads exceeds 100, it will be converted to a paid subscription product. Users who obtained the free version before the conversion can continue to use the copy they received, in accordance with the MQL5 Market rules.
Demo version
In accordance with the MQL5 Market rules, the demo version of an indicator cannot be run on a live chart. Its behaviour can be observed in the visual testing mode of the Strategy Tester built into the client terminal.
Risk disclaimer
This indicator is a technical analysis and chart visualization tool. It does not provide trading signals, does not open or manage positions, and does not guarantee or promise any profit. Triangle formations and breakout markings are interpretations of past price data only. Trading in financial markets involves substantial risk. Any use of this indicator, and any trading decision taken with or without it, remains the sole responsibility of the user.
Support
Support is provided through the comments section of the product page and through the MQL5.com messaging system.

Altri dall’autore
JKTopHedge
Shi Yuan Wang
JK-Top Hedge — Two-Sided Hedged Grid EA for MetaTrader 5 Overview JK-Top Hedge is an Expert Advisor for MetaTrader 5. It places a Buy Stop above the current price and a Sell Stop below it at the same time, building two grid lines on either side of the market. When one pending order is filled, the EA places the next one further away, and the cycle repeats. Because long and short positions exist at the same time, a floating loss on one side can partly be offset by the other. The EA closes or reduc
Automatic Support and Resistance Levels with Breakout Tracking Product name note: the file name and the indicator short name in the source are AutomaitcSR . The correct spelling AutomaticSR is recommended before submission. Use one identical name for the file, the short name and the Market product title. Short description (for the Market product card) Automatic support and resistance levels built from confirmed swing pivots, with ATR-based filtering, optional level zones, breakout marking and a
FREE
BBOscillator — Candle Coloring with Andean Oscillator States and ATR Stop Levels Overview BBOscillator is a technical indicator for MetaTrader 5 that is drawn in the main chart window. It combines the Andean Oscillator state logic, candle coloring, dynamic ATR stop levels and state-change marks in a single visual layer, so that four questions can be answered by looking at one chart: whether the direction is defined, which side it leans to, where the direction state started, and where a stop refe
FREE
Trend Reversal Probability Overview Trend Reversal Probability is an analytical indicator for MetaTrader 5. It does not open, close or manage trades. Its purpose is to describe one specific property of the market in numbers: how long the current directional state of a smoothed momentum oscillator has already lasted, and how unusual that duration is compared with the same measurement on previous occasions. The indicator runs in a separate window. On every bar it updates the duration of the curren
FREE
Deviation Trend Profile Overview Deviation Trend Profile is a MetaTrader 5 chart indicator that combines three visual layers in a single chart window: a moving average with momentum-based coloring, deviation bands calculated from volatility, and a horizontal distribution profile drawn to the right of the current price. The indicator is an analytical tool. It does not open, modify or close trades, and it is not a complete trading system. It is designed to help the user observe trend direction, mo
FREE
TrendReferenceLine — Adaptive Trend Line with ATR Channel and Auto Trade Levels Short description: ​ An adaptive trend line indicator that switches color with trend direction, marks confirmed reversals with arrows, and automatically plots entry, stop loss and three R-multiple targets on the chart. Type: ​ Trend-following technical analysis indicator (not an automated trading robot). What it does In trend trading, three questions matter most: has the direction changed, where does the stop go, and
FREE
Trendfollowingline (ATR Based Trend Following Indicator) Overview Trendfollowingline is a trend following indicator drawn in the main chart window. It uses the Average True Range (ATR) as a measure of market volatility and plots a band around the price: while the direction is up, the band is placed below the price and moves upwards; when the direction turns down, the band switches above the price and moves downwards. An arrow marker is drawn on the band each time the direction changes. The indic
FREE
RSICloud
Shi Yuan Wang
RSI Cloud — RSI Dual Moving Average Cloud Indicator This indicator calculates RSI in a separate window, applies fast and slow moving averages to the RSI values, and displays the relative position of the two averages as a filling cloud. It also provides an optional raw RSI line, fixed 70/50/30 reference levels, and arrow markers when the fast and slow RSI averages cross. The indicator is for analysis and signal filtering only; it does not place trades. How it works Wilder RSI is calculated from
RSI Support Resistance Signals Platform: MetaTrader 5 RSI Support Resistance Signals adds zone coloring and signal labels to the standard RSI. The indicator does not execute trades. Signals: Sell: RSI is in the overbought zone and turns down, or RSI is in the resistance zone and a bearish candle with an upper wick is detected. Buy: RSI is in the oversold zone and turns up, or RSI is in the support zone and a bullish candle with a lower wick is detected. Each signal can show a user-defined Engli
FREE
Overview QuantifiedTrends is a MetaTrader 5 indicator that runs in a separate chart sub-window. It describes momentum conditions through three calculation layers: Primary QQE layer: an RSI-based structure that uses smoothing and the smoothed RSI's own variation to build adaptive upper and lower bands and a primary QQE trend line. Statistical envelope layer: Bollinger Bands applied to the deviation of the primary QQE trend line from the 50 midline, used to determine whether primary momentum readi
FREE
HubDynamicTrendLine This indicator identifies strict pivot highs and lows based on N bars to the left and right (default 15), connecting consecutive pivots of the same type to build a dynamic channel with upper and lower boundaries. Key Features Pivot Connections : Consecutive pivot highs and pivot lows are connected with solid trend lines, forming a visible channel structure. Slope Projection : When the price difference between two consecutive pivots of the same type is at least one 200-period
FREE
EF Percentage Channel A trend-state indicator that combines volatility-adaptive averaging, an Ehlers nonlinear filter, and statistical percentile bands into a single, self-adjusting channel. Overview The indicator builds an adaptive trend baseline on the chart and wraps it with statistical percentile bands. When price moves above the upper band, the market is flagged as bullish; below the lower band, bearish; inside the channel, the previous state is retained. The trend line, channel bands, cand
FREE
Trend Pressure Oscillator Trend Pressure Oscillator is a separate-window analytical indicator for MetaTrader 5. It evaluates buying and selling pressure across multiple timeframes to help identify potential exhaustion points and market regime shifts. This tool does not generate trading signals automatically and does not execute trades. It is designed to be used as part of a broader technical analysis approach. Functionality Multi-range pressure analysis using Williams %R over three periods (Pul
FREE
MA Valuation Fluctuations measures how far the current price stands from its moving average. The deviation is expressed in units of dispersion and then compressed by a hyperbolic tangent into a fixed range from -1.0 to +1.0. The indicator is drawn in a separate window and can be used as a context filter next to a trend following or a mean reversion approach. What the indicator shows For every bar the indicator compares the selected price with a moving average in logarithmic terms. Because the r
FREE
High Time Candlestick Chart Visualize the current higher-timeframe candle directly on your lower-timeframe chart. This indicator projects the OHLC data of a selected higher timeframe ​ (M15, H1, H4, D1, or W1) onto your current chart as a graphical candlestick, offset to the right of the live price area. It helps you keep the bigger-picture candle structure in view without switching timeframes. Features Graphical HTF candle : Body, upper wick, and lower wick drawn as chart objects, colored by bu
FREE
Inverse Probability Distribution — Pivot Density and K-Means Clustering Indicator Platform: MetaTrader 5 Overview This indicator is a technical analysis visualization tool for MetaTrader 5. It identifies confirmed pivot highs and lows on historical bars, groups pivot prices with K-Means clustering, and draws an inverse distribution profile on the right side of the chart. The profile shows the density of historical pivot prices at different price levels. The indicator does not generate trading s
FREE
Dual Period Filter — Adaptive Coppock Curve for MT5 Overview The Coppock Curve is built from the sum of a long and a short rate of change, smoothed afterwards, and is used to observe the direction and strength of medium-term momentum. This indicator extends the classic calculation in two ways. First, the price source passes through an optional adaptive filter before the momentum is calculated. Nine filter types are available: None, SMA, EMA, RMA, Double WMA, Triple VWMA, HMA, LLAMA and Kalman.
FREE
Intraday Spark Chart Overview Intraday Spark Chart is an MT5 indicator for intraday analysis. It converts the current price change of a symbol into a percentage of the daily opening price and plots the result in a separate subwindow. Every trading day starts again from the zero line, so each day is drawn as a separate segment and the intraday move of the current day can be observed directly. The indicator is a data visualization tool. It does not generate trading signals and does not provide inv
FREE
Adaptive MACD - R² Based Adaptive MACD Indicator Overview Adaptive MACD is an innovative MetaTrader 5 indicator that improves upon the traditional MACD. By introducing the Pearson correlation coefficient to calculate the R² value of price trends, this indicator can adapt to market conditions and dynamically adjust its sensitivity. It helps traders capture trends more effectively while filtering out market noise. How It Works Traditional MACD uses a fixed difference between fast and slow EMAs. Ad
FREE
# MASignalPanel — Multi-MA Signal Panel with Trend Filter ## Overview MASignalPanel is an all-in-one moving-average signal indicator designed for MetaTrader 5. It combines up to three moving averages (SMA, EMA, SMMA, LWMA) with four trade signal modes — Cross, Breakout, Pullback and Channel — and adds a higher-timeframe trend filter line (default EMA240) to keep you on the right side of the market. A fully interactive control panel lets you change MA type, MA count, periods, s MA indicator, movi
FREE
MACandleApprox — Moving-Average Approximate Candle Indicator MACandleApprox is a custom indicator that, on the main price chart, applies a selected type of moving average to the open, high, low, and close price series respectively, and replots them as "approximate candles". It does not modify the original candlesticks; instead, it overlays a smoothed candle view based on moving averages, helping traders observe the smoothed price movement and directional changes more intuitively. The indicator s
FREE
ZigZag Trader EA - Intelligent ZigZag Trading Assistant Introduction ZigZag Trader EA is a fully automated trading assistant based on the ZigZag indicator. It intelligently identifies previous highs and lows of the ZigZag indicator, combined with an advanced risk management system, to provide you with precise trading signals and automated trade execution. Whether you are a novice or experienced trader, ZigZag Trader EA can help you simplify trading decisions and achieve stable trading performa
Fibonacci Confluence Suite Short description Fibonacci Confluence Suite is a chart-window indicator for MetaTrader 5. It builds a Fibonacci grid from confirmed swing highs and lows, marks the levels where projections from earlier swings overlap, and adds a Golden Pocket zone, Fibonacci time zones, touch statistics and a compact status panel. All levels are calculated from closed bars only. Overview Drawing retracement levels by hand usually means three separate steps: finding the swing, pulling
MACandleApproxPro — Advanced MA Candle Reconstruction & Multi-Dimensional Market Structure Indicator Overview MACandleApproxPro ​ is a comprehensive technical analysis tool designed for professional traders. It breaks through the limitations of traditional moving averages by reconstructing MA data into "MA Candles" ​ through complex algorithms. This unique visualization filters out market noise, allowing you to examine price trends, momentum shifts, and critical market structures from a more
SweepReversalMap — Indicatore di mappatura delle zone di inversione dopo sweep di liquidità Panoramica SweepReversalMap è un indicatore personalizzato basato sul Price Action, progettato per identificare eventi di «Liquidity Sweep» (sweep di liquidità) nel mercato e mappare potenziali zone di inversione dopo il reclaim del prezzo. L’indicatore è adatto a qualsiasi strumento e timeframe. Logica principale Rilevamento dei punti swing: in base allo Swing Length impostato dall’utente, vengono ident
JKTaurus
Shi Yuan Wang
JK-Taurus Expert Advisor A grid-based scaling EA driven by trend and signal confirmation. Overview JK-Taurus is a fully automated trading system designed specifically for the MT5 platform. It integrates multi-timeframe trend analysis, signal confirmation, and a dynamic grid-based position-building strategy, aiming to capture sustained profit opportunities during trending market conditions. The EA features an intuitive visual dashboard, allowing users to monitor account status in real-time and in
SR Power Channel — Support & Resistance Power Channel Indicator Overview SR Power Channel is a main-chart visual indicator built on price extremes and ATR. It locates the highest high (resistance) and the lowest low (support) within a configurable lookback window, extends those two levels to the right, and wraps them into ATR-based channel bands. The indicator also counts bullish and bearish bars inside the window and marks the moments when price breaks above or below the channel bands with dia
Adaptive filtering trend Overview Adaptive filtering trend is a multi-layer signal filtering indicator for the MetaTrader 5 platform, built on the Coppock curve. The indicator computes a long-period and a short-period Rate of Change (ROC) of the price, sums them, and smooths the sum with a Weighted Moving Average (WMA) to obtain the Coppock curve. A set of independently switchable filters is then applied to screen the signals, and bullish or bearish crossings are marked on the main chart throug
JKEFAdvancedModel — Volatility-Adaptive Trend Breakout Trading System Overview JKEFAdvancedModel is a fully automated Expert Advisor for MetaTrader 5. On the selected timeframe it adapts to market volatility to follow the trend and trade breakouts. The system evaluates the state of closed bars only, so signals are not revised by an unfinished bar. Once a direction is confirmed, the robot can enter with a market order or place a stop order at a defined distance from the current price and wait for
JKEFtrendMartingale — Volatility-Adaptive Trend-Following Martingale Trading System Overview JKEFtrendMartingale is a fully automated Expert Advisor for MetaTrader 5. On the selected timeframe it adapts to market volatility to follow the trend and trade breakouts. After a losing trade it increases the lot size of the next trade according to the configured rule, and returns to the initial lot size once profits have absorbed the accumulated loss. The system evaluates the state of closed bars only,
Filtro:
Nessuna recensione
Rispondi alla recensione