- 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
- 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.
PriceTypesets 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
SDMultipliertimes 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
AutoUpdateoff. - 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.
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
| Parameter | Default | Description |
|---|---|---|
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
- Unzip the download. It contains an
MQL4orMQL5folder. - In MetaTrader choose File › Open Data Folder.
- Copy the contents of the folder into the folder of the same name there.
- Restart the terminal, or right-click in Navigator and choose Refresh. MetaTrader compiles the source on its own.
- Drag
AnchoredVWAPfrom Indicators in Navigator onto a chart, then move the blue vertical line to the bar you want.
cTrader
- The zip contains the C# source (a single
.csfile). - In cTrader open Algo and create a new indicator.
- Replace the default code with the content of the file.
- Click Build and add the indicator to a chart.
Changelog
-
v1.00 MT4 New November 30, 2026
- Published on TradeKit
-
v1.00 MT5 November 30, 2026
- Published on TradeKit
-
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 reviewFAQ
Forex has no real volume. Is this VWAP meaningful?
I moved the line and it jumped back. Why?
Does the VWAP change after a bar closes?
Why is nothing drawn with real volume?
Can I have several VWAPs on one chart?
Related products
More Indicators and tools from the same family
Risk warning