Indicator · Pine Script v6 · On the chart

Advanced Trend Reversal Emoji Indicator

by eltonaguiar· code credited to FundedRelay

This indicator identifies trend reversal signals on the price chart by combining exponential moving average crossovers with momentum and volatility filters.

View on GitHub

GitHub stars4on the repository
Pine versionv6current
Lines of code90
Settings8inputs
LicenceNone statedfile: MPL-2.0
Last updatetoday28 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

90 lines of Pine Script v6 from advanced trend reversal emoji indicator.pine.txt, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

advanced trend reversal emoji indicator.pine.txt
// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © FundedRelay

//@version=6
indicator("Advanced Trend Reversal Emoji Indicator", overlay=true)

// =====================
// ====== INPUTS =======
// =====================

// Trend Settings
fastLength     = input.int(21,  "Fast EMA Length")
slowLength     = input.int(55,  "Slow EMA Length")
trendLength    = input.int(200, "Trend Filter EMA Length")

// Momentum Filter
rsiLength      = input.int(14,  "RSI Length")
rsiBullLevel   = input.int(55,  "RSI Bullish Threshold")
rsiBearLevel   = input.int(45,  "RSI Bearish Threshold")

// Volatility Filter
atrLength      = input.int(14,  "ATR Length")
atrMultiplier  = input.float(1.0, "ATR Volatility Multiplier")

// =====================
// ===== CALCULATIONS ==
// =====================

// EMAs
fastEMA  = ta.ema(close, fastLength)
slowEMA  = ta.ema(close, slowLength)
trendEMA = ta.ema(close, trendLength)

// RSI
rsiValue = ta.rsi(close, rsiLength)

// ATR
atrValue = ta.atr(atrLength)

// Volatility condition
volatilityCondition = ta.tr(true) > atrValue * atrMultiplier

// =====================
// ==== TREND LOGIC ====
// =====================

// Bullish condition
bullishCross = ta.crossover(fastEMA, slowEMA)
bullishTrend = close > trendEMA and rsiValue > rsiBullLevel and volatilityCondition

bullishSignal = bullishCross and bullishTrend

// Bearish condition
bearishCross = ta.crossunder(fastEMA, slowEMA)
bearishTrend = close < trendEMA and rsiValue < rsiBearLevel and volatilityCondition

bearishSignal = bearishCross and bearishTrend

// =====================
// ====== PLOTTING =====
// =====================

// Plot EMAs
plot(fastEMA,  color=color.orange, linewidth=2, title="Fast EMA")
plot(slowEMA,  color=color.blue,   linewidth=2, title="Slow EMA")
plot(trendEMA, color=color.gray,   linewidth=2, title="Trend EMA")

// Emoji signals
plotshape(bullishSignal, 
     title="Bullish Reversal",
     location=location.belowbar,
     color=color.green,
     style=shape.labelup,
     text="🚀",
     size=size.large)

plotshape(bearishSignal, 
     title="Bearish Reversal",
     location=location.abovebar,
     color=color.red,
     style=shape.labeldown,
     text="💀",
     size=size.large)

// =====================
// ===== ALERTS ========
// =====================

alertcondition(bullishSignal, title="Bullish Reversal Alert", message="🚀 Bullish Trend Reversal Detected")
alertcondition(bearishSignal, title="Bearish Reversal Alert", message="💀 Bearish Trend Reversal Detected")

Overview

Advanced Trend Reversal Emoji Indicator calculates fast, slow, and long-term filter EMAs, along with RSI and ATR. A bullish reversal triggers when the fast EMA crosses above the slow EMA while price remains above the long-term trend EMA, RSI exceeds a set threshold, and current range exceeds ATR volatility. Bearish signals require opposite conditions. Signals are plotted directly on price bars using emoji shapes with built-in alert conditions.

Details

Published by

eltonaguiar on GitHub

Code credit

FundedRelay, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, Oscillators & momentum, Moving averages, Volatility & bands

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Fast EMA Lengthint21fastLength
Slow EMA Lengthint55slowLength
Trend Filter EMA Lengthint200trendLength
RSI Lengthint14rsiLength
RSI Bullish Thresholdint55rsiBullLevel
RSI Bearish Thresholdint45rsiBearLevel
ATR Lengthint14atrLength
ATR Volatility Multiplierfloat1.0atrMultiplier
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.

Similar Pine Scripts

114 stars

ADX Strategy (original) is an overlay indicator that identifies trend-following trade signals using the Average Directional Index (ADX) combined with a Simple Moving Average filter. A long signal is generated when the ADX rises above a user-defined trend level

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ADX Strategy (original)
56 stars

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

Indicator v5 TrendMoving averages Repaints
Updated 4 months ago · None stated GitHub repository of Double Screened Decision
24 stars

This indicator plots Bollinger Bands on the price chart alongside a baseline moving average to identify trend-aligned swing setups. It calculates trend bias by comparing the Bollinger Bands basis to a customizable moving average, such as a 200 EMA. Trade signa

Indicator v5 Volatility & bandsOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of Bollinger Band Swing

Index Intraday Analyst

by chris-c-thomas
14 stars

Index Intraday Analyst overlays CBOE cash indices such as SPX, NDX, RUT, and DJX. It plots a multi-EMA ribbon, a session-anchored TWAP with standard-deviation bands, and session levels such as prior-day high, low, and close, the opening range, and the high and

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · MIT GitHub repository of Index Intraday Analyst

RePaNoCHa V4

by wocclyl
9 stars

RePaNoCHa V4 is an overlay alert indicator that plots a Tillson T3 moving average on the price chart and colors it by whether the line is rising or falling. It combines that slope with a range filter, ADX, parabolic SAR, RSI, and MACD to mark long and short si

Indicator v4 TrendOscillators & momentum
Updated 7 years ago · MIT GitHub repository of RePaNoCHa V4

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers