TriangleScanner
- 지표
-
Olusegun O Enujowo
I am a Market Strategist and Trading Coach with more than 10 years experience in currencies (forex), gold and index markets. I code in MQL4 and MQL5, and every tool I publish here is built on a strategy I trade myself and teach in my classes. - 버전: 1.21
- 활성화: 5
TriangleScanner
TriangleScanner finds ascending, descending and symmetrical triangles, confirms the breakout on a closed candle, and draws the entry, stop loss and target. A status panel shows the live break levels, how far price is from each, and a tally of how past signals played out under your settings.
How it works
The indicator marks swing highs and lows, then fits one line through the highs and one through the lows. When the two lines converge, it names the pattern by their slope: ascending (flat top, rising lows), descending (falling highs, flat bottom) or symmetrical (both lines converging).
A breakout counts only when a candle closes beyond the line by a buffer, with a body larger than the recent average, and before price has used up most of the way to the apex. Triangles that run out of room are marked Expired.
What you see on the chart
- Each triangle drawn from its first swing to the apex, coloured by type, with its touch count and height.
- An up or down arrow on the breakout candle.
- Entry, stop loss and target lines with price labels and the reward to risk.
- When a signal resolves, its label shows WIN or LOSS, or Not filled for pending entries that never triggered.
- A status panel in the top-left corner. Click its title to fold it away.
The status panel
- What the scanner is doing now, the symbol, timeframe, direction and entry settings.
- The triangle being watched: type and bias, height, age and progress to the apex, and the break-up and break-down prices with their distance from the current price.
- A count of patterns found, buy and sell signals, and expired, filtered and skipped patterns over the history it replays.
- A results tally: trades, wins, losses, win rate, and net and average R. Use it to compare settings on the same chart. It ignores spread, commission and swap, and a candle that touches both stop and target counts as a loss, so it is a rough guide, not a track record. It can be switched off.
Entry, stop and target choices
- Entry: market order on the breakout close, a limit order on a retest of the broken line, or a stop order beyond the breakout candle.
- Stop loss: beyond the last opposite swing, beyond the opposite triangle line, or a fixed ATR distance.
- Target: a multiple of the stop distance (for example 1.5, 2 or 3) or the height of the triangle.
- An optional minimum reward to risk skips setups that do not meet it.
- Direction: buy only, sell only, or both.
No repainting of signals
Breakouts are confirmed on closed candles only. Once an arrow and its levels print, they stay where they are. While a triangle is still forming, its lines are refitted as new swings appear, which is how the pattern takes shape.
Alerts
Pop-up, sound and push notification to the MetaTrader 5 mobile app when a breakout confirms. Each alert shows the symbol, timeframe, pattern, direction, entry, stop, target and reward to risk.
Inputs
- Trading direction and entry mode, and how long a pending entry waits.
- Pattern types to detect.
- Detection: swing strength, swing points per line, minimum touches, pattern length, ATR period, touch tolerance, flat-line drift, minimum height and closes allowed outside the lines.
- Breakout confirmation: close buffer, body size, body lookback and apex limit.
- Stop loss, target and minimum reward to risk.
- Display: history to replay, colours, result labels, pip size, alerts and push.
- Panel: position, font size, colours and whether to show the results tally.
Notes on use
- Works on any symbol and timeframe in your MetaTrader 5 terminal: forex, metals, indices, energies and crypto CFDs.
- Pip size is detected automatically for forex pairs. On other symbols, distances show in price, or you can set Pip size to the value you count as one pip (for example 0.1 on gold).
- Triangles need room to form. On weekly and monthly charts with little history, fewer patterns appear.
- TriangleScanner is an indicator only. It does not open, close or manage trades. Position size is your decision; work it out from the stop distance on the chart.
- Try the free demo in the Strategy Tester before you buy.
Risk notice
Trading forex and CFDs on margin carries a high level of risk and may not be suitable for every trader. Signals and results shown in the screenshots are examples of how the indicator draws and scores setups, not a record of trading results, and past price behaviour does not indicate future results.
