Skip to main content
Cart Log in Sign up
Indicator

Anchored VWAP: VWAP from the bar you choose

Calculates VWAP from a bar you mark with a vertical line and draws standard deviation bands around it.

Platform

License

Price

≈

Version

You own this product. Go to My products
Get the demo

  • Automatic, instant delivery once payment confirms
  • Free updates for every future version
  • 12 months of technical support
  • Refunds under a transparent policy
  • Pay with USDT, BTC, ETH and more
  • Free: no payment, download it right now

Risk warning: Trading financial markets carries a risk of losing capital, and past performance does not guarantee future results. Terms & conditions

Product type
Indicator
Platforms
MT4 · MT5 · cT
Market / symbol
Gold, FX majors, FX minors, Indices, Crypto, Oil
Experience level
Intermediate
Delivery
File download from your dashboard
Last update
November 30, 2026
Broker
Any broker

Overview

A regular VWAP starts at the beginning of the day. Anchored VWAP lets you pick the starting point yourself: an important high or low, a news bar, or the start of the week. The indicator places a vertical line on the chart and plots the volume-weighted average price from that bar onward.

Drag the vertical line with the mouse and the VWAP is recalculated from the new point right away. If you prefer not to do it by hand, the anchor can sit at the start of the day, week, month or year automatically, or stay a fixed number of bars behind the current price.

It is useful for traders who want to know where price stands relative to the average traded price since a specific event.

  • Anchor set by a draggable vertical line
  • Automatic anchoring to the start of the day, week, month or year
  • Two standard deviation bands with an adjustable multiplier
  • Five price types for the calculation
  • Alerts for a VWAP cross, a band exit and a return inside the band

Source and licence

This tool is the open-source project Anchored VWAP by EarnForex.com, released under the Apache 2.0 licence. The source code is included in the download unchanged, with the licence text next to it. TradeKit provides the description, install guide and support. Original repository: github.com/EarnForex/Anchored-VWAP

Strategy logic

VWAP calculation

  • From the anchor bar to the current bar, the sum of price × volume is divided by the sum of volume.
  • PriceType sets the price taken from each bar: Typical (average of high, low and close), Weighted, Median, Close or Open.
  • Nothing is drawn before the anchor.

Bands

  • The standard deviation is volume-weighted too and starts from the same anchor.
  • The upper and lower bands are VWAP plus and minus SDMultiplier times that deviation.

Anchor

  • In N Bars Back mode with AutoUpdate = true, the anchor moves one bar forward on every new bar so the distance stays constant.
  • In Start of Period mode the anchor moves only when a new period begins.
  • If you dragged the line and want it to stay put, turn AutoUpdate off.
  • The line keeps its position when you switch timeframes.

Alerts

  • Alerts are checked once per bar, on the close of the previous bar.
  • MetaTrader: pop-up, sound, email and push. cTrader: pop-up, sound and email.

Specifications

Requirements

  • MetaTrader 4, MetaTrader 5 or cTrader desktop
  • A symbol for which your broker provides tick volume
  • Real volume is available in MT5 only, and only on symbols where the broker publishes it
Platforms
MT4MT5cT
Delivery
Use case
Scalping، Swing، Trend following
Market
Gold، FX majors، FX minors، Indices، Crypto، Oil
Experience level
Intermediate

Compatible brokers

Which brokers this product works with, and which it works best with.

Works with every broker

No broker restriction: it works with any broker that offers the product's platform.

The broker choice is yours; TradeKit is not a broker. Check account terms before depositing. All brokers

Input parameters

Input parameters
ParameterDefaultDescription
AnchorModeDefault anchor: a number of bars back, or the start of a period N Bars Back Default anchor: a number of bars back, or the start of a period
BarsBackHow many bars back from the current bar the anchor sits 100 How many bars back from the current bar the anchor sits
AnchorPeriodTypePeriod for Start of Period mode: day, week, month or year Day Period for Start of Period mode: day, week, month or year
AutoUpdateMove the anchor automatically on a new bar or period true Move the anchor automatically on a new bar or period
PriceTypeWhich price of each bar goes into the calculation Typical (HLC/3) Which price of each bar goes into the calculation
VolumeTypeTick or real volume; MT5 only Tick Tick or real volume; MT5 only
ShowBandShow the standard deviation bands true Show the standard deviation bands
SDMultiplierStandard deviation multiplier for the band distance 2.0 Standard deviation multiplier for the band distance
AlertOnVWAPCrossAlert when price crosses the VWAP false Alert when price crosses the VWAP
AlertOnBandExitAlert when price leaves the band false Alert when price leaves the band
AlertOnBandReturnAlert when price returns inside the band false Alert when price returns inside the band

Install guide

MetaTrader 4 and MetaTrader 5

  1. Unzip the download. It contains an MQL4 or MQL5 folder.
  2. In MetaTrader choose File › Open Data Folder.
  3. Copy the contents of the folder into the folder of the same name there.
  4. Restart the terminal, or right-click in Navigator and choose Refresh. MetaTrader compiles the source on its own.
  5. Drag AnchoredVWAP from Indicators in Navigator onto a chart, then move the blue vertical line to the bar you want.

cTrader

  1. The zip contains the C# source (a single .cs file).
  2. In cTrader open Algo and create a new indicator.
  3. Replace the default code with the content of the file.
  4. Click Build and add the indicator to a chart.

Changelog

  1. v1.00 MT4 New November 30, 2026
    • Published on TradeKit
  2. v1.00 MT5 November 30, 2026
    • Published on TradeKit
  3. v1.00 cT November 30, 2026
    • Published on TradeKit

Buyer reviews

No reviews yet.

Only verified buyers can review. Reviews are moderated before publishing.

Only verified buyers can review. Reviews are moderated before publishing.

Sign in to write a review

FAQ

Forex has no real volume. Is this VWAP meaningful?
On forex and CFDs the indicator uses tick volume, the number of price changes in each bar. That number differs from broker to broker, so your VWAP may differ slightly from the same chart at another broker.
I moved the line and it jumped back. Why?
<code>AutoUpdate</code> is on, so a new bar or a new period sends the anchor back to its default position. Turn it off to keep a manual anchor.
Does the VWAP change after a bar closes?
While the anchor stays where it is, values on closed bars do not change. When the anchor moves, the whole line is recalculated; in N Bars Back mode with auto-update that happens on every new bar.
Why is nothing drawn with real volume?
If the symbol has no real volume, the volume sum stays at zero and the VWAP cannot be calculated. Set <code>VolumeType</code> back to Tick.
Can I have several VWAPs on one chart?
Yes. Add the indicator again and give each copy a different <code>ObjectPrefix</code> so the vertical lines do not clash.

Related products

More Indicators and tools from the same family

Compare Compare now