A gold-oriented overlay that combines 21, 50 and 200 EMAs, an RSI filter, MACD confirmation and stochastic RSI to draw buy and sell arrows on the price chart.
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
295 lines of Pine Script v5 from Testing 3 Lines.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Stop loss and two take-profit lines are placed from ATR multiples, and daily pivot levels can be shown. An optional volume filter and an on-chart table that checks past signals over a set number of bars are included. It is an indicator only and does not place orders. The table is a self-check, not a statement of future results.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Fast EMA
int
21
ema_fast_len
Mid EMA
int
50
ema_mid_len
Slow EMA
int
200
ema_slow_len
Show EMAs
bool
true
show_emas
RSI Length
int
14
rsi_len
Overbought Level
int
70
rsi_ob
Oversold Level
int
30
rsi_os
Mid Level
int
50
rsi_mid
MACD Fast
int
12
macd_fast
MACD Slow
int
26
macd_slow
MACD Signal
int
9
macd_signal
ATR Length
int
14
atr_len
Show all 27 settings
Setting
Type
Default
Variable
Stop-Loss ATR ×
float
1.5
sl_atr_mult
TP 1 ATR ×
float
1.5
tp1_atr_mult
TP 2 ATR ×
float
3.0
tp2_atr_mult
Show SL / TP Lines
bool
true
show_sl_tp
Stoch RSI Length
int
14
stoch_rsi_len
K Smooth
int
3
stoch_k_smooth
D Smooth
int
3
stoch_d_smooth
Stoch Overbought
int
80
stoch_ob
Stoch Oversold
int
20
stoch_os
Show Daily Pivots
bool
true
show_pivots
Require Above-Average Volume
bool
false
use_vol_filter
Volume MA Length
int
20
vol_ma_len
Show Buy / Sell Arrows
bool
true
show_signals
Show Win-Rate Table
bool
true
show_win_table
Win-Rate Eval Bars
int
10
eval_bars
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
The Momentum Setup is a multi-indicator visual tool designed for trend and momentum analysis directly on the price chart. It combines Relative Strength Index (RSI), Money Flow Index (MFI), Commodity Channel Index (CCI), Supertrend, and a 250-bar percentage cha
This indicator uses a Lorentzian distance k-nearest neighbors classification algorithm to predict market direction based on up to five technical features, such as RSI, WaveTrend, CCI, and ADX. It compares current feature values against historical bar patterns
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