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 strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
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
Fusion VWAP Momentum Strategy enters positions during pullbacks or breakouts around VWAP when momentum criteria—derived from EMAs, ROC, RSI, MACD, and ADX—reach user-defined threshold scores. Trades exit when the momentum score drops below a minimum level or when price hits an ATR-based stop loss. Main settings allow customization of entry modes, momentum thresholds, VWAP slope filters, ATR buffer distances, and cooldown durations between trades. It plots directly on the price chart.
Composite multi-indicator momentum scoring engine
VWAP pullback and breakout entry modes
ATR-based band offsets and stop loss management
Trend filtering using multiple exponential moving averages
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Trade direction
string
Long only
tradeDirection
Cooldown bars
int
12
cooldownBars
Require trend filter
bool
true
requireTrendFilter
Entry mode
string
Pullback
entryMode
Use backtest window
bool
false
useBacktestWindow
Backtest start
time
timestamp(2025, 1, 1, 0, 0)
backtestStart
Backtest end
time
timestamp(2026, 1, 1, 0, 0)
backtestEnd
Daily fallback VWMA length
int
48
vwapLen
VWAP entry buffer ATR
float
0.10
entryBufferAtr
VWAP pullback band ATR
float
0.75
pullbackAtr
VWAP exit buffer ATR
float
0.75
exitBufferAtr
Max extension above VWAP ATR
float
1.50
maxExtensionAtr
Show all 37 settings
Setting
Type
Default
Variable
VWAP slope smoothing
int
8
vwapSlopeLen
Minimum VWAP slope ATR
float
0.01
minVwapSlopeAtr
Fast EMA
int
21
emaFastLen
Slow EMA
int
55
emaSlowLen
Trend EMA
int
200
emaTrendLen
ROC length
int
10
rocLen
RSI length
int
14
rsiLen
MACD fast
int
12
macdFast
MACD slow
int
26
macdSlow
MACD signal
int
9
macdSignal
DI length
int
14
diLen
ADX smoothing
int
14
adxSmooth
Minimum ADX
float
14.0
minAdx
Long momentum score
int
7
longScoreMin
Short momentum score
int
5
shortScoreMin
Momentum exit score
int
1
exitScore
ATR length
int
14
atrLen
Stop ATR
float
2.6
stopAtr
Target ATR
float
10.0
targetAtr
Use ATR target
bool
false
useAtrTarget
Avoid wide signal bars
bool
true
avoidWideSignalBars
Max signal range ATR
float
2.50
maxSignalRangeAtr
Show VWAP bands
bool
true
showVWAP
Show trend EMAs
bool
true
showTrend
Show signals
bool
true
showSignals
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 strategy trades longs and shorts on the price chart. Long entries require a close above the prior Donchian high, a close above a long-term SMA, and RSI above a threshold, with size set as a percentage of equity. Long exits use a stop at the prior Donchian
Edge 59 is a price-chart strategy that combines an ADX directional filter, a weighted moving average, and a trend-follower channel. The channel uses an exponential moving average of close, optionally smoothed by linear regression, and a percentage of a fixed 2
AG Momentum Breakout is a strategy that identifies continuation signals after pullbacks in trending markets. It filters for uptrends using EMAs and detects recent pullbacks via RSI conditions before entering on RSI crossovers above 50 with ADX confirmation. Th
Christian Qullamaggie Strategy is a trend-following and breakout strategy overlay designed to identify high-momentum trading opportunities directly on the price chart. It evaluates market conditions using fast, mid, and slow EMAs, average true range (ATR), and
This strategy identifies breakout trades using a 7-period RSI combined with price extreme lookbacks. A long entry triggers when the RSI rises above 70 and price reaches a new lookback high, provided price remains above an optional EMA trend filter and passes a
This strategy trades momentum breakouts by combining an Exponential Moving Average with the Relative Strength Index. It enters a long position when the closing price is above the EMA and the RSI crosses above the breakout threshold. It enters a short position