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 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
344 lines of Pine Script v6 from pine/legacy/VWAP_Long_Reclaim_Strategy.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
VWAP Reclaim (LONG-only) calculates VWAP with standard deviation bands alongside zero-lag EMA slope filters to verify market trend alignment. Entries trigger either from a direct VWAP crossover or through a sequence involving a reclaim, ATR-based retest tolerance, and local pullback high breakout. Volume ratios and Ultimate Strength Index (USI) stacks serve as additional entry filters. Signals plot directly on the price chart with an on-screen status dashboard.
Anchored VWAP with standard deviation band channels
VWAP reclaim and pullback retest breakout sequence
Zero-lag EMA slope and trend bias detection
USI multi-RSI momentum stack and volume ratio filtering
On-chart status dashboard and trade execution labels
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Hide VWAP on 1D or Above
bool
false
hideonDWM
Anchor Period
string
Session
anchor
Source
source
hlc3
src
Offset
int
0
offset
Show Band 1
bool
true
showBand_1
Standard Deviation Multiplier
float
0.88
stdevMult_1
Simple VWAP Cross Entry
bool
false
simpleVwapCross
Breakout Entry (Pullback High)
bool
true
breakoutEntry
Only Enter on Matched Trends
bool
true
matchedTrends
Barcolors
bool
true
displaybars
Show Trade Labels
bool
true
showTradeLabels
VWAP Slope Lookback
int
5
trendSlopeBars
Show all 29 settings
Setting
Type
Default
Variable
Price Bias EMA Length
int
8
trendEmaLen
3m Preset
string
Neutral
preset3m
Reclaim: Max Bars bis Retest
int
12
reclaimWindowBars
Retest Toleranz (ATR-Anteil)
float
0.10
retestTolATR
Toleranz via ATR
bool
true
useAtrTol
Debug Markers
bool
true
debug
Show Status Table
bool
true
showStatusTable
Pullback High Lookback
int
5
pullbackLookback
USI Trend Filter
bool
true
useUsiFilter
USI Slow RSI Length
int
7
usiLen1
USI Mid RSI Length
int
5
usiLen2
USI Fast RSI Length
int
3
usiLen3
Min Bull Stack
int
2
usiMinBullStack
Bar Close Only
bool
true
barCloseOnly
Volume Filter
bool
false
useVolFilter
Min Volume Ratio
float
1.0
minVolRatio
Volume SMA Length
int
20
volSmaLen
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 runs on the price chart and enters long when a fast simple moving average crosses above a slow one, and short on the opposite cross, while closing the other side. Entries also need ATR above a filter, a pullback check, a minimum candle-body chang
This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the
This strategy plots Donchian channels, trailing stops, and profit targets directly on the price chart. It enters breakout trades using a 55-bar Donchian channel and sizes positions according to an ATR-based risk percentage per unit. The system adds units as pr
This strategy combines channel breakout concepts with an ATR-ADX volatility trailing framework and multi-timeframe moving averages. It evaluates trend conditions using configurable moving average types, including SMA, EMA, Hull MA, and Tilson T3, paired with d
This strategy executes trend-following trades based on Bollinger Band breakouts confirmed by a long-term moving average filter. A long position opens when the price crosses above the upper Bollinger Band, provided the band spread meets a minimum threshold and
The Keltner Channel Strategy is a breakout system plotted directly on the main price chart. It calculates upper and lower channel bands around an exponential or simple moving average using ATR, True Range, or bar range multiplied by a specified factor. A long