Stoch RSI Band Fill with Cross Alerts

  • 지표
  • Kazuma Uezono
    Kazuma Uezono
    MQL5 / MQL4 / Pine Script v6 developer and active trader.
    Seller on the MQL5 Market (indicators for MT4/MT5).
    Services:
    - TradingView Pine Script to MT5/MT4 conversion (bar-by-bar matching, with tester report)
    - MT4 to MT5 migration
  • 버전: 1.2
  • 업데이트됨: 9 11월 2026

Stoch RSI Band Fill is a Stochastic RSI indicator for MetaTrader 5. MT5 does not include a built-in Stoch RSI, so this indicator adds one. It follows the same calculation steps as the built-in Stoch RSI on TradingView and uses the same layout: K and D lines, 80 / 50 / 20 levels and a shaded band between the upper and lower levels.

CALCULATION, STEP BY STEP
1. RSI of the selected price (default: close, length 14), smoothed with Wilder's method (RMA). The first average is the simple average of the first 14 price changes.
2. Stochastic of that RSI over the Stochastic Length (default 14): 100 x (RSI - lowest RSI) / (highest RSI - lowest RSI).
3. K = SMA of the stochastic (default 3). D = SMA of K (default 3).
When the highest and lowest RSI in the window are equal, the denominator is zero (this happens when price has not moved). In that case the previous value is kept, which is what TradingView does.

COMPARISON WITH TRADINGVIEW
- We took TradingView's own price data, ran this calculation on it and compared the result with TradingView's values. The largest difference was about 1e-14, which is floating-point rounding.
- Zero-denominator bars: in a test that contained 425 such bars, the output followed TradingView's rule on every one of about 675,000 bars.
- Please note: your MT5 chart will still show slightly different values from a TradingView chart, because brokers and data feeds deliver slightly different prices. The calculation is the same; the input prices are not.
- The RSI smoothing also depends on where the chart history begins. After a few hundred bars this effect becomes negligible.

ON THE CHART
- K line (blue) and D line (orange). Their values appear in the Data Window.
- Upper band 80 and lower band 20 (dashed), middle line 50 (dotted). Each can be switched off.
- Shaded band between the upper and lower levels. MT5 cannot draw semi-transparent areas, so the fill color is mixed with your chart background at the opacity you choose (default 10%). If you change the chart background, the fill color adjusts automatically.
- The shaded band can continue into the empty space on the right of the chart (default 100 bars; 0 turns it off).
- Three scale modes:
Fixed 0-100 (default)
Auto - the normal MT5 autoscale
Clamped - scales to the K and D values on screen but never goes below 0 or above 100; the band levels stay in view while the bands or the fill are shown

ALERTS (switched off until you turn them on)
- K crosses D, upward or downward.
- K crosses above the upper band, or below the lower band.
- Checked only on the bar that has just closed, at most once per bar for each condition. Loading the indicator or loading more history does not trigger alerts for past bars.
- Choose any combination of pop-up, sound and push notification. Push notification requires your MetaQuotes ID in the terminal settings.
- Alert messages are in English or Japanese, following the terminal language. You can also fix the language in the inputs.
- An alert only tells you that a line has crossed. It is not a recommendation to buy or sell.

BEFORE YOU USE IT
- Repainting: closed bars are not redrawn. The current bar keeps changing until it closes.
- Stoch RSI reacts quickly. In a strong trend, K and D can stay near 0 or near 100 for a long time, and in quiet markets small price moves can swing them widely. A reading above 80 or below 20 does not by itself mean that price will reverse.
- Load time in our test: about 0.8 seconds for roughly 10 million M1 bars. It depends on your computer.
- Works on any symbol and timeframe. No DLLs, no external files, no internet connection.
- This is a charting and analysis aid. It does not place orders and does not guarantee any trading result.
- Support covers installation, settings and bug reports.

INPUTS
Stoch RSI
- K (3), D (3), RSI Length (14), Stochastic Length (14) - each 1 to 1000
- RSI Source (close): close, open, high, low, hl2, hlc3, ohlc4, hlcc4
Levels
- Upper Band (80), Lower Band (20) - Lower must be below Upper, both within 0-100
- Show upper/lower band lines (on), Show middle line 50 (on), Show background fill (on)
- Extend fill to the right (100 bars, 0-5000)
Colors
- K line, D line, Band / middle lines, Background fill color
- Background fill opacity % (10, range 1-100)
Scale
- Scale mode (Fixed 0-100)
Alerts
- K crosses D (off), K crosses above upper / below lower band (off)
- Pop-up (on), Sound (off), Push notification (off)
- Alert language (Auto)

