by Web3Degenerate· code credited to ZenAndTheArtOfTrading / www.PineScriptMastery.com
This indicator plots an RSI oscillator in a separate pane and marks long and short setups when RSI is oversold or overbought and a swing low or swing high fractal forms with a reversing candle.
RSI Swing Signal sizes a stop from the recent extreme plus an ATR multiple, then stores a target and optional break-even price from the reward-to-risk inputs. Lookback, RSI length, source, and extreme levels change the signal. It is an indicator, so it does not place trades.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Stop Loss Size (x ATR)
float
1.0
stopLossInput
Reward To Risk Ratio (B/E)
float
0.8
riskToRewardBE
Reward:Risk Ratio
float
1.0
riskToReward
Show B/E Point
bool
false
showBE
Lookback:
int
7
lookback
RSI Overbought Level:
int
80
rsiOB
RSI Oversold Level:
int
20
rsiOS
RSI Length:
int
7
rsiLen
RSI Source:
source
close
rsiSrc
Draw Signals On Real-Time Bars
bool
true
drawRT
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.
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 indicator calculates standardized z-scores of price data across four different lookback periods (6, 14, 26, and 100). Standardizing data subtracts the moving average from the price and divides by the standard deviation. It applies a Double Exponential Mov
This indicator measures directional momentum by evaluating candlestick body proportions and volume over a user-defined lookback window. It computes the ratio of candle body to total range, weights the cumulative value by volume and absolute body size, and dete
This indicator calculates normalized percentage bounds around price highs and lows to anticipate local trend reversals. It oscillates within a fixed -1 to 1 channel and plots two boundary tracking curves alongside a background Karobein oscillator histogram for
This indicator calculates the statistical autocorrelation coefficient of an input series over a user-defined lookback window at a specified lag. It tracks values using an internal circular buffer, computes sample mean, variance, and autocovariance, and normali
The Pretty Good Oscillator calculates the distance between the selected price source and its simple moving average, normalized by the Average True Range over a specified period. It renders as an oscillator line in a separate pane alongside a zero line and thre