addPriceInfo: Add OHLC Information for detected candlestick patterns

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function returns not only the occurences of candlestick patterns, but also the OHLC price information of the pattern's formation. The OHLC price information is only set on dates when the pattern is detected, and 0 otherwise.

Usage

1
addPriceInfo(TS, CSP)

Arguments

TS

xts Time Series containing OHLC prices

CSP

xts Time Series of detected candlestick patterns, based on TS

Details

The xtsAttribute bars of CSP is used to calculate the blended candlestick of the formation.

Value

A xts object containing the columns:

-

all columns of CSP

Formation.Open

Opening price of the detected candlestick formation

Formation.High

Highest high of the detected candlestick formation

Formation.Low

Lowest low of the detected candlestick formation

Foramtion.Close

Close price of the detected candlestick formation

Author(s)

Andreas Voellenklee

See Also

CSPNBlended

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
getSymbols("YHOO", adjust=TRUE)

# return detected Engulfing Pattern
CSPEngulfing(YHOO)

# returns detected Engulfing Pattern including formation's OHLC
addPriceInfo(YHOO, CSPEngulfing(YHOO))

## End(Not run)

candlesticks documentation built on Feb. 2, 2020, 3:01 a.m.