PROTECTED SOURCE SCRIPT
Forex Support Level Identifier. Beta version. [Dots3Red]

The following script is designed to detect horizontal support levels on Forex Pairs.
Description
Instead of drawing random support/resistance lines, this script analyzes how the price repeatedly builds structure around specific levels over time. When multiple reactions form near the same price area within a defined time window, they are grouped into a cluster, forming a statistically meaningful base.
These bases often represent:
• accumulation or positioning areas
• liquidity resting zones
• pre-breakout compression levels
• areas where price is likely to react again
How It Works
The script:
• Tracks recurring price interaction points
• Groups nearby reactions into clusters
• Continuously readjusts the base level as structure evolves
• Invalidates bases when structure breaks decisively
The user can select the following parameters:
• Long Window Timeline: This parameter looks for the maximum bar length to analyse the chart
• Short Window Timeline: Defines the maximum number of bars allowed between price reactions for them to be considered part of the same structural base.
• DevThreshold: This setting controls how close price reactions must be to be considered part of the same structural base.

Best Use Cases
This indicator is especially useful for:
• Identifying breakout launchpads
• Finding pullback reaction zones
• Confirming entries near the structure
• Understanding where liquidity may be sitting
The limitations
• Forex only
• For lower timeframes, there can be too much noise. Good for daily charts, though tested on a 15-minute time period too.
•The source code is hidden due to too inconsistent formatting, too many magic numbers that need proper statistical checks.
Future work
Description
Instead of drawing random support/resistance lines, this script analyzes how the price repeatedly builds structure around specific levels over time. When multiple reactions form near the same price area within a defined time window, they are grouped into a cluster, forming a statistically meaningful base.
These bases often represent:
• accumulation or positioning areas
• liquidity resting zones
• pre-breakout compression levels
• areas where price is likely to react again
How It Works
The script:
• Tracks recurring price interaction points
• Groups nearby reactions into clusters
• Continuously readjusts the base level as structure evolves
• Invalidates bases when structure breaks decisively
The user can select the following parameters:
• Long Window Timeline: This parameter looks for the maximum bar length to analyse the chart
• Short Window Timeline: Defines the maximum number of bars allowed between price reactions for them to be considered part of the same structural base.
• DevThreshold: This setting controls how close price reactions must be to be considered part of the same structural base.
Best Use Cases
This indicator is especially useful for:
• Identifying breakout launchpads
• Finding pullback reaction zones
• Confirming entries near the structure
• Understanding where liquidity may be sitting
The limitations
• Forex only
• For lower timeframes, there can be too much noise. Good for daily charts, though tested on a 15-minute time period too.
•The source code is hidden due to too inconsistent formatting, too many magic numbers that need proper statistical checks.
Future work
- Adding a smarter cluster detection with the merge technique.
- Making the indicator work for all asset classes.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Connect the dots to elevate your trading.
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 protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Connect the dots to elevate your trading.
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.