Indicator · Pine Script v6 · On the chart

[UST] Protein + TIM Dynamic Swing Anchored VWAP

by wings4· code credited to Zeiierman {

This indicator calculates dynamic Anchored VWAP lines plotted directly on the main price chart based on detected swing highs and lows.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code1,181
Settings40inputs
LicenceNone stated
Last update11 months ago23 Nov 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

wings4 on GitHub

Code credit

Zeiierman {, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Moving averages, Trend, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Swing Periodint50prd_zeiierman
Adaptive Price Trackingfloat20baseAPT_zeiierman
Adapt APT by ATR ratioboolfalseuseAdapt_zeiierman
Volatility Biasfloat10.0volBias_zeiierman
Swing Labelscolorcolor.limehighS_zeiierman
lowS_zeiiermancolorcolor.redlowS_zeiierman
VWAP Linescolorcolor.limeS_zeiierman
R_zeiiermancolorcolor.redR_zeiierman
xx_zeiiermanint2xx_zeiierman
Show Current TF S/Rbooltrueshow_current_sr
Swing Lengthint10swing_length
Lookbackint20history_of_demand_to_keep
Show all 40 settings
SettingTypeDefaultVariable
S/R Rangefloat5box_width
Pivot SourcestringClosepivot_source
enableHtf1boolfalseenableHtf1
TF1timeframeWhtf1
enableHtf2boolfalseenableHtf2
TF2timeframeDhtf2
enableHtf3boolfalseenableHtf3
TF3timeframe240htf3
enableHtf4boolfalseenableHtf4
TF4timeframe180htf4
enableHtf5boolfalseenableHtf5
TF5timeframe120htf5
enableHtf6boolfalseenableHtf6
TF6timeframe60htf6
enableHtf7boolfalseenableHtf7
TF7timeframe45htf7
enableHtf8boolfalseenableHtf8
TF8timeframe30htf8
enableHtf9boolfalseenableHtf9
TF9timeframe15htf9
Support Zonecolorcolor.rgb(242, 54, 69, 0.9)supply_color
BoScolorcolor.rgb(242, 54, 69, 0.9)supply_outline_color
Resistance Zonecolorcolor.rgb(41, 98, 255, 0.9)demand_color
BoRcolorcolor.rgb(41, 98, 255, 0.9)demand_outline_color
S/R Zone Labelcolorcolor.whitepoi_label_color
Swing Detection Lookbackint14length
Slopefloat1.mult
Slope Calculation MethodstringAtrcalcMethod
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.

Similar Pine Scripts

257 stars

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

Indicator v5 Support & resistanceTrend Repaints
Updated 6 weeks ago · None stated GitHub repository of SPX 30M - Trading Chart

Ichimoku Cloud

by harryguiacorn
219 stars

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

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ichimoku Cloud

MA Envelope (MAE)

by mihakralj
99 stars

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

Indicator v6 Moving averagesSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of MA Envelope (MAE)
56 stars

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

Indicator v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of No-Lag MA Trend Levels

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers