powered by
Calculates Time-Weighted Average Price (TWAP)
TWAP(OHLC, period)
Vector of TWAP values
Data frame object with Open, High, Low, & Close fields
Rolling window length
data(nikkei) TWAP(nikkei$OHLC, 50)
Run the code above in your browser using DataLab