OPEN-SOURCE SCRIPT
MTF StochRSI Alignment

Multi-Timeframe StochRSI Alignment
This indicator monitors the Stochastic RSI across three user-defined timeframes simultaneously and alerts you when they all align in the same direction — a classic sign of a strong, multi-timeframe overbought or oversold condition.
How it works
The script calculates Stochastic RSI independently on each of the three selected timeframes (default: 1-minute, 15-minute, and 1-hour) rather than approximating it from the chart timeframe. Each timeframe is then classified as:
- OB — Overbought (K ≥ 80, adjustable)
- OS — Oversold (K ≤ 20, adjustable)
- N — Neutral (in between)
A clean table in the corner of your chart displays all three timeframes and their current status at a glance, along with an overall **Signal** row:
- All three Overbought → SELL (box shades red)
- All three Oversold → BUY (box shades green)
- Mixed → WAIT (neutral shading)
Features
- Fully customizable timeframes — not locked to 1m/15m/1h, set any three you like
- Adjustable RSI length, Stochastic length, K/D smoothing, and OB/OS thresholds
- Configurable table position (all four corners) and text size
- Built-in alert conditions for both aligned Buy and aligned Sell signals, so you don't have to watch the chart
How to use it
This tool is designed to help you spot moments where short-term, medium-term, and longer-term momentum are all stretched in the same direction — often a precursor to a pullback or reversal. It works well as a confluence filter alongside your existing entry/exit strategy, rather than as a standalone signal generator.
Note: Multi-timeframe indicators reference higher-timeframe data that can update intra-bar. Signals on the lowest configured timeframe are most reliable once that candle has closed. This script is for informational purposes only and does not constitute financial advice — always combine it with your own risk management and analysis.
This indicator monitors the Stochastic RSI across three user-defined timeframes simultaneously and alerts you when they all align in the same direction — a classic sign of a strong, multi-timeframe overbought or oversold condition.
How it works
The script calculates Stochastic RSI independently on each of the three selected timeframes (default: 1-minute, 15-minute, and 1-hour) rather than approximating it from the chart timeframe. Each timeframe is then classified as:
- OB — Overbought (K ≥ 80, adjustable)
- OS — Oversold (K ≤ 20, adjustable)
- N — Neutral (in between)
A clean table in the corner of your chart displays all three timeframes and their current status at a glance, along with an overall **Signal** row:
- All three Overbought → SELL (box shades red)
- All three Oversold → BUY (box shades green)
- Mixed → WAIT (neutral shading)
Features
- Fully customizable timeframes — not locked to 1m/15m/1h, set any three you like
- Adjustable RSI length, Stochastic length, K/D smoothing, and OB/OS thresholds
- Configurable table position (all four corners) and text size
- Built-in alert conditions for both aligned Buy and aligned Sell signals, so you don't have to watch the chart
How to use it
This tool is designed to help you spot moments where short-term, medium-term, and longer-term momentum are all stretched in the same direction — often a precursor to a pullback or reversal. It works well as a confluence filter alongside your existing entry/exit strategy, rather than as a standalone signal generator.
Note: Multi-timeframe indicators reference higher-timeframe data that can update intra-bar. Signals on the lowest configured timeframe are most reliable once that candle has closed. This script is for informational purposes only and does not constitute financial advice — always combine it with your own risk management and analysis.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน