OPEN-SOURCE SCRIPT
Structure Lite - Automatic Major Trend Lines

Structure Lite — Automatic Major Trend Lines
Structure Lite automatically detects and plots major market structure using higher-timeframe pivot highs and lows.
It is designed to provide a clean, lightweight view of primary support and resistance without manual drawing or chart clutter.
This script focuses only on major structure and intentionally excludes short-term noise, advanced liquidity concepts, or signal logic.
Features
Automatically plots major resistance (red) and major support (green) trend lines
Uses higher-period pivots to reflect macro / swing structure
Lines extend right for forward projection
Keeps only the most recent major levels to reduce clutter
Optional toggle to hide all trend lines for a clean chart view
How to Use
Add the indicator to your chart
Adjust Major Pivot Period to control how swing-based the structure is
Higher values = fewer, more important levels
Lower values = more responsive structure
Use the plotted lines to:
Identify higher-timeframe support and resistance
Contextualize price action and trend bias
Toggle Hide All Trend Lines to quickly remove structure without removing the indicator
This tool is intended for context and structure awareness, not trade signals.
Design Philosophy
Structure Lite is intentionally minimal:
No alerts
No buy/sell signals
No predictions
No performance claims
It is built as a foundational structure tool that can be combined with the user’s own methodology.
Notes
Some inputs reference advanced features available in a separate professional version
These options are disabled here and included only for interface consistency
No external links, promotions, or monetization are included in this script
Disclaimer
Educational and informational purposes only.
This script does not provide financial advice or trade recommendations.
Past market behavior does not guarantee future results.
© 2025 GammaBulldog
Structure Lite automatically detects and plots major market structure using higher-timeframe pivot highs and lows.
It is designed to provide a clean, lightweight view of primary support and resistance without manual drawing or chart clutter.
This script focuses only on major structure and intentionally excludes short-term noise, advanced liquidity concepts, or signal logic.
Features
Automatically plots major resistance (red) and major support (green) trend lines
Uses higher-period pivots to reflect macro / swing structure
Lines extend right for forward projection
Keeps only the most recent major levels to reduce clutter
Optional toggle to hide all trend lines for a clean chart view
How to Use
Add the indicator to your chart
Adjust Major Pivot Period to control how swing-based the structure is
Higher values = fewer, more important levels
Lower values = more responsive structure
Use the plotted lines to:
Identify higher-timeframe support and resistance
Contextualize price action and trend bias
Toggle Hide All Trend Lines to quickly remove structure without removing the indicator
This tool is intended for context and structure awareness, not trade signals.
Design Philosophy
Structure Lite is intentionally minimal:
No alerts
No buy/sell signals
No predictions
No performance claims
It is built as a foundational structure tool that can be combined with the user’s own methodology.
Notes
Some inputs reference advanced features available in a separate professional version
These options are disabled here and included only for interface consistency
No external links, promotions, or monetization are included in this script
Disclaimer
Educational and informational purposes only.
This script does not provide financial advice or trade recommendations.
Past market behavior does not guarantee future results.
© 2025 GammaBulldog
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.