thermometer: Market Thermometer

Description Usage Arguments Value See Also Examples

View source: R/market_thermometer.R

Description

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.

Usage

1
thermometer(x, n = 22)

Arguments

x

an xts object that contains OHLC data.

n

Number of periods for the ema period. Default is 22.

Value

returns an xts object containing the columns:

See Also

Other Alexander Elder functions: alert_marker(), safezone()

Examples

 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)

pverspeelt/Quantfunctions documentation built on Oct. 10, 2021, 1:01 p.m.