The MA/EMA + RSI Trend & Pullback indicator combines moving averages with the RSI oscillator to determine trend direction and identify pullback opportunities for entries and exits.
1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
158 lines of Pine Script v6 from ma_ema_rsi_trend_pullback.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
MA/EMA + RSI Trend & Pullback plots fast and slow MAs on the price chart along with the RSI, and applies background shading to show uptrends, downtrends, and current long or short positions. The script offers three entry modes—RSI crossover only, RSI zone plus MA, and multiple signals—allowing users to adjust signal strictness. Main settings include the source, MA type (EMA or SMA), lengths for fast and slow MAs, RSI length and levels, and entry mode selection. It draws signals directly on the chart with labels for long, short, and exit.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Source
source
close
src
MA Type
string
EMA
maType
Fast MA Length
int
21
fastLen
Slow MA Length
int
50
slowLen
RSI Length
int
14
rsiLen
RSI Overbought Level
float
65.0
rsiOB
RSI Oversold Level
float
35.0
rsiOS
RSI Midpoint
float
50.0
rsiMid
Entry Mode
string
Multiple Signals
entryMode
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
TradersPost Trading Checklist is an overlay indicator that evaluates a suite of popular technical conditions for long and short trade setups. It checks session-anchored VWAP, fast and slow EMA alignments and crosses, 200 SMA, RSI overbought or oversold conditi
Calculates market regime conditions by combining RSI, MACD, and ADX/DMI indicators. It evaluates whether the market is in a strong bullish, strong bearish, neutral, or non-trending regime. The script plots a colored line overlaying the close price to reflect t
This indicator plots an adaptive moving average or scaled RSI divergence line directly on the price chart. It calculates dual RSI series to measure momentum divergence, scales the values to the chart's price range, and constructs an adaptive average filtered b
This indicator generates trend-following trade signals on the price chart by combining moving average crossovers with multi-factor filters. It triggers entry alerts when fast and slow EMAs cross in the direction of a baseline trend EMA, confirmed by non-extrem
Double Screened Decision is a multi-timeframe trend and momentum indicator overlaid directly on the price chart. It dynamically selects a higher timeframe based on the active chart resolution to evaluate higher-timeframe MACD, Bollinger Bands, RSI, and Stochas