Dynamic Trendlines & Breakouts
Mar 9, 2026

The Dynamic Trendlines & Breakouts indicator provides an automated solution for structural analysis by mapping pivot-based trendlines and identifying high-probability breakouts using a volume-based filtering system.
Usage
The script is designed for momentum and breakout traders who want to identify key structural boundaries without manual drawing.
- Trendline Identification: The indicator automatically draws dashed resistance (upper) and support (lower) lines by connecting recent pivot points.
- Breakout Labels: "B" (Buy) or "S" (Sell) labels appear when the price closes beyond a trendline. If volume confirmation is enabled, these labels only trigger when the breakout occurs on above-average volume.
- HUD Dashboard: An on-chart panel provides real-time information:
- Last Breakout: Displays the current structural bias (Bullish/Bearish).
- AI Suggestion: Categorizes the current state as "LONG", "SHORT", or "Dangerous".
- Proximity Logic: When the price is within 0.5 ATR of a trendline, the suggestion changes to "Dangerous," signaling that the price is actively testing a boundary and a reversal or breakout is imminent.
Details
The indicator utilizes two algorithmic pillars to ensure accuracy:
- Dynamic Coordinate Mapping: By using
ta.pivothighandta.pivotlow, the script identifies historical pivot points based on the user-defined sensitivity. It maintains a memory of the two most recent pivots to construct lines that represent the current market geometry. - Volume Confirmation Engine: To mitigate "fakeouts" common in retail trading, the script evaluates the volume of the breakout candle against a 20-period Simple Moving Average (SMA). A breakout is only considered valid if the volume exceeds this average, indicating institutional participation.
Settings
⚙️ Trend Algorithm Settings
- Pivot Sensitivity (Lookback): Adjusts how far back the script looks for pivot points. Lower values capture micro-trends, while higher values identify major structural levels.
- Require Volume Confirmation?: Toggles the volume filter. When enabled, breakouts must be accompanied by above-average volume to trigger labels.
🎨 Theme & Dashboard
- Bullish Breakout Color: Sets the color for the "B" label and the support trendline.
- Bearish Breakout Color: Sets the color for the "S" label and the resistance trendline.
- Neutral / Accent Color: Sets the color for the dashboard's secondary text.
📊 HUD Dashboard Settings
- Show Dashboard?: Toggles the visibility of the on-chart information panel.
- Dashboard Position: Selects the corner or side of the chart where the dashboard is displayed.
- Dashboard Text Size: Adjusts the scaling of the dashboard text elements.
FAQ
How do I access Dynamic Trendlines & Breakouts?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What does the "Dangerous" status mean on the dashboard?
It indicates that the price is currently testing a trendline (within 0.5 ATR). This is a high-risk zone where price might bounce or break, making it an ideal time to wait for confirmation rather than entering a trade.
Can I use this for scalping?
Yes, by lowering the "Pivot Sensitivity" setting, the indicator will detect more frequent, short-term trends suitable for lower timeframes and scalping strategies.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

