Learn R Programming

ichimoku (version 1.5.5)

summary.ichimoku: Summary of Ichimoku Objects and Strategies

Description

Display summary information for an ichimoku object or its strategy.

Usage

# S3 method for ichimoku
summary(object, strat = TRUE, ...)

Value

A matrix containing the strategy summary, if present and

‘strat’ is set to TRUE, otherwise a character vector containing an abbreviated object summary (the full object summary is output to the console).

Arguments

object

an object of class ‘ichimoku’.

strat

[default TRUE] to show the strategy summary if present. Set to FALSE to show the object summary instead.

...

arguments passed to or from other methods.

Details

This function is an S3 method for the generic function summary() for class ‘ichimoku’. It can be invoked by calling summary(x) on an object ‘x’ of class ‘ichimoku’.

Performs basic validation for an ichimoku object and will inform if an ichimoku object contains invalid information.

Examples

Run this code
cloud <- ichimoku(sample_ohlc_data, ticker = "TKR")
summary(cloud)

strat <- strat(cloud)
summary(strat)

Run the code above in your browser using DataLab