TRENDLINES BREAKS Trading Guide

Last updated: July 22, 2026

The Trendlines with Breaks is a quantitative technical analysis tool. Trendlines with Breaks [LuxAlgo] v2.0 - Golden Standard Architecture (O(1), Anti-Repaint, Headless Safe) Automatic trendlines based on Swing High / Swing Low detection.

What does the indicator show?

  • Market Structure & Momentum: Visualizes prevailing trend directions and key reversal zones.
  • BUY / SELL Signals: Highlights confirmed entry and exit opportunities based on quantitative rules.
  • Dynamic Boundaries: Provides adaptive levels for managing trade risk and reward expectations.

Key Settings

  • Swing Lookback (length): Controls the calculation period and sensitivity for market detection.
  • Slope (mult): Controls the calculation period and sensitivity for market detection.
  • Slope Method (calcMethod): Controls the calculation period and sensitivity for market detection.
  • Show Extended Lines (showExt): Controls the calculation period and sensitivity for market detection.
  • Up Trendline (Support) (upColor): Controls the calculation period and sensitivity for market detection.
  • Down Trendline (Resistance) (dnColor): Controls the calculation period and sensitivity for market detection.
  • Upper Line (upper_line): Controls the calculation period and sensitivity for market detection.
  • Lower Line (lower_line): Controls the calculation period and sensitivity for market detection.
  • Up Break (B) (upBreak): Controls the calculation period and sensitivity for market detection.
  • Dn Break (S) (dnBreak): Controls the calculation period and sensitivity for market detection.
  • Last Break B (last_break_B): Controls the calculation period and sensitivity for market detection.
  • Last Break S (last_break_S): Controls the calculation period and sensitivity for market detection.
  • Upward Breakout (upBreak): Controls the calculation period and sensitivity for market detection.
  • Downward Breakout (dnBreak): Controls the calculation period and sensitivity for market detection.
  • Upper Trendline (upper_line): Controls the calculation period and sensitivity for market detection.
  • Lower Trendline (lower_line): Controls the calculation period and sensitivity for market detection.
  • Price Above Upper (is_above_upper): Controls the calculation period and sensitivity for market detection.
  • Price Below Lower (is_below_lower): Controls the calculation period and sensitivity for market detection.
  • Last Break was B (last_break_B): Controls the calculation period and sensitivity for market detection.
  • Last Break was S (last_break_S): Controls the calculation period and sensitivity for market detection.

How to use Strategy Parameters (Condition Source)

Within the Strategy Tester module, this indicator can be used both as a direct signal source and as a market-state filter.

1. Signal Events

  • upBreak - Up Break (B) event signal.
  • dnBreak - Dn Break (S) event signal.
  • last_break_B - Last Break B event signal.
  • last_break_S - Last Break S event signal.
  • upBreak - Upward Breakout event signal.
  • dnBreak - Downward Breakout event signal.
  • is_above_upper - Price Above Upper event signal.
  • is_below_lower - Price Below Lower event signal.
  • last_break_B - Last Break was B event signal.
  • last_break_S - Last Break was S event signal.

2. Filters and Trade Levels

  • length - Swing Lookback value used for structural qualification or thresholds.
  • mult - Slope value used for structural qualification or thresholds.
  • calcMethod - Slope Method value used for structural qualification or thresholds.
  • showExt - Show Extended Lines value used for structural qualification or thresholds.
  • upper_line - Upper Line value used for structural qualification or thresholds.
  • lower_line - Lower Line value used for structural qualification or thresholds.
  • upper_line - Upper Trendline value used for structural qualification or thresholds.
  • lower_line - Lower Trendline value used for structural qualification or thresholds.

Strategy Example: Enter Long when buySignal is true and trendFilter == 1, ensuring trades align with dominant momentum.

Continue Research

Explore the full academy, the product documentation, and the main platform pages for deeper crypto backtesting and strategy research.

Browse all academy guides Read the documentation Compare platform plans See the research engine