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
[UST] Protein + TIM Dynamic Swing Anchored VWAP incorporates an Adaptive Price Tracking mechanism that adjusts VWAP reaction speed according to market volatility and ATR ratios. In addition to dynamic VWAP lines, it identifies support and resistance zones from pivot points across the current chart and optional higher timeframes.
Dynamic VWAP anchored to swing pivot points
Adaptive Price Tracking based on ATR volatility
Multi-timeframe support and resistance zones
Customizable swing detection and tracking sensitivity
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Swing Period
int
50
prd_zeiierman
Adaptive Price Tracking
float
20
baseAPT_zeiierman
Adapt APT by ATR ratio
bool
false
useAdapt_zeiierman
Volatility Bias
float
10.0
volBias_zeiierman
Swing Labels
color
color.lime
highS_zeiierman
lowS_zeiierman
color
color.red
lowS_zeiierman
VWAP Lines
color
color.lime
S_zeiierman
R_zeiierman
color
color.red
R_zeiierman
xx_zeiierman
int
2
xx_zeiierman
Show Current TF S/R
bool
true
show_current_sr
Swing Length
int
10
swing_length
Lookback
int
20
history_of_demand_to_keep
Show all 40 settings
Setting
Type
Default
Variable
S/R Range
float
5
box_width
Pivot Source
string
Close
pivot_source
enableHtf1
bool
false
enableHtf1
TF1
timeframe
W
htf1
enableHtf2
bool
false
enableHtf2
TF2
timeframe
D
htf2
enableHtf3
bool
false
enableHtf3
TF3
timeframe
240
htf3
enableHtf4
bool
false
enableHtf4
TF4
timeframe
180
htf4
enableHtf5
bool
false
enableHtf5
TF5
timeframe
120
htf5
enableHtf6
bool
false
enableHtf6
TF6
timeframe
60
htf6
enableHtf7
bool
false
enableHtf7
TF7
timeframe
45
htf7
enableHtf8
bool
false
enableHtf8
TF8
timeframe
30
htf8
enableHtf9
bool
false
enableHtf9
TF9
timeframe
15
htf9
Support Zone
color
color.rgb(242, 54, 69, 0.9)
supply_color
BoS
color
color.rgb(242, 54, 69, 0.9)
supply_outline_color
Resistance Zone
color
color.rgb(41, 98, 255, 0.9)
demand_color
BoR
color
color.rgb(41, 98, 255, 0.9)
demand_outline_color
S/R Zone Label
color
color.white
poi_label_color
Swing Detection Lookback
int
14
length
Slope
float
1.
mult
Slope Calculation Method
string
Atr
calcMethod
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 analyzes short-term price action on index futures and options charts by applying Rational Quadratic kernel smoothing to detect sideways consolidation ranges and potential breakouts. It processes pivot highs and lows over customizable loopback pe
This indicator plots Ichimoku Cloud elements on the price chart, including Tenkan-sen, Kijun-sen, Senkou Span A and B lines with optional Chikou Span. It signals trend changes via Tenkan-sen and Kijun-sen crosses and places arrows at Kijun-sen direction shifts
This indicator overlays trend-following Supertrend bands on the price chart using Average True Range calculations. It plots trailing stop lines, highlights active trend directions, and prints buy or sell shape labels when price closes across band thresholds. I
This indicator plots two Hull moving averages on the price chart, one of the selected price and one of close, and optionally smooths both with a Kahlman filter. It fills the space between them and marks buy and sell labels when they cross, provided scaled volu
The MA Envelope indicator calculates upper and lower channel bands shifted by a user-defined percentage around a baseline moving average. It supports Simple Moving Average, Exponential Moving Average, and Weighted Moving Average calculation types. The script p
This indicator calculates an Exponential Moving Average and a Zero-Lag Moving Average to identify market trends on the price chart. It plots both moving averages and fills the space between them with color to highlight trend direction. Upon a crossover or cros