Auto 3-Touch Trendline Breakout
Finds and draws angled trendlines on the 4-hour chart, then alerts you when a candle closes through a line that has been touched three or more times. Every break is checked against trend, squeeze and news filters, and the entry, stop, +1R and trailing stop are drawn for you.
Published on TradingView. Subscriptions open at launch.
Backtested results are hypothetical and include spreads but not overnight financing. Past performance is not a reliable indicator of future results. See the Risk Warning.

Built for swing traders who haven’t got all day
I traded 3-touch trendline breakouts on the 4-hour chart for years. The method worked; the time it took didn’t. Sunday top-down analysis, morning sessions redrawing lines, and candles closing overnight. So I turned the way I trade into fixed rules and let the chart do the work. Now I set alerts, check in when one fires, decide, and get on with my day.
A good fit if you
- Swing trade, holding for days to weeks, and let winners run with a trailing stop.
- Like trendline breakouts but don’t have time to draw and redraw lines.
- Want fixed, repeatable rules and to see the stop and trail before you enter.
- Trade forex, gold, silver, oil, major indices or crypto on the 4-hour chart.
Not a good fit if you
- Scalp or want lots of trades a day. Setups come up around 8 to 10 times a month across all markets.
- Need a high win rate to stay comfortable. Most trades are small losses or small wins, and long losing streaks are normal.
- Want guaranteed results or signals to follow blindly. It’s a tool to support your own decisions.
The same lines, drawn the same way, every time
Lines are built from price with no manual input:
- Starting point: a falling line starts at the highest high in the lookback window, and a rising line at the lowest low.
- Building the chain: the line runs to the next swing point (a pullback of at least one ATR, at least three candles apart), at the angle that keeps every wick on the correct side of the line.
- Never through a wick: where a line would cut through a wick, the chain stops and a new line continues from the last swing.
- Double tops and bottoms: a small double top or bottom isn’t used as a starting point. In testing, lines drawn from them produced weaker breakouts.
- A touch: a wick within 0.15 ATR of the line, at least six candles from the last touch.
- The entry line: the most recent line with three or more touches spanning at least 30 candles. Touches are circled and numbered 1, 2, 3.
- The watch line: the newest line, shown dotted even before it qualifies.

A close through the line, then three checks
A breakout is the first 4-hour candle that closes through the entry line; a wick doesn’t count. Lines are built only from earlier candles, so a confirmed breakout never repaints. Each break is then checked against three rules:
With the long-term trend
Price is on the trade’s side of a long-term average (the equivalent of the 200-day, worked out on the 4H chart), and that average slopes the same way.
After a quiet market
Recent ranges (ATR 14) are below 90% of their longer-term average (ATR 100). Breakouts tend to follow quiet periods. Shown as “squeeze .84”; below 0.90 passes.
Not one huge candle
The breakout candle’s range is no more than three times the ATR, filtering out candles driven by a single news release.
A break that passes all three gets a green box. One that fails gets a grey box showing which rule failed, so you can see why it isn’t a setup.

Ready in a few minutes, then let the alerts do the watching
Add it to a 4-hour chart
Once you subscribe, the indicator appears under Indicators → Invite-only scripts on TradingView. Add it to a 4-hour chart of a market with backtest data (the list is under Results). The rules and backtest figures are for 4H only; on other timeframes the panel reminds you.
Check the settings
Open the settings and set your risk per trade at the top: every % figure on the chart and in the panel is worked out from it. Everything else can stay on the tested defaults.
Create the alert
Click Create alert, choose the indicator as the condition, pick “Breakout – all rules pass”, and set the trigger to Once per bar close. Turn on app notifications so the alert reaches your phone. Alerts need a paid TradingView plan.

The settings, explained
| Setting | What it does |
|---|---|
| Your risk per trade (%) | The % of your account you risk on each trade. All % figures on the chart and panel use it. |
| Line settings | Swing size, touch tolerance, minimum touches and minimum span. The defaults are the tested values. |
| Lookback (bars) | How many candles lines are built from (up to 8,000). Lower it to 3,000–5,000 if the script loads slowly. |
| Breakout window | How many recent candles are checked for breakouts. |
| Trail | The ATR multiple for the trailing stop (default 2.5). |
| Spread allowance | Added to the stop so the spread doesn’t take you out early. |
| Skip shorts | Skip short trades on markets where shorts have been weak (stock indices, gold). |
| Trade locks | “Lock an open trade” stops a newer break replacing a running trade; “Hide opposite breaks” stops a break the other way being drawn over it. Both off by default. |
| Info panel | On or off, position and text size. |
| Optional extras | Daily support and resistance zones (context only), name tags on the averages, and Idea mode, which adds explanation callouts for sharing charts. |

See the indicator on TradingView
Read the full description, look through the example charts, and boost it or follow CheckInTrader to hear when subscriptions open.
Everything you need is already on the chart
| You see | What it means |
|---|---|
| Red line | A falling trendline above price. A long breakout is a close above it. |
| Green line | A rising trendline below price. A short breakout is a close below it. |
| Thick solid line | The current entry line, with three or more numbered touches. |
| Dotted line | The newest watch line. It may become an entry line as it picks up touches. |
| Faint lines | Earlier lines in the chain, for context. |
| Dashed line with a diamond | A line that has already broken. The diamond marks the breakout candle. |
| Green / grey box | A break that passes every rule / fails at least one (the ticks and crosses show which). |
| Horizontal lines | Entry (green), stop (red, dotted) and +1R (green, dashed). After +1R, the orange line is the trailing stop. |
| Orange curve | The long-term trend average (equivalent to the 200-day). |
| Blue curve | The 200 EMA of the chart’s timeframe. |
The info panel
- Status: in a trade (with the current R and account %), a breakout on this candle, a line within half an ATR of price (watch), or nothing.
- Falling and rising lines: each entry line’s level and its distance from price in ATR.
- Trend and squeeze: whether each filter passes right now.
- ATR and trail: in pips or points.
- Backtest longs and shorts: results for this exact market and direction. Check them before you take a trade, and give more weight to 2019–26.

Entry, stop, +1R, then the trail does the work
| Entry | The close of the breakout candle. |
| Stop | Beyond the lowest low (longs) or highest high (shorts) of the last three candles, plus a small ATR buffer and a spread allowance. |
| Position size | Size it so a stop-out costs your chosen % of the account. |
| +1R | Where the move equals your initial risk. The trailing stop starts here. |
| Trailing stop | 2.5 ATR behind the best 4-hour close. It only ever moves in your favour. Move your broker stop to it after each 4-hour close. |
| Exit | When price hits the stop or the trailing stop. There’s no fixed target. |

Why there’s no fixed target
Most trades are small losses or small wins, and a minority run many times the initial risk. Those runners pay for everything else. In testing on the same breakouts, a fixed target at +1R or +2R turned the system roughly breakeven, and taking half off at +1R raised the win rate but roughly halved the average result. Letting the trail do the work did best.
If you miss the close
Breakouts often confirm while you’re asleep. In testing, entering later was fine as long as price was still near the breakout level and you kept the original stop. Chasing price well beyond the entry wasn’t worth it: the risk to the stop grows while the upside doesn’t.
If the next candle closes back inside the line
This is the moment most traders panic. In testing, holding with the original stop did clearly better than exiting early. Many of these trades recover, and some become large winners. Unless the stop is hit, let it play out.


