OPEN-SOURCE SCRIPT
LWS Cross Structure Levels (CSL)

Cross Structure Levels (CSL)
Cross Structure Levels (CSL) is a structural tool designed to help visualize moving average crosses in a more practical way.
In many trading environments, moving average crosses are used as a confirmation of directional bias. However, these events are often missed in real time, and the subsequent price movement develops after the initial cross.
This script transforms those crosses into horizontal levels, allowing traders to track how price interacts with them over time.
Concept
Instead of reacting to the cross itself, CSL helps observe how price behaves around that level afterward.
Important Clarification
Key Features
How to Use
Notes
Release Notes - CSL
Cross Structure Levels (CSL) is a structural tool designed to help visualize moving average crosses in a more practical way.
In many trading environments, moving average crosses are used as a confirmation of directional bias. However, these events are often missed in real time, and the subsequent price movement develops after the initial cross.
This script transforms those crosses into horizontal levels, allowing traders to track how price interacts with them over time.
Concept
- A cross between a fast and a slow moving average is treated as a structural event
- The closing price of that cross is plotted as a horizontal level
- That level extends forward and can act as a reference for price behavior
Instead of reacting to the cross itself, CSL helps observe how price behaves around that level afterward.
Important Clarification
- A moving average cross is not a trading signal by itself
- The plotted level is not an entry or exit signal
- It is a contextual reference that may help confirm market conditions
Key Features
- Choice between EMA and SMA
- Customizable lengths (default 9/21)
- Multi-timeframe cross detection (e.g., using 3m or 5m crosses on a 1m chart)
- Session filtering (New York session by default)
- Option to display only current session/day
- Automatic removal of outdated or broken levels
- Optional retest labeling
How to Use
- Use levels as contextual references, not as standalone signals
- Observe reactions when price returns to a level after a cross
- Combine with other tools such as VWAP, opening ranges, or support/resistance
- Focus on price behavior rather than the cross itself
Notes
- This script is designed for intraday analysis
- Different moving average settings may produce different results
- Best used as part of a broader trading framework
Release Notes - CSL
- Initial release of Cross Structure Levels (CSL)
- Converts moving average crosses into horizontal levels
- Supports EMA and SMA with customizable lengths
- Multi-timeframe cross detection
- Session filtering and today-only mode
- Smart cleaning of outdated levels
- Automatic removal of broken levels
- Optional retest detection
- Visual customization options
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.