powered by
Calculates Anchored Time-Weighted Average Price (TWAP)
anchoredTWAP(OHLC, period)
Vector of Anchored TWAP values
Data frame object with Open, High, Low, & Close fields
Vector of bars since start of fixed period
data(nikkei) anchoredTWAP( OHLC = nikkei$OHLC , period = nikkei$bars_since_segment )
Run the code above in your browser using DataLab