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
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.