Algotrend Vwap Contest
- Göstergeler
- Sürüm: 1.0
Algotrend VWAP Context shows on the chart the two things an intraday trader checks first: where the session VWAP is, and which side the daily context favors. The session VWAP is drawn with two deviation bands and changes color with the context: green when trend and RSI arm the buy side, red when they arm the sell side, grey when neither side is armed. A small panel shows the numbers behind the color.
It works on charts from M1 to H1, on any symbol: gold, indices, currencies, crypto. It does not use DLLs or internet requests and it does not trade. It is free.
THE DAILY CONTEXT
The indicator builds a series of session closes and reads three numbers from it. Trend compares the price with the average of the last 50 session closes and with the close 20 sessions back: both above gives +2, both below gives -2, one above and one below gives 0. The daily RSI is a 14 period RSI on the session closes. Relative volume compares the volume of the session so far with the average volume of the last 20 sessions; above 1.2 it is shown as strong. During the session the current price takes the place of the last close, so the context updates live.
Trend +2 with the RSI below 70 arms the buy side and the VWAP turns green. Trend -2 with the RSI above 30 arms the sell side and the VWAP turns red. Anything else, a mixed trend or a market already stretched beyond 70 or below 30, leaves the VWAP grey. The color is calculated bar by bar, so on the history you can see how the context changed during each session.
THE SESSION VWAP
The VWAP starts at the anchor time, 9:30 New York by default, and is the average typical price of the bars weighted by tick volume. A new line starts with every session. The two bands are 1 and 2 volume weighted standard deviations around the VWAP and show how far price has stretched from it. The VWAP is calculated on closed bars; the value of the bar that is still forming moves until it closes.
THE CONTEXT CLOCK
With the US Session clock, the default, one session is one New York trading day: the close is taken at 16:00 New York, or 13:00 on the early close days, the NYSE holidays are skipped and the session volume runs from 9:00 New York. This gives the same daily context to gold, indices and currencies, read at the same moment as the US cash markets. With the Broker Daily clock the indicator uses the daily bars of your broker instead, which suits markets that trade every day, such as crypto. The history needed is 50 sessions; with less, the panel shows how many sessions are available and the VWAP stays grey.
THE PANEL
The panel in the top left corner shows the symbol and the clock, the armed side with the trend score and the daily RSI, the relative volume and the VWAP value with the distance of the price from it in percent.
BUFFERS
The indicator has 10 buffers for iCustom and the Data Window. 0 VWAP, 1 VWAP color index (0 none, 1 buy, 2 sell), 2 upper band 1, 3 lower band 1, 4 upper band 2, 5 lower band 2, 6 armed side (1, -1 or 0), 7 trend score, 8 daily RSI, 9 relative volume. Empty values are EMPTY_VALUE.
GETTING STARTED
Attach the indicator to a chart from M1 to H1. Wait a few seconds the first time: the indicator reads the H1 history of the symbol and the panel shows loading history until the data is there. Then read the color of the VWAP: green, look for buys near or above the VWAP; red, look for sells near or below it; grey, the context does not favor either side.
SETTING EXAMPLES
Gold and US indices intraday: all default settings, on M1, M5 or M15.
Crypto every day: Context Clock Broker Daily, so the context comes from the broker daily bars, weekends included.
A different session: change Session Start and the VWAP anchor, for example 3:00 New York for a VWAP that starts at the London open.
FREQUENTLY ASKED QUESTIONS
Does it repaint? The context and the VWAP of closed bars do not change. The bar that is still forming moves until it closes, like any line on a live chart.
Why is the VWAP grey? No side is armed: the trend is mixed, or the daily RSI is beyond 70 or below 30. The panel shows trend and RSI, so the reason is visible at a glance. It also stays grey while fewer than 50 sessions of history are available.
What volume does it use? Tick volume, the number of price changes, which is what MetaTrader 5 provides for forex and CFD symbols. On exchange symbols with real volume, tick volume is used as well.
Which timeframes? From M1 to H1. On higher timeframes the indicator shows only a message.
My broker uses a different server time. Server Time Mode Auto recognizes the common New York close clock (GMT+2 in winter, GMT+3 in summer) and reads the offset of other brokers. If your broker uses a fixed offset without daylight saving, choose Fixed Offset and enter it.
PARAMETERS
Context
Context Clock: US Session (New York trading days, NYSE calendar) or Broker Daily (daily bars of the broker).
Strong Relative Volume Level: relative volume shown as strong on the panel.
Session
Session Start NY Hour, Session Start NY Minute: start of the session in New York time, 9:30 by default.
VWAP Anchor NY Hour, VWAP Anchor NY Minute: start of the VWAP; -1 uses the session start.
Chart
History Days: days drawn.
Show Deviation Bands, Band 1 Deviations, Band 2 Deviations: volume weighted deviation bands around the VWAP.
Color Armed Buy, Color Armed Sell, Color Not Armed, Color Bands: colors.
Panel
Show Panel, Panel X, Panel Y, Font Size.
Server Time
Server Time Mode: Auto, NY Close or Fixed Offset. In the Strategy Tester the NY Close clock is used.
Fixed Server Utc Offset Hours: broker offset from UTC for Fixed Offset.
About Algotrend: Algotrend is an independent developer of trading algorithms and indicators. Every product is designed, tested and supported by the same developer. For questions and suggestions, write in the comments of this page or send a private message on MQL5.
The indicator describes past and current price action and does not guarantee future results. Trading involves risk.
