All indicators

Auto TrendLine Intelligence

May 30, 2026

Static chart image
Support and ResistanceVolume BasedSignalsOscillatorsDashboardFVGLiquidityMoving AveragesPatternsVolatility

The Auto TrendLine Intelligence [BOS+CHoCH+FVG] tool provides a multi-layered market structure analysis system that automates trend line detection alongside Smart Money Concepts (SMC) to identify institutional-grade entry and exit zones.

Usage

The Usage section describes how the script can be used, examples should be provided in this section. This tool functions as a complete overlay for identifying trend continuation and reversal points through structural breaks and liquidity zones.

Market Structure Identification

The indicator automatically plots Major (solid) and Minor (dashed) trend lines based on pivot lookback periods. Users can use Major lines to define the primary trend and Minor lines for refined entry timing. When price breaks these structural levels, the script labels the event as a Break of Structure (BOS) for trend continuation or a Change of Character (CHoCH) for potential reversals.

Supply and Demand Zones

Fair Value Gaps (FVG) are highlighted as shaded boxes when aggressive institutional moves leave imbalances. These zones act as magnets for price; once price returns to "fill" or mitigate the gap, the box is automatically removed to maintain chart clarity.

Entry Signals and Confluence

Signals are generated based on a five-layer confluence model:

  1. Trend Line Interaction: Price must touch or approach a support/resistance line.
  2. Trend Filter: Price must be relative to the 200 EMA (above for Long, below for Short).
  3. Momentum: RSI must not be in exhausted (overbought/oversold) territory.
  4. Volume: A volume spike must be present to confirm institutional participation.
  5. Price Action: The signal candle must close in the direction of the trade.

Details

The script executes five analytical engines simultaneously to provide a comprehensive view of the market:

  • Trend Line Detection: Uses a pivot-based algorithm to connect swing highs and lows.
  • SMC Events: Monitors closes above/below previous pivots to trigger BOS and CHoCH labels.
  • Imbalance Mapping: Detects three-candle sequences to identify and track Fair Value Gaps.
  • Liquidity Detection: Identifies "Equal Highs" and "Equal Lows" (double tops/bottoms) where stop orders are likely clustered, marking them as yellow dotted liquidity lines.
  • Institutional Dashboard: A real-time data panel providing twelve metrics including market bias, ATR volatility, and current SMC status.

Settings

Trend Line Settings

  • Pivot Lookback Length: Determines the significance of swing points. Lower values suit scalping; higher values suit swing trading.
  • Show Major/Minor Trend Lines: Toggles the visibility of primary and secondary structural lines.
  • Extend Lines Right: Extends trend lines to the infinite right of the chart.
  • Line Width and Colors: Customizes the visual thickness and color of support and resistance lines.

Smart Money Concepts

  • Show BOS/CHoCH: Toggles labels for Break of Structure and Change of Character.
  • Show FVG: Toggles visibility of Fair Value Gap boxes.
  • Show Liquidity Zones: Toggles dotted lines for equal highs and lows.
  • FVG Transparency: Adjusts the opacity of the shaded imbalance zones.

Signal and Entry Settings

  • ATR Buffer Multiplier: Adjusts how close price must be to a trend line to trigger a signal.
  • Stop Loss ATR Multiplier: Sets the SL distance from the entry price based on volatility.
  • Risk Reward Ratio: Defines the target for Take Profit 2 relative to the Stop Loss.
  • Show TP/SL on Chart: Toggles the visual projected exit levels.

Filters and Dashboard

  • Enable Volume/RSI Filters: Toggles the requirement for volume spikes and momentum alignment for signals.
  • Show Dashboard: Toggles the real-time data panel.
  • Dashboard Position: Moves the panel to different corners of the chart.

FAQ

How do I interpret the difference between BOS and CHoCH?
BOS (Break of Structure) indicates the trend is continuing in its current direction, while CHoCH (Change of Character) is the first signal that the trend may be reversing.

What timeframe is best for this indicator?
The indicator is adaptive. For scalping, use 1m or 5m timeframes with lower pivot lengths (5-7). For swing trading, use 4H or Daily timeframes with higher pivot lengths (10-15).

How can I access Auto TrendLine Intelligence [BOS+CHoCH+FVG]?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.