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. קרא עוד בתנאים וההגבלות.