Learn R Programming

TrueWAP (version 0.1.0)

TWAP: Title TWAP

Description

Calculates Time-Weighted Average Price (TWAP)

Usage

TWAP(OHLC, period)

Value

Vector of TWAP values

Arguments

OHLC

Data frame object with Open, High, Low, & Close fields

period

Rolling window length

Examples

Run this code
data(nikkei)
TWAP(nikkei$OHLC, 50)

Run the code above in your browser using DataLab