Description Usage Arguments Value See Also Examples
View source: R/market_thermometer.R
The market thermometer was developed by Alexander Elder. The market thermometer is described in his book "Come Into My Trading Room" on pages 162-164.
1 | thermometer(x, n = 22)
|
x |
an xts object that contains OHLC data. |
n |
Number of periods for the ema period. Default is 22. |
returns an xts object containing the columns:
temperature contains the calculated temperature values
temp_ema Ema values based on the temperature values.
Other Alexander Elder functions:
alert_marker()
,
safezone()
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
library(quantmod)
ADM <- getSymbols("ADM",
from = "2018-01-01",
to = "2018-07-01",
auto.assign = FALSE)
chartSeries(ADM, TA = NULL) # without volume
addTA(thermometer(ADM))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.