OPEN-SOURCE SCRIPT
Telah dikemas kini Inside/Outside Bar Sequence Detector

# Inside/Outside Bar Sequence Detector
## English Description
**Inside/Outside Bar Sequence Detector**
This indicator identifies and visualizes sequences of Inside and Outside bars on any chart. It highlights important price action patterns that can signal potential market reversals or continuation moves.
**Key Features:**
- Automatically detects consecutive Inside bars (where price action is contained within the previous bar's range) and Outside bars (where price action exceeds the previous bar's range)
- Displays sequences with customizable labels showing the pattern type
- Highlights the price range of each sequence with a transparent box
- Marks individual Inside bars with "i" and Outside bars with "o" below each candle
- Applies special pattern recognition rules for more accurate trade signals
- Fully customizable appearance including colors, opacity, and label positioning
Adjust the minimum sequence length according to your trading timeframe and strategy to filter out noise and focus on significant patterns.
## ไธญๆๆ่ฟฐ
**ๅ ๅ /ๅคๅ K็บฟๅบๅๆฃๆตๅจ**
่ฟไธชๆๆ ๅฏไปฅ่ฏๅซๅนถๅฏ่งๅไปปไฝๅพ่กจไธ็ๅ ๅ ๅๅคๅ K็บฟๅบๅใๅฎ็ชๅบๆพ็คบ้่ฆ็ไปทๆ ผ่กไธบๆจกๅผ๏ผ่ฟไบๆจกๅผๅฏ่ฝ้ข็คบๅธๅบๆฝๅจ็ๅ่ฝฌๆๅปถ็ปญ่ตฐๅฟใ
**ไธป่ฆ็น็น๏ผ**
- ่ชๅจๆฃๆต่ฟ็ปญ็ๅ ๅ K็บฟ๏ผไปทๆ ผๆดปๅจ่ขซ้ๅถๅจๅไธๆ นK็บฟ่ๅดๅ ๏ผๅๅคๅ K็บฟ๏ผไปทๆ ผๆดปๅจ่ถ ๅบๅไธๆ นK็บฟ่ๅด๏ผ
- ้่ฟๅฏ่ชๅฎไน็ๆ ็ญพๆพ็คบๆจกๅผ็ฑปๅ
- ็จ้ๆๆก็ชๅบๆพ็คบๆฏไธชๅบๅ็ไปทๆ ผ่ๅด
- ๅจๆฏๆ นK็บฟไธๆน็จ"i"ๆ ่ฎฐๅ ๅ ่ก็๏ผ็จ"o"ๆ ่ฎฐๅคๅ ่ก็
- ๅบ็จ็นๆฎๆจกๅผ่ฏๅซ่งๅ๏ผๆไพๆดๅ็กฎ็ไบคๆไฟกๅท
- ๅฎๅ จๅฏ่ชๅฎไน็ๅค่ง๏ผๅ ๆฌ้ข่ฒใ้ๆๅบฆๅๆ ็ญพไฝ็ฝฎ
ๆ นๆฎๆจ็ไบคๆๆถ้ดๆกๆถๅ็ญ็ฅ่ฐๆดๆๅฐๅบๅ้ฟๅบฆ๏ผไปฅ่ฟๆปคๅช้ณๅนถไธๆณจไบ้่ฆๆจกๅผใ
## English Description
**Inside/Outside Bar Sequence Detector**
This indicator identifies and visualizes sequences of Inside and Outside bars on any chart. It highlights important price action patterns that can signal potential market reversals or continuation moves.
**Key Features:**
- Automatically detects consecutive Inside bars (where price action is contained within the previous bar's range) and Outside bars (where price action exceeds the previous bar's range)
- Displays sequences with customizable labels showing the pattern type
- Highlights the price range of each sequence with a transparent box
- Marks individual Inside bars with "i" and Outside bars with "o" below each candle
- Applies special pattern recognition rules for more accurate trade signals
- Fully customizable appearance including colors, opacity, and label positioning
Adjust the minimum sequence length according to your trading timeframe and strategy to filter out noise and focus on significant patterns.
## ไธญๆๆ่ฟฐ
**ๅ ๅ /ๅคๅ K็บฟๅบๅๆฃๆตๅจ**
่ฟไธชๆๆ ๅฏไปฅ่ฏๅซๅนถๅฏ่งๅไปปไฝๅพ่กจไธ็ๅ ๅ ๅๅคๅ K็บฟๅบๅใๅฎ็ชๅบๆพ็คบ้่ฆ็ไปทๆ ผ่กไธบๆจกๅผ๏ผ่ฟไบๆจกๅผๅฏ่ฝ้ข็คบๅธๅบๆฝๅจ็ๅ่ฝฌๆๅปถ็ปญ่ตฐๅฟใ
**ไธป่ฆ็น็น๏ผ**
- ่ชๅจๆฃๆต่ฟ็ปญ็ๅ ๅ K็บฟ๏ผไปทๆ ผๆดปๅจ่ขซ้ๅถๅจๅไธๆ นK็บฟ่ๅดๅ ๏ผๅๅคๅ K็บฟ๏ผไปทๆ ผๆดปๅจ่ถ ๅบๅไธๆ นK็บฟ่ๅด๏ผ
- ้่ฟๅฏ่ชๅฎไน็ๆ ็ญพๆพ็คบๆจกๅผ็ฑปๅ
- ็จ้ๆๆก็ชๅบๆพ็คบๆฏไธชๅบๅ็ไปทๆ ผ่ๅด
- ๅจๆฏๆ นK็บฟไธๆน็จ"i"ๆ ่ฎฐๅ ๅ ่ก็๏ผ็จ"o"ๆ ่ฎฐๅคๅ ่ก็
- ๅบ็จ็นๆฎๆจกๅผ่ฏๅซ่งๅ๏ผๆไพๆดๅ็กฎ็ไบคๆไฟกๅท
- ๅฎๅ จๅฏ่ชๅฎไน็ๅค่ง๏ผๅ ๆฌ้ข่ฒใ้ๆๅบฆๅๆ ็ญพไฝ็ฝฎ
ๆ นๆฎๆจ็ไบคๆๆถ้ดๆกๆถๅ็ญ็ฅ่ฐๆดๆๅฐๅบๅ้ฟๅบฆ๏ผไปฅ่ฟๆปคๅช้ณๅนถไธๆณจไบ้่ฆๆจกๅผใ
Nota Keluaran
Inside/Outside Bar & Micro Channel DetectorEnglish Description
Overview
The Inside/Outside Bar & Micro Channel Detector is a comprehensive Pine Script indicator designed for TradingView that identifies and visualizes
two powerful price action patterns: Inside/Outside Bar sequences and Micro Channels. This dual-purpose tool helps traders spot consolidation
periods and trending micro-structures in any timeframe.
Key Features
๐ Inside/Outside Bar Detection
- Inside Bars: Identifies candles with high โค previous high and low โฅ previous low
- Outside Bars: Identifies candles with high โฅ previous high and low โค previous low
- Sequence Detection: Groups consecutive Inside/Outside bars into meaningful sequences
- Smart Filtering: Applies intelligent rules to filter out noise and highlight significant patterns
- Visual Markers: Displays sequence labels and background highlighting
๐ Micro Channel Detection
- Bullish Micro Channels: Detects sequences where lows progressively rise or remain equal
- Bearish Micro Channels: Detects sequences where highs progressively fall or remain equal
- Dynamic Trend Lines: Draws trend lines connecting channel boundaries
- Real-time Updates: Updates trend lines as channels extend or terminate
- Historical Persistence: Preserves completed channel trend lines for reference
Settings & Customization
Inside/Outside Bar Settings
- Minimum Sequence Length (2-10): Set the minimum bars required for a valid sequence
- Marker Color & Opacity: Customize the appearance of individual bar markers
- Label Settings: Control text color, size, and position of sequence labels
- Background Box: Configure color and opacity of sequence highlighting
Micro Channel Settings
- Enable/Disable: Toggle Micro Channel detection on/off
- MC Minimum Length (3-20): Set minimum bars required for a valid channel
- Trend Line Width (1-5): Adjust thickness of channel trend lines
- Trend Line Opacity (0-100%): Control transparency of all trend lines
- Color Settings: Separate colors for bullish and bearish channels
How to Use
1. Add to Chart: Apply the indicator to any chart and timeframe
2. Configure Settings: Adjust parameters in the "Inputs" tab to match your trading style
3. Interpret Signals:
- Inside/Outside bar sequences often indicate consolidation before breakouts
- Micro Channels show short-term trending behavior and potential reversal points
4. Combine with Other Analysis: Use alongside support/resistance, volume, and other indicators for comprehensive analysis
Best Practices
- Use on multiple timeframes for confluence
- Combine with volume analysis for better signal quality
- Pay attention to sequence breaks as potential reversal signals
- Adjust opacity settings based on chart background for optimal visibility
Technical Specifications
- Pine Script Version: v6
- Overlay: True (draws on price chart)
- Max Objects: 500 labels, 500 boxes, 500 lines
- Author: WendellZhang
- License: Mozilla Public License 2.0
---
ไธญๆ่ฏดๆ
ๆฆ่ฟฐ
Inside/Outside Bar & Micro Channel Detector๏ผๅ ๅ ๅคๅ K็บฟไธๅพฎ้้ๆฃๆตๅจ๏ผๆฏไธไธชไธบTradingView่ฎพ่ฎก็็ปผๅๆงPine
Scriptๆๆ ๏ผ่ฝๅค่ฏๅซๅๅฏ่งๅไธค็งๅผบๅคง็ไปทๆ ผ่กไธบๆจกๅผ๏ผๅ ๅ /ๅคๅ K็บฟๅบๅๅๅพฎ้้ใ่ฟไธชๅๅ่ฝๅทฅๅ ทๅธฎๅฉไบคๆ่ ๅจไปปไฝๆถ้ดๆกๆถๅ ๅ็ฐ็ๆดๆๅ่ถๅฟๅพฎ็ปๆใ
ๆ ธๅฟๅ่ฝ
๐ ๅ ๅ /ๅคๅ K็บฟๆฃๆต
- ๅ ๅ K็บฟ๏ผ่ฏๅซๆ้ซไปท โค ๅไธๆ นๆ้ซไปทไธๆไฝไปท โฅ ๅไธๆ นๆไฝไปท็K็บฟ
- ๅคๅ K็บฟ๏ผ่ฏๅซๆ้ซไปท โฅ ๅไธๆ นๆ้ซไปทไธๆไฝไปท โค ๅไธๆ นๆไฝไปท็K็บฟ
- ๅบๅๆฃๆต๏ผๅฐ่ฟ็ปญ็ๅ ๅ /ๅคๅ K็บฟ็ปๅๆๆๆไน็ๅบๅ
- ๆบ่ฝ่ฟๆปค๏ผๅบ็จๆบ่ฝ่งๅ่ฟๆปคๅช้ณ๏ผ็ชๅบ้่ฆๆจกๅผ
- ่ง่งๆ ่ฎฐ๏ผๆพ็คบๅบๅๆ ็ญพๅ่ๆฏ้ซไบฎ
๐ ๅพฎ้้ๆฃๆต
- ๅคๅคดๅพฎ้้๏ผๆฃๆตไฝ็น้ๆญฅๆฌ้ซๆไฟๆ็ธ็ญ็ๅบๅ
- ็ฉบๅคดๅพฎ้้๏ผๆฃๆต้ซ็น้ๆญฅ้ไฝๆไฟๆ็ธ็ญ็ๅบๅ
- ๅจๆ่ถๅฟ็บฟ๏ผ็ปๅถ่ฟๆฅ้้่พน็็่ถๅฟ็บฟ
- ๅฎๆถๆดๆฐ๏ผ้็้้ๅปถไผธๆ็ปๆญขๆดๆฐ่ถๅฟ็บฟ
- ๅๅฒไฟๆ๏ผไฟ็ๅทฒๅฎๆ็้้่ถๅฟ็บฟไพๅ่
่ฎพ็ฝฎไธๅฎๅถ
ๅ ๅ /ๅคๅ K็บฟ่ฎพ็ฝฎ
- ๆๅฐๅบๅ้ฟๅบฆ (2-10)๏ผ่ฎพ็ฝฎๆๆๅบๅๆ้็ๆๅฐK็บฟๆฐ้
- ๆ ่ฎฐ้ข่ฒไธ้ๆๅบฆ๏ผ่ชๅฎไนๅไธชK็บฟๆ ่ฎฐ็ๅค่ง
- ๆ ็ญพ่ฎพ็ฝฎ๏ผๆงๅถๅบๅๆ ็ญพ็ๆๅญ้ข่ฒใๅคงๅฐๅไฝ็ฝฎ
- ่ๆฏๆก๏ผ้ ็ฝฎๅบๅ้ซไบฎ็้ข่ฒๅ้ๆๅบฆ
ๅพฎ้้่ฎพ็ฝฎ
- ๅฏ็จ/็ฆ็จ๏ผๅผๅฏๆๅ ณ้ญๅพฎ้้ๆฃๆต
- MCๆๅฐ้ฟๅบฆ (3-20)๏ผ่ฎพ็ฝฎๆๆ้้ๆ้็ๆๅฐK็บฟๆฐ้
- ่ถๅฟ็บฟๅฎฝๅบฆ (1-5)๏ผ่ฐๆด้้่ถๅฟ็บฟ็็ฒ็ป
- ่ถๅฟ็บฟ้ๆๅบฆ (0-100%)๏ผๆงๅถๆๆ่ถๅฟ็บฟ็้ๆๅบฆ
- ้ข่ฒ่ฎพ็ฝฎ๏ผไธบๅคๅคดๅ็ฉบๅคด้้่ฎพ็ฝฎไธๅ้ข่ฒ
ไฝฟ็จๆนๆณ
1. ๆทปๅ ๅฐๅพ่กจ๏ผๅฐๆๆ ๅบ็จๅฐไปปไฝๅพ่กจๅๆถ้ดๆกๆถ
2. ้ ็ฝฎ่ฎพ็ฝฎ๏ผๅจ"่พๅ ฅ"้้กนๅกไธญ่ฐๆดๅๆฐไปฅๅน้ ๆจ็ไบคๆ้ฃๆ ผ
3. ่งฃ่ฏปไฟกๅท๏ผ
- ๅ ๅ /ๅคๅ K็บฟๅบๅ้ๅธธ่กจ็คบ็ช็ ดๅ็็ๆด
- ๅพฎ้้ๆพ็คบ็ญๆ่ถๅฟ่กไธบๅๆฝๅจๅ่ฝฌ็น
4. ็ปๅๅ ถไปๅๆ๏ผไธๆฏๆ/้ปๅใๆไบค้ๅๅ ถไปๆๆ ็ปๅไฝฟ็จ๏ผ่ฟ่ก็ปผๅๅๆ
ๆไฝณๅฎ่ทต
- ๅจๅคไธชๆถ้ดๆกๆถไธไฝฟ็จไปฅ่ทๅพๅ ฑๆฏ
- ็ปๅๆไบค้ๅๆไปฅ่ทๅพๆดๅฅฝ็ไฟกๅท่ดจ้
- ๅ ณๆณจๅบๅ็ ดๅไฝไธบๆฝๅจๅ่ฝฌไฟกๅท
- ๆ นๆฎๅพ่กจ่ๆฏ่ฐๆด้ๆๅบฆ่ฎพ็ฝฎไปฅ่ทๅพๆไฝณๅฏ่งๆง
ๆๆฏ่งๆ ผ
- Pine Script็ๆฌ๏ผv6
- ่ฆ็ๅพ่กจ๏ผๆฏ๏ผๅจไปทๆ ผๅพ่กจไธ็ปๅถ๏ผ
- ๆๅคงๅฏน่ฑกๆฐ๏ผ500ไธชๆ ็ญพใ500ไธชๆกใ500ๆก็บฟ
- ไฝ่ ๏ผWendellZhang
- ่ฎธๅฏ่ฏ๏ผMozillaๅ ฌๅ ฑ่ฎธๅฏ่ฏ2.0
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.