OPEN-SOURCE SCRIPT
Price Action [SnR+BreakOut / FalseBreak]

Core Functionality
Multi-Feature Analysis: Combines pivot points, support/resistance levels, breakout detection, and false break signals
Price Action Classification: Identifies market structure through Higher Highs, Lower Highs, Higher Lows, and Lower Lows
Key Features
1. Price Action Pivot Analysis
Pivot Detection Settings:
Customizable Lengths: Separate left/right lengths for high and low pivots (default: 13/26)
Pivot Classification:
Higher High (HH): Green triangle down - indicates bullish momentum
Lower High (LH): Red triangle down - indicates weakening uptrend
Higher Low (HL): Green triangle up - indicates strong pullback
Lower Low (LL): Red triangle up - indicates bearish momentum
Visual Options:
Toggle individual pivot types on/off
Show price labels with customizable sizes
Display pivot levels as lines or fractal chaos channels
Show average pivot line (high + low / 2)
2. False Break Detection
Advanced Breakout Validation:
False Break Signals: Detects when breakouts fail and price reverses
Validation Period: Configurable bars (1-10) to monitor break sustainability
Engulfing Condition: Requires reversal candle to engulf the breakout candle
Visual Alerts: "FalseB!!" labels in red (for failed breakouts) or green (for failed breakdowns)
False Break Logic:
Tracks recent breakouts/breakdowns
Monitors price action after the break
Flags when price re-enters the original range with strong reversal
3. Support & Resistance Levels
Swing-Based S/R:
Swing Period: Configurable lookback period (default: 26 bars)
Multiple Levels: Displays 3 most recent support and resistance levels
Customizable Appearance:
Line styles (solid, dashed, dotted)
Extend options (left, right, both, none)
Separate colors for support/resistance lines and labels
S/R Calculation:
Uses pivot highs/lows to identify significant levels
Maintains historical S/R levels as price moves
Automatically updates as new pivots form
4. Breakout Detection
Fractal Breakout Signals:
Breakout Arrows: Up/down arrows when price breaks pivot levels
Real-time Detection: Flags breaks as they occur
Clear Visuals: Green "⬆️" for breakouts, red "⬇️" for breakdowns
Multi-Feature Analysis: Combines pivot points, support/resistance levels, breakout detection, and false break signals
Price Action Classification: Identifies market structure through Higher Highs, Lower Highs, Higher Lows, and Lower Lows
Key Features
1. Price Action Pivot Analysis
Pivot Detection Settings:
Customizable Lengths: Separate left/right lengths for high and low pivots (default: 13/26)
Pivot Classification:
Higher High (HH): Green triangle down - indicates bullish momentum
Lower High (LH): Red triangle down - indicates weakening uptrend
Higher Low (HL): Green triangle up - indicates strong pullback
Lower Low (LL): Red triangle up - indicates bearish momentum
Visual Options:
Toggle individual pivot types on/off
Show price labels with customizable sizes
Display pivot levels as lines or fractal chaos channels
Show average pivot line (high + low / 2)
2. False Break Detection
Advanced Breakout Validation:
False Break Signals: Detects when breakouts fail and price reverses
Validation Period: Configurable bars (1-10) to monitor break sustainability
Engulfing Condition: Requires reversal candle to engulf the breakout candle
Visual Alerts: "FalseB!!" labels in red (for failed breakouts) or green (for failed breakdowns)
False Break Logic:
Tracks recent breakouts/breakdowns
Monitors price action after the break
Flags when price re-enters the original range with strong reversal
3. Support & Resistance Levels
Swing-Based S/R:
Swing Period: Configurable lookback period (default: 26 bars)
Multiple Levels: Displays 3 most recent support and resistance levels
Customizable Appearance:
Line styles (solid, dashed, dotted)
Extend options (left, right, both, none)
Separate colors for support/resistance lines and labels
S/R Calculation:
Uses pivot highs/lows to identify significant levels
Maintains historical S/R levels as price moves
Automatically updates as new pivots form
4. Breakout Detection
Fractal Breakout Signals:
Breakout Arrows: Up/down arrows when price breaks pivot levels
Real-time Detection: Flags breaks as they occur
Clear Visuals: Green "⬆️" for breakouts, red "⬇️" for breakdowns
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.