This indicator is one of my MT5 tools built to match TradingView's chart style, together with RSI AutoScale with Zone Fills and MACD Four Color Histogram with Alerts. All of them are listed on my seller profile.

TradingView is a trademark of TradingView, Inc. This product is not affiliated with or endorsed by TradingView, Inc.

제작자의 제품 더 보기
Elliott Wave Auto Count labels Elliott waves automatically on four degrees at the same time: the base degree and the three degrees above it. It follows the rules and guidelines of "Elliott Wave Principle" (Frost & Prechter). For the current wave it also shows a price x time target zone and an invalidation level. This is the MetaTrader 4 version; the counting logic is the same as in the MetaTrader 5 version (sold separately). HOW IT WORKS 1. Swings: five ATR(100)-based zigzags. Each higher degr
Fibo Price Time Zones combines Fibonacci price levels with Fibonacci time targets and draws them on the chart as boxes (price x time zones). It helps you organize which price areas to watch and roughly when. Where boxes from several waves and from higher timeframes overlap, the area is emphasized in three levels. Base waves are built only from confirmed swings, so a confirmed box does not move afterwards (see the conditions below). WHAT IT DRAWS - Price levels: retracement 38.2 / 50 / 61.8 / 7
RSI AutoScale is a clean, lightweight RSI for traders who use both TradingView and MetaTrader 5 and want the two charts to look the same. WHAT IT SHOWS - RSI (Wilder smoothing): the same values as the standard RSI, with any applied price. - Signal line on the RSI: SMA, EMA, SMMA or LWMA, with its own period. - Levels: upper, middle and lower lines (70 / 50 / 30 by default). They use MT5's native levels, so they reach the right edge and their values appear on the scale. - Zone fills: the middle
FREE
Dow Structure MTF shows the Dow theory trend structure of five timeframes at the same time, using the pullback low / rally high approach that is common among Japanese traders. For each timeframe you see whether the trend is up, down or range, which price would change it, and how far the current price is from that level. Only closed bars are used, so a confirmed result never changes afterwards (no repaint). This is the MetaTrader 4 version; the logic, inputs, display and alerts are the same as i
Fibo Price Time Zones combines Fibonacci price levels with Fibonacci time targets and draws them on the chart as boxes (price x time zones). It helps you organize which price areas to watch and roughly when. Where boxes from several waves and from higher timeframes overlap, the area is emphasized in three levels. Base waves are built only from confirmed swings, so a confirmed box does not move afterwards (see the conditions below). This is the MetaTrader 4 version; the calculation, inputs, defa
Time Average Lines draws four averages that are measured by time, not by the number of bars. When you switch timeframes, each line still averages the same length of time. The main line (3) averages how far price had moved from the day's open at the same clock time on past days, and the rest of today is shown as a dotted path that joins those past averages. The path is a summary of the past, not a forecast. THE FOUR LINES - (1) Time MA: average close of the bars that started within the last N m
Auto Trendline Channel MTF draws trendlines, parallel channels and horizontal support / resistance automatically from confirmed swing highs and lows. For each line it records the touch count, close breaks, wick breaks and retests. A table shows, for the chart timeframe and two higher timeframes, the nearest line above and below the price, the distance to it and the Dow theory direction. Touch counts and break records describe what happened on the past chart. They do not tell whether price will
Currency Strength Meter MTF combines the 28 pairs of the 8 major currencies (USD, EUR, JPY, GBP, AUD, NZD, CAD, CHF) into one strength value per currency. It draws 8 lines in a subwindow and shows a ranking table for the chart timeframe, M15, H1, H4 and D1. This is the MetaTrader 4 version; the formula, inputs, defaults, display and alerts are the same as in the MetaTrader 5 version (sold separately). The full formula is published below. The indicator shows the relative strength of past price c
Trade History Stats Panel for MetaTrader 4 reads the closed trades in your own account history and sums them up in a panel on the chart: number of trades, win rate, profit factor, average P/L per trade, drawdown of the closed-trade curve, holding time, buy / sell, and tables by month, symbol, weekday and hour. It is a record-keeping tool for looking back at your past trades, like a trading journal that fills itself in. It never places, modifies or closes orders, and it gives no buy / sell signa
Prop Challenge Loss Tracker for MetaTrader 4 shows, in a panel on the chart, how much room is left before the daily loss limit and the maximum loss limit of a funded-account (prop) challenge are reached, and sends staged alerts as the limits are used up. It is a display and alert tool only: it never opens, modifies or closes any order. Whether a limit is exceeded depends entirely on your own trading and on your own actions after an alert. WHAT IT SHOWS - Status of the whole account in one word
Market Structure & Liquidity Map draws SMC-style (smart money concepts) market structure and liquidity levels on the chart, and sums them up in a small table for the chart timeframe and two higher timeframes. It is a display tool that helps you organize where the structure has changed and which highs and lows have not been taken yet. It gives no buy / sell signals. Only closed bars are used, processed one by one from a fixed start, so confirmed drawings do not repaint (see the notes below). Thi
This is the MetaTrader 4 edition of RSI AutoScale. It draws the standard Wilder RSI with a signal line, a shaded band between the levels, colored areas where the RSI leaves that band, and a choice of three scales. It is meant for traders who use TradingView and MetaTrader 4 side by side and want the RSI pane to look much the same on both. HOW IT LOOKS ON MT4 - RSI line: the same values as MT4's built-in RSI for the same period and applied price. - Signal line: a moving average of the RSI (SMA, E
FREE
A MetaTrader 4 MACD built to read like the MACD you see on TradingView: a MACD line, a signal line, and a histogram of the gap between them, colored in four shades. If you switch between the two platforms during the day, the MACD pane on your MT4 chart will look and behave the way you are used to. WHY NOT THE MT4 BUILT-IN MACD? MT4's own MACD draws the MACD line as gray bars and smooths the signal line with an SMA. There is no separate histogram and no color change. This indicator calculates the
FREE
Divergence Detector finds regular and hidden divergences between price swings and one oscillator of your choice (RSI, MACD histogram, Stochastic %K, OBV, CCI or Momentum). It draws them as lines on the price chart and in the indicator window, and a small table shows the latest divergence on four other timeframes. It is a display tool: it gives no buy / sell signals and does not place orders. HOW A DIVERGENCE IS FOUND - Swings are price pivots: a high that is higher than the 5 bars on its left a
Multi Symbol Market Scanner Panel shows up to 30 symbols in one table on your MT4 chart: trend direction, RSI, volatility, today's range, distance from yesterday's high / low and a simple swing structure, on M15, H1, H4 and D1. It is a display tool for checking many symbols at once without opening many charts. It gives no buy / sell signals and never places orders. WHAT THE TABLE SHOWS - Rows: the symbols in your Market Watch (the first 30), or your own comma-separated list (up to 30). For a l
Session & Key Levels draws trading sessions (Asia, London, New York and one optional extra session) as boxes with their high, low and open lines, and adds key levels: previous day / week / month high and low, week and month open, and round numbers. The highs and lows of finished sessions are extended to the right until price takes them, then they stop and fade. A small panel shows the current session and each session's latest range compared with its recent average. It is a display tool: it give
Risk and Lot Size Calculator works out the lot size for the amount you are prepared to lose. Drag three lines on the chart (entry, stop loss, take profit) and the panel shows the lot size, the money at risk, the profit at the take profit, the risk:reward ratio and the margin required. This is the MetaTrader 4 version. It is a calculation and display tool only: it never opens, modifies or closes any order. The numbers are an estimate; the real fill, profit/loss and margin are decided by your bro
MetaTrader 4 ships with a Stochastic and an RSI, but not with a Stochastic RSI. This indicator fills that gap for MT4 users and is built to be TV-compatible: it follows the calculation of the Stoch RSI that comes with TradingView, and the pane looks the way TradingView users expect - a blue K line, an orange D line, dashed 80 and 20 levels, a dotted 50 line and a light band between 80 and 20. WHAT APPEARS IN THE SUBWINDOW - K and D lines. The Data Window lists only K and D. - Upper band (80) a
FREE
Gold Pullback EA is a simple trend-following robot for XAUUSD (gold). It waits for the daily trend, buys or sells the pullback on H4, and lets winners run with an ATR trailing stop. HOW IT TRADES - Trend filter (D1): long only when EMA50 > EMA200 and the daily close is above EMA50; short only in the opposite case. - Entry (H4): price pulls back to EMA20 within the last 3 bars, then an H4 bar closes back beyond EMA20 and beyond the previous bar's high (low for shorts). - Stop loss: below the la
Elliott Wave Auto Count labels Elliott waves automatically on four degrees at the same time: the base degree and the three degrees above it. It follows the rules and guidelines of "Elliott Wave Principle" (Frost & Prechter). For the current wave it also shows a price x time target zone and an invalidation level. HOW IT WORKS 1. Swings: five ATR(100)-based zigzags. Each higher degree uses a larger swing threshold. The finest zigzag is hidden and is used only to count the sub-waves inside each l
Dow Structure MTF shows the Dow theory trend structure of five timeframes at the same time, using the pullback low / rally high approach that is common among Japanese traders. For each timeframe you see whether the trend is up, down or range, which price would change it, and how far the current price is from that level. Only closed bars are used, so a confirmed result never changes afterwards (no repaint). WHAT YOU SEE - Table of five timeframes (M15, H1, H4, D1, W1 by default, all changeable)
Time Average Lines draws four averages that are measured by time, not by the number of bars. When you switch timeframes, each line still averages the same length of time. The main line (3) averages how far price had moved from the day's open at the same clock time on past days, and the rest of today is shown as a dotted path that joins those past averages. The path is a summary of the past, not a forecast. THE FOUR LINES - (1) Time MA: average close of the bars that started within the last N m
Auto Trendline Channel MTF draws trendlines, parallel channels and horizontal support / resistance automatically from confirmed swing highs and lows. For each line it records the touch count, close breaks, wick breaks and retests. A table shows, for the chart timeframe and two higher timeframes, the nearest line above and below the price, the distance to it and the Dow theory direction. Touch counts and break records describe what happened on the past chart. They do not tell whether price will
Currency Strength Meter MTF combines the 28 pairs of the 8 major currencies (USD, EUR, JPY, GBP, AUD, NZD, CAD, CHF) into one strength value per currency. It draws 8 lines in a subwindow and shows a ranking table for the chart timeframe, M15, H1, H4 and D1. The full formula is published below. The indicator shows the relative strength of past price changes calculated by a fixed formula. It is an analysis aid. It does not tell you when to buy or sell, and it does not show future price movement.
Trade History Stats Panel reads the closed trades in your own account history and sums them up in a panel on the chart: number of trades, win rate, profit factor, average P/L per trade, drawdown of the closed-trade curve, holding time, buy / sell, and tables by month, symbol, weekday and hour. It is a record-keeping tool for looking back at your past trades, like a trading journal that fills itself in. It never places, modifies or closes orders, and it gives no buy / sell signals. WHAT IT SHOW
Prop Challenge Loss Tracker shows, in a panel on the chart, how much room is left before the daily loss limit and the maximum loss limit of a funded-account (prop) challenge are reached, and sends staged alerts as the limits are used up. It is a display and alert tool only: it never opens, modifies or closes any order. Whether a limit is exceeded depends entirely on your own trading and on your own actions after an alert. WHAT IT SHOWS - Status of the whole account in one word and one color: O
Market Structure & Liquidity Map draws SMC-style (smart money concepts) market structure and liquidity levels on the chart, and sums them up in a small table for the chart timeframe and two higher timeframes. It is a display tool that helps you organize where the structure has changed and which highs and lows have not been taken yet. It gives no buy / sell signals. Only closed bars are used, processed one by one from a fixed start, so confirmed drawings do not repaint (see the notes below). Th
MACD Four Color Histogram is a MACD for MetaTrader 5 that uses the same formula and the same look as the built-in MACD on TradingView. It is made for traders who use both platforms and want the MACD on each chart to read the same way. HOW IT DIFFERS FROM THE MT5 STANDARD MACD - MT5 standard MACD: the histogram is the MACD line itself, and the signal line is an SMA. - This indicator: three parts, as on TradingView. MACD line, signal line, and histogram = MACD - signal. The histogram has 4 colors.
FREE
Divergence Detector finds regular and hidden divergences between price swings and one oscillator of your choice (RSI, MACD histogram, Stochastic %K, OBV, CCI or Momentum). It draws them as lines on the price chart and in the indicator window, and a small table shows the latest divergence on four other timeframes. It is a display tool: it gives no buy / sell signals and does not place orders. HOW A DIVERGENCE IS FOUND - Swings are price pivots: a high that is higher than the 5 bars on its left a
Risk and Lot Size Calculator works out the lot size for the amount you are prepared to lose. Drag three lines on the chart (entry, stop loss, take profit) and the panel shows the lot size, the money at risk, the profit at the take profit, the risk:reward ratio and the estimated margin. It is a calculation and display tool only: it never opens, modifies or closes any order. The numbers are an estimate; the real fill, profit/loss and margin are decided by your broker's conditions. HOW IT WORKS -
필터:
리뷰 없음
리뷰 답변