An overlay indicator that marks reversal-style signals on the price chart: TD8 and TD9 counts, hammer, shooting star, bullish and bearish harami, and RSI divergence.
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
335 lines of Pine Script v5 from PineScript/Ind_ex_TD_EMA.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Each signal can be switched on or off, and signals can be limited to long or short only. Markers can be filtered by three EMAs or by an anchored VWAP cloud with a standard deviation band. The EMA and VWAP plots can be hidden on daily charts and above.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
═════════ LONG SIGNALS ════════
bool
false
_1
TD8
bool
true
enableBuyTD8
TD9
bool
true
enableBuyTD9
Hammer
bool
true
enableHamm
Bullish Harami
bool
true
enableBull
RSI Divergence
bool
true
enableRSIBuy
═════════ SHORT SIGNALS ════════
bool
false
_2
TD8
bool
true
enableSellTD8
TD9
bool
true
enableSellTD9
Shooting Star
bool
true
enableStar
Bearish Harami
bool
true
enableBear
RSI Divergence
bool
true
enableRSISell
Show all 40 settings
Setting
Type
Default
Variable
═══════════ FILTER ════════════
bool
false
_3
Signal Side
string
MD0
markerDirection
Long Filter
string
sm2
markerDirectionL
Short Filter
string
sm6
markerDirectionS
════════ EMA SETTINGS ══════════
bool
false
_5
Show EMAs
bool
true
showEMAs
Hide EMA plots on 1D charts or above
bool
true
EMAhideonDWM
Fast Length
int
10
Flen
Source
source
hlc3
Fsrc
Med Length
int
20
Mlen
Source
source
hlc3
Msrc
Slow Length
int
50
Slen
Source
source
hlc3
Ssrc
════════ VWAP SETTINGS ═════════
bool
false
_7
Show VWAP Cloud
bool
true
showVWAP
Hide VWAP plots on 1D charts or above
bool
true
hideonDWM
VWAP Cloud St Dev
float
0.786
stdevMult
Anchor Period
string
Session
anchor
Source
source
hlc3
vwapsrc
Offset
int
0
offset
═════ RSI DIVERGENCE SETTINGS ═════
bool
false
_6
Length
int
14
len
Source
source
hlc3
src
Overbought (OB)
int
60
ob
Oversold (OS)
int
40
os
Max Bars in OB/OS
int
1000
prd
Min Bars between OB/OS Signals
int
0
mindis
Max Bars between OB/OS Signals
int
1000
maxdis
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.
All Candlestick Patterns detects and highlights a wide range of bullish, bearish, and neutral candlestick patterns directly on the price chart. It features optional trend filtering using either a 50-period simple moving average or a combination of 50-period an
This indicator detects a large set of classic candlestick patterns and plots colored labels on the price chart. Trend context uses a 50-period simple moving average, or the 50 and 200 averages stacked together, and can be switched off. Users filter bullish, be
Five-in-one Strategy combines five analytical tools into a single price chart overlay: the Dual Thrust Trading Algorithm (DTTA), Semafore, HalfTrend, Nick Rypock Trailing Reverse, and Tweezer or Kangaroo Tail candlestick patterns. It generates trade signals us
This indicator calculates and plots Heikin-Ashi smoothed candlesticks directly on the price chart. It derives the smoothed close from standard price averages and recursively computes the open, high, and low values. The script does not issue trade signals or al
This indicator overlays on the price chart and provides trend and momentum analysis. It calculates and plots three exponential moving averages with fixed periods of 20, 50, and 200 using yellow, orange, and blue colors respectively. The script also computes th
The Confluence Suite indicator draws multiple trading signals and tools directly on the price chart. It generates entry and exit signals based on selected modes and filters, with an AI signal classifier rating quality from 1-4. Additional features include smar