One routine, four indicators
The Breakout is the all-rounder. The other CheckInTrader indicators each focus on one kind of market and behave differently, so you can run them side by side: one set of alerts, one check-in when something fires.
Auto 3-Touch Trendline Breakout
Their bad months rarely line up
Losing months still happen: combined, Breakout, Dip and Metals were down in 10 of these 24 months. The point is that one strategy’s bad month is usually softened by the others.
Running more than one
- Use the same risk per trade on each, so 1R means the same amount whichever indicator the trade came from.
- Watch for overlap. The Breakout also covers stock indices, gold, silver and Bitcoin. If two indicators are in a trade on the same market, that’s double the exposure to one market.
- Decide your total open risk in advance, so a busy week doesn’t leave more of your account at risk than you’re comfortable with.
Backtested results. Past performance is not a reliable indicator of future results.
The full numbers, bad years included
Taking every valid setup across the 28 markets with full data, the backtest averaged about +21R a year from 2005 to 2025, with a typical (median) year of about +18R and about +20R a year since 2019. The best year was +79R (2008). There were three losing years: 2006, 2016 and 2024, the worst being 2016 at about −29R. The largest peak-to-trough drawdown was about 37R. The longest winning run was 12 trades; the longest losing run was 16.
| Trade by trade (2005–2026) | Result |
|---|---|
| Win rate | About 38% |
| Average per trade | +0.19R (+0.14R since 2019) |
| Average winner / loser | About +2.0R / −0.9R |
| Median winner | About +1.1R |
| Reaching +2R / +5R | About 1 trade in 8 / 1 in 30 |
At 1% risk per trade, 1R is 1% of your account, so +20R is roughly +20% before compounding. The figures include each market’s typical spread but not overnight financing; on typical CFD financing rates the average fell to about +16R a year. These are backtest figures, not a forecast. Live results are likely to be lower because of costs, missed trades, and because the market list was partly chosen on past results.
Markets with backtest data: AUD/CHF, AUD/JPY, AUD/USD, CAD/CHF, CAD/JPY, CHF/JPY, EUR/AUD, EUR/CHF, EUR/JPY, EUR/NZD, EUR/USD, GBP/AUD, GBP/CHF, GBP/JPY, GBP/NZD, GBP/USD, NZD/CHF, NZD/JPY, USD/CAD, USD/CHF, USD/JPY, gold, silver, Brent oil, US30, NAS100, DE30 (Germany 40) and Bitcoin, plus Ethereum and Bitcoin Cash (from 2020, shown in the panel but not in the yearly figures). Results differ by market and by direction, so check the panel for the market you’re trading.
Backtested on OANDA data. Hypothetical results have many limitations, explained in our Risk Warning. Past performance is not a reliable indicator of future results.
Breakout questions
Does it repaint?
No. A breakout is confirmed only when a 4-hour candle closes, using lines built from earlier candles, and it’s fixed from then on. Only the dotted watch line can shift as new swings form.
Can I use it on other timeframes?
The lines still draw, but the rules and backtest figures are for the 4-hour chart only, and the panel will remind you.
Which TradingView plan do I need?
Alerts on indicators need a paid TradingView plan. The script uses whatever history your plan loads (from 5,000 candles on Basic up to 8,000); in testing, the length of history made very little difference to recent breakouts.
Why do my lines look slightly different from yours?
Lines are built from your chart’s candles, so different data feeds and 4-hour candle times can draw slightly different lines. The backtest used OANDA data, where 4-hour candles close at 5pm New York time and every four hours from there.
Does it know about economic news?
It filters out unusually large candles, but it doesn’t read the economic calendar. Check the calendar before you enter, and see the Risk Warning on news and the daily rollover.
The script loads slowly. What can I do?
Lower the “Lookback (bars)” setting to 3,000–5,000. Anything from about 1,500 up works well.
Why is the source code closed?
The line-building method (the wick-respecting chain, touch spacing and double-top handling) is my own work, developed and tested over many years.
Should I practise first?
Yes. Follow the alerts on a paper trading or demo account first so you learn how setups look and whether you can act on them in time. Our Risk Warning has practical tips.
Check in when a line breaks, not all day
The Auto 3-Touch Trendline Breakout is available at launch. Join the list to hear the moment it’s live.
General information only, not financial advice. Trading leveraged products carries a high risk of loss.