Support Resistance Breakouts with ATR Trade Levels
- Indicatori
- Versione: 1.0
- Attivazioni: 10
Breakout Finder ATR detects high-probability breakout and breakdown zones built from repeatedly tested swing highs and lows, then projects ready-to-read Entry / Stop Loss / Take Profit levels calculated from market volatility (ATR). A compact on-chart dashboard keeps you informed of the current trend, the latest signal, and how that signal has played out so far.
It works on any symbol and any timeframe and is designed as a clean visual decision-support tool — not a black box.
Features
- Pivot-based breakout detection. The indicator continuously tracks swing highs and lows (pivots) and groups them into support/resistance zones. A signal is only generated when price breaks a zone that has been tested multiple times, helping filter out random noise.
- Configurable zone strictness. Control the pivot sensitivity, the maximum age of a zone, the price tolerance band (as a % of recent range), and the minimum number of touches required before a breakout counts.
- Volatility-adaptive trade levels (ATR). For every signal the tool plots Entry, Stop Loss, and three Take Profit targets (TP1 / TP2 / TP3). Distances are derived from ATR with fully adjustable multipliers, so levels automatically widen in volatile markets and tighten in quiet ones.
- Levels for past signals too. Optionally display the full Entry/SL/TP set for every historical signal in the processing window, not just the most recent one — useful for reviewing how the logic behaved across recent market structure.
- Trend & status dashboard. A clean panel shows the symbol/timeframe, current trend (EMA-based), live ATR value, the latest signal direction, its levels, and a running status (ACTIVE → TP1/TP2/TP3 HIT, or SL HIT).
- Clear chart visuals. Breakout zones are drawn as boxes, with up/down arrows marking each confirmed signal. Colors, line length, and panel position are customizable.
- De-spam option. Optionally limit the indicator to one arrow per breakout to keep the chart readable.
- Performance limit. Restrict processing to a recent window of bars for fast loading on long histories.
Inputs
Breakout Finder
| Input | Description |
|---|---|
| Pivot Period | Lookback used to detect swing highs/lows. |
| Max Breakout Length | Maximum age (in bars) of a pivot kept for zone building. |
| Threshold Rate % | Width of the test band as a percentage of recent price range. |
| Minimum Number of Tests | Minimum touches a zone needs before a breakout is valid. |
| Breakout (up) color / Breakdown (down) color | Zone and arrow colors. |
| Show breakout boxes | Toggle the zone rectangles. |
| One signal per breakout | Suppress repeated arrows on consecutive qualifying bars. |
ATR Entry / SL / TP
| Input | Description |
|---|---|
| Show Entry/SL/TP levels | Master toggle for trade levels. |
| Draw levels for ALL past signals | Show levels for every historical signal (off = latest only). |
| ATR Period | Period of the ATR used to size levels. |
| SL = ATR x | Stop Loss distance multiplier. |
| TP1 / TP2 / TP3 = ATR x | Take Profit distance multipliers. |
| Level line length (bars) | How far the level lines/labels extend to the right. |
| Entry at breakout level | Use the broken level as entry instead of the close. |
Trend & Dashboard
| Input | Description |
|---|---|
| Show dashboard | Toggle the info panel. |
| Trend EMA period | EMA used to classify the trend (Uptrend/Downtrend). |
| Dashboard X / Dashboard Y | Panel position in pixels. |
| Text color / Background color | Panel styling. |
Alerts & Performance
| Input | Description |
|---|---|
| Popup alert on new signal | Enable/disable alerts. |
| Max bars to process | Limit calculation to the most recent N bars (0 = all). Default 1000. |
Outputs
- Breakout / breakdown zones drawn as rectangles at the tested support/resistance band.
- Signal arrows below (bullish) or above (bearish) the breakout bar.
- Trade levels plotted as labeled horizontal segments: Entry , SL , TP1 , TP2 , TP3 .
- Two indicator buffers ( Breakout Up , Breakout Down ) holding the arrow prices, accessible from EAs or other indicators via iCustom / CopyBuffer .
- Dashboard panel reporting symbol/timeframe, trend, ATR, latest signal direction, its levels, and live status.
Alerts
- A popup alert fires when a new signal is confirmed on a freshly closed bar.
- The alert message includes the symbol, timeframe, direction (BUY breakout / SELL breakdown) and the entry price.
- Alerts can be turned off with a single input.
Limitations
- This is an indicator, not an Expert Advisor — it does not place, modify, or close orders automatically. The Entry/SL/TP levels are informational suggestions for manual decision-making.
- Signals are evaluated on closed bars and a pivot is confirmed only after Pivot Period bars have formed on its right side. This is inherent to swing-based logic and means signals appear with a natural delay rather than at the exact extreme.
- ATR-based levels reflect the volatility at the moment of the signal; historical signals therefore show the ATR distances that applied at that time, not the current ATR.
- The trend label is a simple price-vs-EMA classification and is intended as context, not a standalone entry filter.
- Results depend entirely on input settings, symbol, and timeframe. Past behavior of the levels does not guarantee future performance. This tool does not constitute financial advice — always use proper risk management and test on a demo account first.
The breakout-detection concept is based on the open-source "Breakout Finder" logic (originally published under MPL-2.0), re-implemented for MQL5 and extended with ATR trade levels and a status dashboard.
