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
US Momentum Swing Screener plots a composite score based on an EMA ribbon (9/21/50/200), RSI and StochRSI momentum, MACD confluence, volume surge detection, ADX trend strength, Bollinger Band positioning, and ATR-based stop-loss and take-profit levels. The script calculates tiered signals and draws hidden plots and labels for setup quality, with optional VCP COIL detection. Main settings adjust EMA lengths, oscillator thresholds, volume multipliers, and risk parameters. It draws on the price chart with SL/TP lines.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Fast EMA
int
9
ema9_len
Mid EMA
int
21
ema21_len
Slow EMA
int
50
ema50_len
Anchor EMA
int
200
ema200_len
RSI Period
int
14
rsi_len
RSI Bullish Floor
int
50
rsi_low
RSI Ceiling OB
int
75
rsi_high
Stoch K Smooth
int
3
stoch_k_len
Stoch D Smooth
int
3
stoch_d_len
StochRSI Length
int
14
stoch_rsi_l
MACD Fast
int
12
macd_fast
MACD Slow
int
26
macd_slow
Show all 40 settings
Setting
Type
Default
Variable
Signal
int
9
macd_sig
Volume MA Period
int
20
vol_ma_len
Volume Surge Multiplier
float
1.5
vol_surge_x
ADX Length
int
14
adx_len
ADX Min Strength
int
20
adx_threshold
BB Period
int
20
bb_len
BB StdDev
float
2.0
bb_mult
ATR Period
int
14
atr_len
Stop-Loss ATR x
float
1.5
atr_sl_mult
Take-Profit ATR x
float
2.5
atr_tp_mult
Stop Mode
string
Momentum (EMA 20)
stop_mode
Trail Buffer Below EMA (%)
float
1.0
trail_buffer
Volume Dry-Up Lookback (days)
int
20
coil_vol_bars
BB Tightness Percentile (0-25)
int
10
coil_bb_pct
Require MCDX Bullish for COIL
bool
true
coil_mcdx_gate
Detect Hammer Candles (adds 1 score point)
bool
true
use_hammer
Min Lower Wick / Body Ratio
float
2.0
hammer_wick_mult
Max Upper Wick / Body Ratio
float
0.5
hammer_upper_max
Benchmark for True RS
symbol
AMEX:SPY
idx
Enable True RS Filter vs SPY
bool
true
use_rs
Min Price (USD)
float
5.0
min_price
Min Avg Volume (shares)
int
500000
min_vol
Min Avg $-Volume (millions/day)
float
5.0
min_dollar_vol
Exit: min conditions required (1-4)
int
3
exit_min
Show Dashboard
bool
true
show_dash
Show Locked SL / TP Lines
bool
true
show_levels
Dashboard: Daily Anchor Row
bool
true
show_daily_row
Dashboard: True RS Row
bool
true
show_rs_row
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.
This indicator plots RSI divergence lines at resistance and support levels based on 14-period RSI crossing above 70 or below 30 within a search window of 141 bars. It displays dual EMA trend fill between periods 199 and 299, VWAP filter, TKPS tick pattern diam
This overlay indicator combines SuperTrend, RSI, MACD, and an EMA to mark labeled tops and bottoms on the price chart. Optional filters hide repeating signals and keep only relevant exits, and a Krypton fear-and-greed filter can limit bottoms and tops to overs
This indicator plots envelope bands based on a moving average or exponential moving average of a chosen price source. It computes RSI with user-set length and source. Signals trigger on crossovers: buy when price crosses the lower envelope band while RSI falls
Composite Market Bias is a separate-pane indicator that scores bullish and bearish conditions from RSI, fast versus slow EMA, MACD histogram, Bollinger Band position, and price versus a 50-period EMA. It plots the resulting bias score with RSI, EMA trend, MACD
This overlay indicator plots a Supertrend from an ATR length and factor, four exponential moving averages, and a selectable VWAP or TWAP taken from a chosen timeframe on the price chart. It also shows MACD and stochastic with adjustable lengths, smoothing, ver
This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre