0
Trend · INDICATOR

Trend Line Break

The indicator finds local extremes on its own, draws sloped trendlines through them — resistance and support — and prints a signal arrow the moment the closing price breaks the line by a set number of ticks.

ATAS · .NET 7Indicator · trendlinesauto-drawing + breakout
2026-07-02T20:50:41.362643 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/
The indicator draws trendlines across extremes on its own: on the left, a break of descending resistance to the upside (▲ buy); on the right, a break of rising support to the downside (▼ sell).
WHY IT MATTERS
1
Draws trendlines for you

The indicator hunts for local peaks and troughs and runs resistance and support lines through them — no manual markup needed.

2026-07-02T20:50:41.612284 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/
2
Catches the breakout with an arrow

The moment close pushes past the line by a tick buffer — an arrow appears at the break point: up to buy, down to sell. An entry early in the move.

2026-07-02T20:50:41.637458 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/
3
Test before you risk money

The built-in backtester runs the strategy over history: trades, P/L, commission, slippage — you see profitability before you trade live.

2026-07-02T20:50:41.656332 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/
KEY FEATURES
Auto-drawn trendlinesFinds extremes and runs sloped lines through two peaks/troughs — resistance on top, support below.
Signal on the close breakoutAn arrow at the break point when the closing price crosses the line: ▲ up (buy) · ▼ down (sell).
False-breakout filterMin Breakout Distance in ticks: weak pokes past the line don't count as a breakout — only a decisive push gives a signal.
Peak-search tuningPeriod and Min Peaks Distance — tune to the instrument's volatility: more frequent extremes and more aggressive lines, or fewer and calmer.
Built-in backtesterTest mode: stop beyond the extreme, take in ticks, slippage and commission — trade stats and P/L right on the chart.
Alerts · any timeframeSound/file on breakout; works on all timeframes and instruments, adapting to market volatility.
Mirror down — support breakout → short signal
2026-07-02T20:50:41.517236 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/
2–3 rising lows set up a rising support line; price closes below it by a tick buffer → break marker ⊗ + ▼ sell. Rising support is broken — a trend reversal, a short entry early in the move.
Support breakout → short

Rising lows set up a rising support; price closes below it by a tick buffer → ▼ sell. A broken rising support — a trend reversal, a short entry early in the move.

Test mode — stop beyond the extreme, take and stats
2026-07-02T20:50:41.578342 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/
The built-in breakout backtester sets the stop beyond the last extreme (SL indent ticks) and the take (TP size) on its own, computes P/L with commission and slippage. You see the strategy before trading live.
Check on history

Test mode sets the stop beyond the last extreme and the take in ticks on its own, computes P/L with commission and slippage — you see the strategy's profitability before any real entry.

HOW IT WORKS
1Finds extremes

The center of the window is an extreme if it's the highest (or lowest) among Period candles to its left and right. That's how local peaks and troughs get caught.

2Draws the sloped line

Through two extremes in the same direction, if they're ≥ Min Peaks Distance ticks apart, it draws a line: resistance across highs, support across lows.

3Computes the breakout threshold

On every bar it takes the line price and adds a buffer of ± Min Breakout Distance ticks — weak pokes past the line don't count as a breakout.

4Places the signal

The moment close pushes past the threshold — a break marker ⊗, an arrow (▲ up / ▼ down) and, if enabled, an alert.

2026-07-02T20:50:41.413692 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/
Anatomy of a breakout: 2 peaks → resistance line (multiplier slope) → threshold = line price + Min Breakout·tick → close pushes past the threshold → marker ⊗ + ▲ signal.
Anatomy of a line breakout

Two extremes set the sloped line; threshold = line price + Min Breakout·tick; the moment close pushes past the threshold — a break marker ⊗ and a signal arrow.

Sloped line — trendline across 2 extremes: down-right — resistance, up-right — support
Anchor nodes + marker ⊗ — local extremes (peaks/troughs) hold the line · ⊗ — the point where close broke it
▲ arrow — close broke the line up by a tick buffer — buy signal
▼ arrow — close broke the line down — sell signal (green/red candles — price data)
IN PRACTICE
2026-07-02T20:50:41.470824 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/
Resistance breakout to the upside: a line across two local highs, close broke it by a tick buffer → ⊗ marker + ▲ buy → an upside impulse of +40 ticks.
Resistance breakout to the upside

A line across two local highs; close breaks it by a tick buffer → ⊗ marker + ▲ buy → an upside impulse. Entry at the start of the move after resistance breaks.

Trading a trendline breakout with a check on history

A trader sees an established trendline and wants to enter on its breakout, but some breakouts are false, and there's no time to draw lines by hand and watch every touch.

  1. Sets Period and Min Peaks Distance to the instrument's volatility — the indicator draws the lines across extremes itself
  2. Sets Min Breakout Distance in ticks to filter out weak pokes past the line
  3. Turns on test mode — the backtester gathers stats over history with a stop beyond the extreme and a take
  4. Adjusts the thresholds from the results and trades the breakout arrows with clear stats behind them
Result: Trendlines are drawn automatically, false breakouts are filtered by the tick threshold, and the strategy's profitability is verified on history before any real entry.
SETUP & INTEGRATION
Fully configurable
Period · Min Peaks DistanceMin Breakout DistanceTrend Lines · color/widthBreakout · arrows/highlightTest State · SL/TP · commissionAlerts

Period and distance between peaks, breakout threshold in ticks, line and arrow display, test mode with stop/take, commission and slippage, alerts — tune to your instrument and style.

PlatformATAS (.NET 7) — indicator on the candlestick chart
Signalstrendlines + breakout arrows, alerts to file
Accesssubscription 3 mo / year · manual renewal
Test it on history — then trade the breakouts.Subscription 3 mo / year, manual renewal.
★ Full bundle
SEE ALSO