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
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.