OPEN-SOURCE SCRIPT
Multi Length Market Structure (BoS + ChoCh)

█ OVERVIEW
The "Multi Length Market Structure (BoS + ChoCh)" indicator is a technical analysis tool that identifies key pivot points on the chart and signals market structure breaks (Break of Structure - BoS) and changes in market character (Change of Character - ChoCh). It is designed for traders employing market structure-based strategies, enabling the identification of critical support and resistance levels and potential trend reversal points. The indicator offers flexible pivot length settings, customizable colors, and labels, ensuring clarity and precision on the chart.
█ CONCEPTS
The indicator was developed to simplify the identification of changes in market structure, catering to both short-term and longer-term trading strategies. To this end, it simultaneously displays breakouts for four editable pivot lengths. The lengths represent the delay, measured in the number of candles, after which a pivot is recognized. Pivots with larger values are often turning points on higher timeframes, providing a broader view of the market.
Why are BoS and ChoCh important? A Break of Structure (BoS) indicates trend continuation when the price breaks a key level (e.g., a previous high or low). A Change of Character (ChoCh) signals a potential trend reversal when the price breaks a level in the opposite direction of the prior trend. These signals help traders identify moments when the market changes its dynamics, which is crucial for price action strategies.
█ FEATURES
- Pivot Detection: Identifies pivot points (highs and lows) based on four different pivot lengths (default: 5, 10, 15, 20), enabling market structure analysis with varying sensitivity.
- BoS and ChoCh Signals: Generates Break of Structure (BoS) signals in the form of triangles (green for bullish, red for bearish) and Change of Character (ChoCh) signals when the price breaks a key level in the opposite direction of the prior trend.
- Pivot Labels: Displays labels for highs (HH - Higher High, LH - Lower High) and lows (HL - Higher Low, LL - Lower Low) with the option to select which pivot to display them for.
- Customizable Colors and Styles: Allows configuration of colors for BoS and ChoCh signals and pivot labels.
- Alerts: Built-in alerts for BoS and ChoCh signals for each pivot length, including price and signal type descriptions.
█ HOW TO USE
Adding to the Chart: Add the indicator to your TradingView chart via the Pine Editor or Indicators menu.
Configuring Settings:
- Pivot Lengths: Set four different pivot lengths (Pivot Length 1-4, default: 5, 10, 15, 20) to adjust the sensitivity of pivot detection. Shorter lengths are more sensitive, while longer lengths are more significant. If you want to use only one length, set all pivot lengths to the same value.
- Colors and Styles: Configure colors for BoS signals (green for bullish, red for bearish) and pivot labels.
- Labels: Enable/disable the display of HH/HL/LH/LL labels and choose which pivot to display them for (Pivot 1-4 or none).
- Signals: BoS and ChoCh signals are displayed as triangles (upward for bullish BoS, downward for bearish). Alerts can be configured for each signal type.
Interpreting Signals:
- Bullish BoS Signal: A green triangle below the candle indicates a breakout above a previous high, suggesting bullish trend continuation.
- Bearish BoS Signal: A red triangle above the candle indicates a breakout below a previous low, suggesting bearish trend continuation.
- Bullish ChoCh Signal: A green triangle after breaking a high in a downtrend indicates a potential reversal to bullish.
- Bearish ChoCh Signal: A red triangle after breaking a low in an uptrend indicates a potential reversal to bearish.
- Pivot Levels: Use pivot points as dynamic support and resistance levels. Levels from longer pivots carry greater significance.
Combine signals with other technical analysis tools, such as RSI (to identify overbought/oversold conditions) or MACD (to confirm momentum). Analyze market structure on higher timeframes for stronger signals. Be particularly cautious when entering positions if RSI approaches overbought/oversold zones and divergences appear, as this may indicate a trend change.
█ APPLICATIONS
- Breakout Strategies: Trade based on BoS signals indicating trend continuation. A BoS signal after breaking a high in an uptrend may suggest a strong bullish impulse, especially when supported by a rising MACD.
- Reversal Strategies: ChoCh signals may indicate a potential trend reversal, particularly when confirmed by other indicators, such as RSI divergences or Fibonacci levels.
The "Multi Length Market Structure (BoS + ChoCh)" indicator is a technical analysis tool that identifies key pivot points on the chart and signals market structure breaks (Break of Structure - BoS) and changes in market character (Change of Character - ChoCh). It is designed for traders employing market structure-based strategies, enabling the identification of critical support and resistance levels and potential trend reversal points. The indicator offers flexible pivot length settings, customizable colors, and labels, ensuring clarity and precision on the chart.
█ CONCEPTS
The indicator was developed to simplify the identification of changes in market structure, catering to both short-term and longer-term trading strategies. To this end, it simultaneously displays breakouts for four editable pivot lengths. The lengths represent the delay, measured in the number of candles, after which a pivot is recognized. Pivots with larger values are often turning points on higher timeframes, providing a broader view of the market.
Why are BoS and ChoCh important? A Break of Structure (BoS) indicates trend continuation when the price breaks a key level (e.g., a previous high or low). A Change of Character (ChoCh) signals a potential trend reversal when the price breaks a level in the opposite direction of the prior trend. These signals help traders identify moments when the market changes its dynamics, which is crucial for price action strategies.
█ FEATURES
- Pivot Detection: Identifies pivot points (highs and lows) based on four different pivot lengths (default: 5, 10, 15, 20), enabling market structure analysis with varying sensitivity.
- BoS and ChoCh Signals: Generates Break of Structure (BoS) signals in the form of triangles (green for bullish, red for bearish) and Change of Character (ChoCh) signals when the price breaks a key level in the opposite direction of the prior trend.
- Pivot Labels: Displays labels for highs (HH - Higher High, LH - Lower High) and lows (HL - Higher Low, LL - Lower Low) with the option to select which pivot to display them for.
- Customizable Colors and Styles: Allows configuration of colors for BoS and ChoCh signals and pivot labels.
- Alerts: Built-in alerts for BoS and ChoCh signals for each pivot length, including price and signal type descriptions.
█ HOW TO USE
Adding to the Chart: Add the indicator to your TradingView chart via the Pine Editor or Indicators menu.
Configuring Settings:
- Pivot Lengths: Set four different pivot lengths (Pivot Length 1-4, default: 5, 10, 15, 20) to adjust the sensitivity of pivot detection. Shorter lengths are more sensitive, while longer lengths are more significant. If you want to use only one length, set all pivot lengths to the same value.
- Colors and Styles: Configure colors for BoS signals (green for bullish, red for bearish) and pivot labels.
- Labels: Enable/disable the display of HH/HL/LH/LL labels and choose which pivot to display them for (Pivot 1-4 or none).
- Signals: BoS and ChoCh signals are displayed as triangles (upward for bullish BoS, downward for bearish). Alerts can be configured for each signal type.
Interpreting Signals:
- Bullish BoS Signal: A green triangle below the candle indicates a breakout above a previous high, suggesting bullish trend continuation.
- Bearish BoS Signal: A red triangle above the candle indicates a breakout below a previous low, suggesting bearish trend continuation.
- Bullish ChoCh Signal: A green triangle after breaking a high in a downtrend indicates a potential reversal to bullish.
- Bearish ChoCh Signal: A red triangle after breaking a low in an uptrend indicates a potential reversal to bearish.
- Pivot Levels: Use pivot points as dynamic support and resistance levels. Levels from longer pivots carry greater significance.
Combine signals with other technical analysis tools, such as RSI (to identify overbought/oversold conditions) or MACD (to confirm momentum). Analyze market structure on higher timeframes for stronger signals. Be particularly cautious when entering positions if RSI approaches overbought/oversold zones and divergences appear, as this may indicate a trend change.
█ APPLICATIONS
- Breakout Strategies: Trade based on BoS signals indicating trend continuation. A BoS signal after breaking a high in an uptrend may suggest a strong bullish impulse, especially when supported by a rising MACD.
- Reversal Strategies: ChoCh signals may indicate a potential trend reversal, particularly when confirmed by other indicators, such as RSI divergences or Fibonacci levels.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.