ichimoku: Ichimoku

Description Usage Arguments Value

Description

The ichimoku indicator, as invented by Goichi Hosoda. It has five components.
The turning line is the average of the highest high and highest low of the past nFast periods.
The base line is computed the same way over the course of nMed periods.
Span A is the average of the above two calculations, projected nMed periods into the future.
Span B is the average of the highest high and lowest low over the past nSlow periods, also projected the same way.
Finally, the lagging span is the close, projected backwards by nMed periods.

Usage

1
  ichimoku(HLC, nFast = 9, nMed = 26, nSlow = 52)

Arguments

HLC

an HLC time series

nFast

a fast period of days, default 9

nMed

a medium period of days, default 26

nSlow

a slow period of days, default 52

Value

The first four computations (turning line, base line, span A, span B), plotSpan (do NOT use this for backtesting, but for plotting), laggingSpan, and a lagged Span A and lagged Span B for comparisons with the lagging span, as per Ichimoku strategies.


pdrano/IKTrading documentation built on May 6, 2019, 10:51 p.m.