OPEN-SOURCE SCRIPT
SQVIGU Encyclopedia of Chart Patterns

This indicator automatically detects and visualizes 12 classic chart patterns based on the methodology outlined in Thomas Bulkowski's Encyclopedia of Chart Patterns — widely considered the definitive reference for technical pattern analysis.
🔍 Patterns Detected
Reversal Patterns
Pattern Direction Base Reliability
🟢 Head & Shoulders Bearish 75%
🔴 Inverse Head & Shoulders Bullish 85%
🟢 Double Top Bearish 65%
🔴 Double Bottom Bullish 70%
🟢 Triple Top Bearish 70%
🔴 Triple Bottom Bullish 75%
Continuation Patterns
Pattern Direction Base Reliability
🔄 Symmetrical Triangle Directional Bias 55%
📈 Ascending Triangle Bullish 70%
📉 Descending Triangle Bearish 65%
🔻 Rising Wedge Bearish 60%
🔺 Falling Wedge Bullish 65%
🚩 Bull/Bear Flags Directional 70%
⬜ Rectangle Directional Bias 55%
📖 How to Use
Step 1: Setup
1. Add the indicator to your chart
2. Select your desired timeframe (works on all timeframes, recommended: 1H, 4H, Daily)
3. Enable/disable patterns based on your trading strategy
Step 2: Configuration Recommendations
For Day Trading (1H-15min):
```
Pivot Left Bars: 3-5
Pivot Right Bars: 3-5
Min Pattern Bars: 10
Max Pattern Bars: 50
Symmetry Tolerance: 1.0-1.5%
```
For Swing Trading (4H-Daily):
```
Pivot Left Bars: 5-8
Pivot Right Bars: 5-8
Min Pattern Bars: 15
Max Pattern Bars: 100
Symmetry Tolerance: 1.5-2.0%
```
For Position Trading (Daily-Weekly):
```
Pivot Left Bars: 8-12
Pivot Right Bars: 8-12
Min Pattern Bars: 20
Max Pattern Bars: 150
Symmetry Tolerance: 2.0-3.0%
```
Step 3: Reading the Signals
1. Pattern Confirmation: Wait for the price to close beyond the neckline or pattern boundary
2. Entry: Use the plotted "Entry" line as your trigger level
3. Risk Management: Place stops at the suggested "Stop Loss" level
4. Take Profit: Scale out at Target 1, trail stops to Target 2
Step 4: The Information Panel
The dashboard displays:
· Active pattern name
· Directional bias
· Precise entry trigger price
· Stop loss level
· First target level
· Pattern reliability score
🔍 Patterns Detected
Reversal Patterns
Pattern Direction Base Reliability
🟢 Head & Shoulders Bearish 75%
🔴 Inverse Head & Shoulders Bullish 85%
🟢 Double Top Bearish 65%
🔴 Double Bottom Bullish 70%
🟢 Triple Top Bearish 70%
🔴 Triple Bottom Bullish 75%
Continuation Patterns
Pattern Direction Base Reliability
🔄 Symmetrical Triangle Directional Bias 55%
📈 Ascending Triangle Bullish 70%
📉 Descending Triangle Bearish 65%
🔻 Rising Wedge Bearish 60%
🔺 Falling Wedge Bullish 65%
🚩 Bull/Bear Flags Directional 70%
⬜ Rectangle Directional Bias 55%
📖 How to Use
Step 1: Setup
1. Add the indicator to your chart
2. Select your desired timeframe (works on all timeframes, recommended: 1H, 4H, Daily)
3. Enable/disable patterns based on your trading strategy
Step 2: Configuration Recommendations
For Day Trading (1H-15min):
```
Pivot Left Bars: 3-5
Pivot Right Bars: 3-5
Min Pattern Bars: 10
Max Pattern Bars: 50
Symmetry Tolerance: 1.0-1.5%
```
For Swing Trading (4H-Daily):
```
Pivot Left Bars: 5-8
Pivot Right Bars: 5-8
Min Pattern Bars: 15
Max Pattern Bars: 100
Symmetry Tolerance: 1.5-2.0%
```
For Position Trading (Daily-Weekly):
```
Pivot Left Bars: 8-12
Pivot Right Bars: 8-12
Min Pattern Bars: 20
Max Pattern Bars: 150
Symmetry Tolerance: 2.0-3.0%
```
Step 3: Reading the Signals
1. Pattern Confirmation: Wait for the price to close beyond the neckline or pattern boundary
2. Entry: Use the plotted "Entry" line as your trigger level
3. Risk Management: Place stops at the suggested "Stop Loss" level
4. Take Profit: Scale out at Target 1, trail stops to Target 2
Step 4: The Information Panel
The dashboard displays:
· Active pattern name
· Directional bias
· Precise entry trigger price
· Stop loss level
· First target level
· Pattern reliability score
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.