Mean value of OHLC prices
Calculates the average value of different price levels within a price bar.
1 2 3
xts Time Series containing Open and Close Prices
The calculation of the average of the high, low, and close, is as follows:
OHLC Average = (Open + High + Low + Close) / 4
HLC Average = (High + Low + Close) / 3
HL Average = (High + Low) / 2
A xts object containing the corresponding column:
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.