VolumeDay (Function)

image\trumpet2.gif Disclaimer

The VolumeDay function allows you to reference the daily Volume in an intraday chart (minute, second, or tick-based) or a daily chart.

VolumeDay is part of a family of functions that allows historical daily, weekly, monthly, and yearly references in intraday charts.

Syntax

VolumeDay(NumDaysAgo)

Returns (Double)

A numeric value for the requested day. The function returns -1 for a data error and -2 for an unsupported chart type.

Parameters

Name

Type

Description

NumDaysAgo

Numeric

The number of days back to reference a previous day’s volume.

Remarks

You must have enough intraday data in the chart in order to look back and reference any previous close. For example, if you want to look back at the volume of 25 days ago on a 5-minute chart, you must have 25 days of 5-minute bars in the chart.

The value for the NumDaysAgo input parameter should always be a whole number greater than or equal to 0. Setting NumDaysAgo to 0 equals today’s current Volume.

Example

Assigns the Volume of the previous day on an intraday chart to Value1, then plots Value1:

Value1 = VolumeDay(1);

Plot1(Value1, "VolumeDay");

See Also

CloseSessionHighSession, LowSession, OpenSession, VolumeMonth, VolumeWeek, VolumeYear, and VolumeSession.