Current Day TWAP

Daily TWAP indicator for NinjaTrader 8

The Current Day TWAP is the time-weighted average price (TWAP) of a security for the current day’s trading session. The TWAP is an early algorithm that was used by high volume traders to execute large orders over a specified time period. Today it is only used as a benchmark when volume data is not available.

Indicator Description

The Daily TWAP indicator is an average price that reflects how the asset’s market price has changed over time. The simplest version of a time-weighted average price is based on “time slicing”. On a time-based chart, such as a minute chart the TWAP is calculated as the arithmetic mean of all data points. On tick-based charts all data points are weighted by the bar duration.

Trading algorithms that try to match the time-weighted average price are typically based on a uniform time-based schedule. The Volume Weighted Average Price (VWAP) calculation is today considered to have replaced the TWAP approach. Accordingly, the Daily TWAP should only be used with uniform volume, or when no volume data is available. You may compare the daily time-weighted average price output by adding it to a Daily VWAP chart. On our blog we have posts discussing larger timeframe VWAPs and different approaches to trading the VWAP.

Using the Daily TWAP indicator

The indicator can be set to calculate for the entire trading day or it can be set to calculate for custom hours such as the regular session. When a custom session is selected the time-weighted average price calculation will pause outside the selected custom hours. In case that there is a technical break inside the selected session, please select “Technical break in session” and enter start and end time for the technical break. The Daily TWAP indicator further comes with time-weighted standard deviation bands. As this indicator does not use volume information, it should be set to “Calculate” = “On price change”.

The indicator will calculate an accurate time-weighted average price and bands when applied to high resolution charts. When used with higher timeframe charts, the plots may be one or a few ticks off the correct value. Accuracy will be good on a 1- min chart after the first hour counted from the anchor point.

Other Library Indicators

Our Indicator Library also features the Weekly TWAP, Monthly TWAP, N-Monthly TWAP, Daily Median, Weekly VWAP, Monthly VWAP, N-Monthly VWAP, in addition to our Premium VWAPs.

The Daily TVWAP indicator is available for NinjaTrader 8.