PROTECTED SOURCE SCRIPT

Filtered Outside Bar

49
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

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.