Compactly display the internal structure of ichimoku objects.
# S3 method for ichimoku
str(object, ...)
an object of class 'ichimoku'.
arguments passed to or from other methods.
Invisible NULL. A compact display of the structure of the object is output to the console.
This function is an S3 method for the generic function str() for class 'ichimoku'. It can be invoked by calling str(x) on an object 'x' of class 'ichimoku'.
cloud <- ichimoku(sample_ohlc_data, ticker = "TKR")
str(cloud)
#> ichimoku object [2020-01-02 / 2021-02-01] (281, 12)
#> <double> $open $high $low $close $cd $tenkan $kijun $senkouA $senkouB $chikou $cloudT $cloudB
#> index: <POSIXct> 2020-01-02 ... 2021-02-01
#> attributes:
#> periods: 9 26 52
#> periodicity: 1 days
#> ticker: TKR
strat <- strat(cloud)
str(strat)
#> ichimoku object [2020-01-02 / 2021-02-01] (281, 19) w/ strat
#> <double> $open $high $low $close $cd $tenkan $kijun $senkouA $senkouB $chikou $cloudT $cloudB $cond $posn $txn $logret $slogret $ret $sret
#> index: <POSIXct> 2020-01-02 ... 2021-02-01
#> attributes:
#> periods: 9 26 52
#> periodicity: 1 days
#> ticker: TKR
#> strat: [strategy: close > tenkan w/ direction: long... ]