1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
For a buy, price must break above a Nadaraya-Watson envelope upper band, the fast EMA must be above the slow EMA, an adaptive trend channel must slope up, and RSI must sit in a bullish band and be rising; sells mirror this. Bands, EMAs and component signals can be shown separately. The envelope uses repainting smoothing by default, so history can change.
Combined envelope, EMA, trend channel and RSI signal
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Bandwidth
float
8.0
nwe_h
Multiplier
float
3.0
nwe_mult
Source
source
close
nwe_src
Repainting Smoothing
bool
true
nwe_repaint
Fast EMA Period
int
13
ema_fast
Slow EMA Period
int
48
ema_slow
Deviation Multiplier
float
2.0
atf_mult
Fixed Period (0 = auto-select)
int
0
atf_fixed_period
Include RSI in Signal
bool
true
use_rsi
RSI Period
int
14
rsi_len
Bullish Zone Lower Bound
int
30
rsi_lo
Bullish Zone Upper Bound
int
40
rsi_hi
Show all 22 settings
Setting
Type
Default
Variable
Bearish Zone Lower Bound
int
60
rsi_bear_lo
Bearish Zone Upper Bound
int
70
rsi_bear_hi
RSI Trend Lookback (bars)
int
3
rsi_lookback
Show NWE Bands
bool
false
show_nwe
Show EMAs
bool
false
show_ema
Show ATF Channel
bool
false
show_atf
Show BUY/SELL Labels
bool
true
show_signal_labels
Show NWE Signals
bool
false
show_nwe_signals
Show EMA Signals
bool
false
show_ema_signals
Show ATF Signals
bool
false
show_atf_signals
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