OPEN-SOURCE SCRIPT
Güncellendi LBB + RSI Multi-Level + Compact Table

BB and RSI scalping script for daily or scalp zone with signals
Sürüm Notları
Вот готовое **финальное полное описание на английском** для публикации скрипта в TradingView, с учётом **всех последних улучшений (18 июля 2025)**, с акцентом на:* принцип работы,
* оптимизацию под М5–М15,
* поддержку всех таймфреймов,
* точное локальное время сигналов,
* последние изменения.
---
## 📄 **LBB + RSI Multi-Level + Compact Table**
This indicator is designed for precision scalping and intraday strategies using a combination of **logarithmic Bollinger Bands (LBB)**, **multi-level RSI triggers**, and **contextual confirmations** such as volume and pin bars.
---
### ⚙️ **Core Features & Logic**
This tool can be used across **all timeframes**, but is **specifically optimized for M5–M15**, where short-term volatility and overbought/oversold signals matter most.
On higher timeframes (H1, H4, D1), it may serve as a broader directional filter or to spot major exhaustion levels — though signals will appear less frequently.
---
### 📌 **Signal Conditions**
#### 🔽 LONG Signals:
Displayed when price is **below the lower logarithmic Bollinger Band** and RSI is:
* < 40 → orange triangle
* < 35 → yellow triangle
* < 30 → green triangle (strongest)
#### 🔼 SHORT Signals:
Displayed when price is **above the upper logarithmic Bollinger Band** and RSI is:
* > 60 → red triangle
* > 65 → purple triangle
* > 70 → blue triangle (strongest)
Each condition is shown on the chart as a visual triangle + internal flag for alerting.
---
### 📊 **Compact Signal Table**
A floating table (position customizable) displays the **most recent signal only**, with:
* 📉 or 📈 direction and entry price
* RSI value
* Volume (auto-formatted in K or M)
* Pin Bar confirmation (✔ or –)
* Local time of the signal candle
This allows fast decision-making without crowding the chart.
---
### 🔔 **Alerts Included**
The script includes **six built-in `alertcondition()` functions**, one per signal level, allowing custom alerts with:
* Sound
* Pop-up
* Push notification
* Webhook
Use them to build your own automation or real-time triggers.
---
## 🆕 **Latest Improvements (July 18, 2025)**
✅ **Local Timezone Setting**
Added a new parameter for manual `UTC offset` (from -12 to +14) — each trader can now adjust the table time display to match their local timezone.
✅ **True Signal Candle Time**
The script now shows the **actual time of the bar where the signal occurred**, not the chart refresh time. This ensures full alignment with signal appearance on chart.
✅ **Strict Type-Safe Code**
Refactored to avoid Pine Script NA assignment errors and ensure stable publication.
✅ **More Accurate Table Logic**
Signal time is shown in `dd-MM-yy HH:mm` format, updated only when a valid condition triggers.
---
## 💡 **Tip for Use**
This script pairs perfectly with:
* Price action zones (S/D, order blocks)
* Coinglass liquidation clusters
* Scalping setups with fixed RR or Fib levels
* Multi-timeframe confirmation (use with H1 trend + M5 entries)
---
If you'd like a version with optional signal filtering, auto TP/SL projection, or visual heatmaps — follow or message for extended versions.
Enjoy and trade mindfully.
July 2025 update: local time display, real signal bar time, new UTC offset setting
Sürüm Notları
## 🔄 Update v6.3.2 — July 22, 2025This update introduces **major improvements and new features**, keeping the original structure of the indicator intact. All additions are fully backward-compatible and enhance trading accuracy and customization:
### ✅ **New Features**:
* **Dynamic Take-Profit & Stop-Loss display**:
* Displays only one TP or SL at a time.
* Automatically removes the previous label when a new signal appears.
* Clean labels with readable format: `TP @ ...` or `SL @ ...`.
* Stable rendering across all timeframes (no visual glitches or floating objects).
* Labels are NOT tied to subcharts – clean display on the main price chart.
* **Customizable TP & SL**:
* Set separate TP/SL percentages for LONG and SHORT trades.
* TP/SL calculations work only when enabled via checkboxes.
* TP/SL levels are visualized **only after they are reached**.
* **Trend Filter (SMA-based)**:
* Optional filter based on H1 SMA trend direction.
* LONG signals only when current price is **above SMA(H1)**.
* SHORT signals only when current price is **below SMA(H1)**.
* **Volume Filter**:
* Only triggers signals when volume exceeds a user-defined multiplier of average volume.
* **Pin Bar Filter**:
* Detects and optionally filters signals based on classic pin bar candlestick formations.
* **Improved Alert Messages**:
* Alerts now include:
```
📈 LONG signal: {{ticker}} @ {{close}} | RSI={{rsi}} | TF={{interval}}
📉 SHORT signal: {{ticker}} @ {{close}} | RSI={{rsi}} | TF={{interval}}
```
* No manual editing required — just select the alert and set the sound.
---
### 📊 Visual & Structural Improvements:
* Swapped emojis:
* 📈 now represents LONG (rising chart).
* 📉 now represents SHORT (falling chart).
* Added optional settings to enable/disable each filter individually.
* Signal table remains compact and efficient — showing only the **last signal** with key info: direction, entry price, RSI, volume, PinBar status, and timestamp.
---
🧩 All enhancements were added at the end of the script without modifying the core logic — ensuring stability, compatibility, and reliability.
Sürüm Notları
new alerts presentation integratedSürüm Notları
LBB + RSI Multi-Level + Compact Table (Lite)Version: v6.3.6-lite.1
This is a performance-optimized version of the original indicator LBB + RSI Multi-Level + Compact Table.
It preserves 100% of the original functionality and visual output, while significantly reducing loading time, especially on low timeframes or long chart history.
✅ What's improved in this version:
♻️ Repeated signal conditions optimized using shared base conditions for LONG/SHORT setups.
📊 Signal table updates only on new signal bars, not on every candle.
📉 Volume formatting simplified using a single inline variable (volStr) instead of a function.
🧠 TP/SL logic streamlined — calculated only when an active signal is present.
📉 Middle Bollinger line (Basis) is restored, but rendered only when enabled via checkbox.
🎛️ Two new toggles added in settings:
Show signals on chart — display signal arrows
Show Bollinger Bands — control all three Bollinger lines (Upper, Lower, Basis)
⚙️ No changes to:
RSI logic and thresholds (30, 35, 40, 60, 65, 70)
Alerts and messages
Entry price tracking and TP/SL display
Pin bar and volume filters
Multi-timeframe trend filter (H1 SMA)
This version is recommended for:
Scalpers using 1m/5m/15m charts
Traders loading heavy pairs or altcoins
Anyone experiencing slow indicator rendering on TradingView
Sürüm Notları
### 🆕 Update Notes (v6.3.6-lite.7)This update introduces **three optional trend filters** to help eliminate false entries during strong directional moves or news-driven volatility, especially useful for M5–M15 scalping setups:
#### ✅ New Features:
* **EMA Trend Filter (H1)** — configurable period (default: 50).
* **SMA Trend Filter (H1)** — configurable period (default: 50).
* **Price Change Filter** — blocks entries if the price has moved more than *X%* over the last *N bars* (default: 5% over 12 bars).
> ➕ All filters can be **used independently or in combination**, giving full control over signal filtering logic.
#### 🔧 How it works:
* If a filter is **enabled**, its condition must be met for a signal to appear.
* If **disabled**, it does not affect the logic.
* These filters are designed to reduce entries during pump/dump periods or strong trends against your setup.
#### 💡 Tip:
You can now compare EMA vs SMA trend filters directly on the same timeframe (e.g., H1) to match your strategy style.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.