//@version=4
// -------------------------------------------------------------------------- //
study(title="Test", shorttitle="Test", overlay=true)
// -------------------------------------------------------------------------- //
rsl = input(title="RSI Length", type=input.integer, defval=21, minval=1, step=1)
rsp = input(title="RSI Pivot", type=input.integer, defval=60, minval=1, step=1)
// new_crb returns true if the current bar is red, that is, the current open
// price is higher than the current close price. This signals a local downward
// movement. Here crb means current red bar.
new_crb() =>
open > close
// new_hpb returns the relative strength indicator for the current bar, based on
// the running moving average. Here rsb means relative strength bar.
new_rsb(src, rsl) =>
upw = rma( max(change(src), 0), rsl)
dow = rma(-min(change(src), 0), rsl)
dow == 0 ? 100 : upw == 0 ? 0 : 100 - (100 / (1 + upw / dow))
// new_rsi returns the relative strength indicator for overbought price peaks.
// If the RSI band crosses under the RSI turning point given by rsp then new_rsi
// returns true.
new_rsi(src, rsl, rsp) =>
new_rsb(src, rsl)[1] > rsp and new_rsb(src, rsl)[0] < rsp
// -------------------------------------------------------------------------- //
plotshape(new_rsi(close, rsl, rsp), text="RSI", location=location.abovebar, style=shape.labeldown, size=size.tiny, color=color.red, textcolor=color.white, transp=0)
Overview
Test builds the reading from running moving averages of upward and downward close changes, in the same form as RSI. The RSI length controls the smoothing window and the RSI pivot sets the overbought threshold that must be crossed from above. It draws on the price chart and only marks that downward cross; it does not generate exits, stops, or position sizing.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
RSI Length
int
21
rsl
RSI Pivot
int
60
rsp
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
The Adaptive RSI Moving Average (ARSIMA) is an overlay indicator that dynamically adjusts its smoothing factor based on the Relative Strength Index (RSI). When the RSI moves toward extreme overbought or oversold conditions, the smoothing factor increases to ma
This overlay indicator screens a pasted list of up to forty symbols and draws a table on the price chart. It classifies bullish or bearish setups from the percent change between the current candle and the candle 250 bars back, then shows RSI with a simple movi
This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre
This indicator plots three moving averages on the price chart alongside colored fills between the lines to visualize trend structure. Internally, it calculates a Stochastic RSI oscillator to detect oversold reversals. When the Stochastic %K line rises above 10
Mean Reversion Study is an indicator that identifies trade setups combining exponential moving averages, RSI extremes, and engulfing candlestick patterns. It highlights bullish setups when a bullish engulfing candle forms below the EMA while RSI is oversold, a
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E