OPEN-SOURCE SCRIPT
ที่อัปเดต: MTF RSI Price Levels [DIN]

## 📌 MTF RSI Price Levels [DIN]
**What if your RSI could tell you exactly where price needs to go — before it gets there?**
Most traders use RSI to read momentum after the fact. This indicator flips that entirely. Instead of watching RSI react to price, **MTF RSI Price Levels projects the exact price required for RSI to reach overbought or oversold on up to four timeframes simultaneously** — plotted live, directly on your chart, right now.
The result is a set of forward-looking price levels that act as precision targets and confluence zones. Whether you're scalping the 1H or positioning on the weekly, you'll know in advance where RSI exhaustion lives — and when multiple timeframes agree, those levels become some of the most powerful areas on your chart.
---
## 🔬 How It Works
The RSI Price Level math is built on Wilder's smoothing algorithm — the same engine that powers the standard RSI. At every bar close, the indicator works backwards through the formula: given the current average gain and average loss at a specific timeframe, it solves for the exact closing price that would push RSI to your target level (default 70 overbought / 30 oversold) on the next bar.
This is not an approximation. It is a mathematically derived price level, recalculated live across every timeframe you have enabled, displayed as a labeled box and a centerline extending right from the current bar. Every time price moves, the levels update. Every time a new bar closes, the calculation refreshes.
Run it on crypto, forex, indices, or equities — wherever RSI has teeth, these levels will show you exactly where the market is being pulled.
---
## ☁️ The MTF Cloud
Above and below price, two dynamic clouds form — one anchored at your overbought RSI level, one at oversold — each blending between two user-selected timeframes. Where the clouds from different timeframes converge, you get a gradient zone of confluence. The closer price approaches these areas, the more compressed momentum tends to become.
The cloud is not decorative. It represents the space between what two different timeframe RSI calculations say about the same price level. When they agree, the cloud tightens. When they diverge, it widens. Bull and bear coloring shifts automatically based on where current price sits relative to the zone, giving you an instant read on whether you're approaching resistance or support.
---
## 📐 Built-In Divergence Engine
Hidden momentum shifts are detected automatically using a pivot-based divergence system running on your chosen timeframe. When price prints a higher high but RSI prints a lower high — or vice versa — the signal is marked directly on the chart with a clear label. No separate RSI panel needed. No manual scanning. The divergence comes to you.
- **Bearish Divergence (DIV▼)** — Price higher high, RSI lower high. Momentum fading into resistance.
- **Bullish Divergence (DIV▲)** — Price lower low, RSI higher low. Momentum building into support.
Both pivot lookback and divergence timeframe are fully adjustable.
---
## ⚙️ Full Customization — Built for Serious Traders
This indicator was designed so that no two setups have to look alike. Every parameter that matters is exposed in the settings panel, organized by group:
**Per Timeframe (up to 4 timeframes):**
- Timeframe selection (any TF supported by TradingView)
- Independent RSI length per timeframe
- Independent RSI source per timeframe
- Custom overbought and oversold threshold levels
- Individual box color, line color, and transparency per TF
**Cloud Settings:**
- Choose any two timeframes to anchor the cloud
- Set your own Level A and Level B for the fill range
- Independent bull and bear color for inner and outer cloud layers
- Gradual two-layer gradient fade built in
**Box & Line Style:**
- Box extend length (how far right the box projects)
- Box height as a percentage of price (works across all asset classes)
- Line width and line style (solid, dashed, dotted)
- Toggle labels on/off with adjustable label size
**Divergence:**
- Enable/disable divergence detection independently
- Choose the timeframe RSI runs the divergence scan on
- Adjust RSI length and pivot lookback for sensitivity control
**Alerts (4 Conditions):**
- Price enters any overbought zone
- Price enters any oversold zone
- Bullish divergence detected
- Bearish divergence detected
Set your alerts once. Let the indicator do the watching.
---
## 🎯 Best Use Cases
- **Confluence trading** — Stack multiple TF RSI levels and watch for price to cluster around the same area across 1H, 4H, Daily, and Weekly simultaneously. These are your highest-conviction zones.
- **Target projection** — In a trending move, use the OB levels on higher timeframes as your take-profit targets. The math tells you where RSI exhaustion lives.
- **Reversal hunting** — When price is approaching a major OS level on the Daily or Weekly with bullish divergence firing beneath, you have a layered, high-probability setup.
- **Scalping structure** — On lower timeframes, the levels act as short-term magnets. Watch how price respects or breaks through these zones and trade the reaction.
---
## 📋 Usage Notes
- **Higher timeframe levels carry more weight.** A Weekly OB level that aligns with a Daily OB level is significantly more significant than either alone.
- **The box height input is a percentage of price.** The default (0.003 = 0.3%) works well for most assets. Crypto with large price ranges may benefit from a lower value; lower-priced assets may need it slightly higher.
- **Divergence signals are plotted with an offset** equal to the pivot lookback period. This means the signal appears when the pivot is confirmed, not at the exact candle — this is intentional and keeps signals non-repainting.
- **Cloud timeframes are independent of the level timeframes.** You can run 1H + 4H levels while anchoring your cloud to 4H + Daily for a broader confluence picture.
---
## 🔔 Alerts Setup
After adding the indicator to your chart, go to the Alerts panel, create a new alert, and select this indicator from the condition dropdown. Four conditions are available:
1. Price in OB Zone
2. Price in OS Zone
3. Bearish Divergence Found
4. Bullish Divergence Found
---
*Built for traders who want their RSI to work harder.*
*Clean levels. Real math. No guessing.*
**— DIN**
**What if your RSI could tell you exactly where price needs to go — before it gets there?**
Most traders use RSI to read momentum after the fact. This indicator flips that entirely. Instead of watching RSI react to price, **MTF RSI Price Levels projects the exact price required for RSI to reach overbought or oversold on up to four timeframes simultaneously** — plotted live, directly on your chart, right now.
The result is a set of forward-looking price levels that act as precision targets and confluence zones. Whether you're scalping the 1H or positioning on the weekly, you'll know in advance where RSI exhaustion lives — and when multiple timeframes agree, those levels become some of the most powerful areas on your chart.
---
## 🔬 How It Works
The RSI Price Level math is built on Wilder's smoothing algorithm — the same engine that powers the standard RSI. At every bar close, the indicator works backwards through the formula: given the current average gain and average loss at a specific timeframe, it solves for the exact closing price that would push RSI to your target level (default 70 overbought / 30 oversold) on the next bar.
This is not an approximation. It is a mathematically derived price level, recalculated live across every timeframe you have enabled, displayed as a labeled box and a centerline extending right from the current bar. Every time price moves, the levels update. Every time a new bar closes, the calculation refreshes.
Run it on crypto, forex, indices, or equities — wherever RSI has teeth, these levels will show you exactly where the market is being pulled.
---
## ☁️ The MTF Cloud
Above and below price, two dynamic clouds form — one anchored at your overbought RSI level, one at oversold — each blending between two user-selected timeframes. Where the clouds from different timeframes converge, you get a gradient zone of confluence. The closer price approaches these areas, the more compressed momentum tends to become.
The cloud is not decorative. It represents the space between what two different timeframe RSI calculations say about the same price level. When they agree, the cloud tightens. When they diverge, it widens. Bull and bear coloring shifts automatically based on where current price sits relative to the zone, giving you an instant read on whether you're approaching resistance or support.
---
## 📐 Built-In Divergence Engine
Hidden momentum shifts are detected automatically using a pivot-based divergence system running on your chosen timeframe. When price prints a higher high but RSI prints a lower high — or vice versa — the signal is marked directly on the chart with a clear label. No separate RSI panel needed. No manual scanning. The divergence comes to you.
- **Bearish Divergence (DIV▼)** — Price higher high, RSI lower high. Momentum fading into resistance.
- **Bullish Divergence (DIV▲)** — Price lower low, RSI higher low. Momentum building into support.
Both pivot lookback and divergence timeframe are fully adjustable.
---
## ⚙️ Full Customization — Built for Serious Traders
This indicator was designed so that no two setups have to look alike. Every parameter that matters is exposed in the settings panel, organized by group:
**Per Timeframe (up to 4 timeframes):**
- Timeframe selection (any TF supported by TradingView)
- Independent RSI length per timeframe
- Independent RSI source per timeframe
- Custom overbought and oversold threshold levels
- Individual box color, line color, and transparency per TF
**Cloud Settings:**
- Choose any two timeframes to anchor the cloud
- Set your own Level A and Level B for the fill range
- Independent bull and bear color for inner and outer cloud layers
- Gradual two-layer gradient fade built in
**Box & Line Style:**
- Box extend length (how far right the box projects)
- Box height as a percentage of price (works across all asset classes)
- Line width and line style (solid, dashed, dotted)
- Toggle labels on/off with adjustable label size
**Divergence:**
- Enable/disable divergence detection independently
- Choose the timeframe RSI runs the divergence scan on
- Adjust RSI length and pivot lookback for sensitivity control
**Alerts (4 Conditions):**
- Price enters any overbought zone
- Price enters any oversold zone
- Bullish divergence detected
- Bearish divergence detected
Set your alerts once. Let the indicator do the watching.
---
## 🎯 Best Use Cases
- **Confluence trading** — Stack multiple TF RSI levels and watch for price to cluster around the same area across 1H, 4H, Daily, and Weekly simultaneously. These are your highest-conviction zones.
- **Target projection** — In a trending move, use the OB levels on higher timeframes as your take-profit targets. The math tells you where RSI exhaustion lives.
- **Reversal hunting** — When price is approaching a major OS level on the Daily or Weekly with bullish divergence firing beneath, you have a layered, high-probability setup.
- **Scalping structure** — On lower timeframes, the levels act as short-term magnets. Watch how price respects or breaks through these zones and trade the reaction.
---
## 📋 Usage Notes
- **Higher timeframe levels carry more weight.** A Weekly OB level that aligns with a Daily OB level is significantly more significant than either alone.
- **The box height input is a percentage of price.** The default (0.003 = 0.3%) works well for most assets. Crypto with large price ranges may benefit from a lower value; lower-priced assets may need it slightly higher.
- **Divergence signals are plotted with an offset** equal to the pivot lookback period. This means the signal appears when the pivot is confirmed, not at the exact candle — this is intentional and keeps signals non-repainting.
- **Cloud timeframes are independent of the level timeframes.** You can run 1H + 4H levels while anchoring your cloud to 4H + Daily for a broader confluence picture.
---
## 🔔 Alerts Setup
After adding the indicator to your chart, go to the Alerts panel, create a new alert, and select this indicator from the condition dropdown. Four conditions are available:
1. Price in OB Zone
2. Price in OS Zone
3. Bearish Divergence Found
4. Bullish Divergence Found
---
*Built for traders who want their RSI to work harder.*
*Clean levels. Real math. No guessing.*
**— DIN**
Release Note
Hey everyone! Thank you all tremendously for your support on my indicator! I appreciate all the rockets and good vibes.I added price to the boxes with percent change from the active price, changed a few starting settings around, and began work on creating what will probably be the best RSI indicator out there.
Hope you guys enjoy
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน