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
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。