PROTECTED SOURCE SCRIPT
Filtered Outside Bar

Perfect! Let’s create a **TradingView-ready description** with **visual explanations** for your “RSI Filtered Outside Bar” indicator. I’ll include **how it looks on the chart** and **what each feature does** so your post will be professional and clear.
---
# 📊 RSI Filtered Outside Bar – Indicator
**Overlay:** ✅ Yes (Plotted on price chart)
**Purpose:** Detects **bullish and bearish outside bars** filtered by RSI overbought/oversold conditions. Perfect for spotting reversals or continuation setups.
---
## 🔹 Features
| Feature | Description |
| ------------------------- | -------------------------------------------------------------------------------------------------------- |
| **Outside Bar Detection** | Detects consecutive outside bars (user-configurable `Number of Outside Bars`) |
| **RSI Filter** | Only triggers if previous bar RSI is in overbought or oversold zones |
| **Signal Arrows** | Optional bullish (green) and bearish (red) arrows plotted on chart |
| **Signal Lines** | Optional horizontal lines at high/low of the outside bar with configurable length and color |
| **Customizable Inputs** | Users can adjust RSI period, overbought/oversold levels, line color, extension length, arrows visibility |
---
## 🔹 Input Settings
**Outside Bar Settings:**
* Number of Outside Bars
* Show Arrow (✅/❌)
* Show Signal Lines (✅/❌)
* Signal Line Extension Length
* Signal Line Color
**RSI Settings:**
* RSI Length
* RSI Overbought Level
* RSI Oversold Level
---
## 🔹 How It Works (Visual Explanation)
**1️⃣ Bullish Outside Bar Signal**
* Previous bars are bearish
* Current bar is an outside bar (high > previous high, low < previous low)
* RSI of previous bar in overbought/oversold zone
**Chart Example:**
```
High ──────────────●
│
Close ──────────● │
Open ──────────│● │
Low ──────────│ ●
Bullish Arrow ↓ (below bar)
Horizontal line at high & low
```
---
**2️⃣ Bearish Outside Bar Signal**
* Previous bars are bullish
* Current bar is an outside bar
* RSI of previous bar in overbought/oversold zone
**Chart Example:**
```
High ──────────●│
Open ──────────│●│
Close──────────│ │●
Low ──────────●
Bearish Arrow ↑ (above bar)
Horizontal line at high & low
```
---
## 🔹 Notes
* Works on **any timeframe**
* Overlay on price chart, so arrows and lines are visible directly on candles
* Lines extend automatically based on user-defined length
* Arrow color, size, and line color are configurable
---
✅ **Trading Strategy Use Cases:**
* Spot potential **reversals** after RSI extremes
* Identify **high probability breakout bars**
* Combine with support/resistance or trend indicators
---
# 📊 RSI Filtered Outside Bar – Indicator
**Overlay:** ✅ Yes (Plotted on price chart)
**Purpose:** Detects **bullish and bearish outside bars** filtered by RSI overbought/oversold conditions. Perfect for spotting reversals or continuation setups.
---
## 🔹 Features
| Feature | Description |
| ------------------------- | -------------------------------------------------------------------------------------------------------- |
| **Outside Bar Detection** | Detects consecutive outside bars (user-configurable `Number of Outside Bars`) |
| **RSI Filter** | Only triggers if previous bar RSI is in overbought or oversold zones |
| **Signal Arrows** | Optional bullish (green) and bearish (red) arrows plotted on chart |
| **Signal Lines** | Optional horizontal lines at high/low of the outside bar with configurable length and color |
| **Customizable Inputs** | Users can adjust RSI period, overbought/oversold levels, line color, extension length, arrows visibility |
---
## 🔹 Input Settings
**Outside Bar Settings:**
* Number of Outside Bars
* Show Arrow (✅/❌)
* Show Signal Lines (✅/❌)
* Signal Line Extension Length
* Signal Line Color
**RSI Settings:**
* RSI Length
* RSI Overbought Level
* RSI Oversold Level
---
## 🔹 How It Works (Visual Explanation)
**1️⃣ Bullish Outside Bar Signal**
* Previous bars are bearish
* Current bar is an outside bar (high > previous high, low < previous low)
* RSI of previous bar in overbought/oversold zone
**Chart Example:**
```
High ──────────────●
│
Close ──────────● │
Open ──────────│● │
Low ──────────│ ●
Bullish Arrow ↓ (below bar)
Horizontal line at high & low
```
---
**2️⃣ Bearish Outside Bar Signal**
* Previous bars are bullish
* Current bar is an outside bar
* RSI of previous bar in overbought/oversold zone
**Chart Example:**
```
High ──────────●│
Open ──────────│●│
Close──────────│ │●
Low ──────────●
Bearish Arrow ↑ (above bar)
Horizontal line at high & low
```
---
## 🔹 Notes
* Works on **any timeframe**
* Overlay on price chart, so arrows and lines are visible directly on candles
* Lines extend automatically based on user-defined length
* Arrow color, size, and line color are configurable
---
✅ **Trading Strategy Use Cases:**
* Spot potential **reversals** after RSI extremes
* Identify **high probability breakout bars**
* Combine with support/resistance or trend indicators
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.