Class Indicators.Ichimoku

java.lang.Object
com.quantfinlib.indicators.Indicators.Ichimoku
Enclosing class:
Indicators

public static final class Indicators.Ichimoku extends Object
Ichimoku lines. chikou is for display only: chikou[i] holds close(i + kijun), a price from the future relative to bar i. Any rule or signal reading it at bar i looks ahead. The causal form of the lagging-span signal is close(i) compared with close(i − kijun), which strategy rules should read from the close array directly.
  • Constructor Details

    • Ichimoku

      public Ichimoku(double[] tenkan, double[] kijun, double[] senkouA, double[] senkouB, double[] chikou)
      Creates the value; array and collection arguments are copied.
  • Method Details

    • tenkan

      public double tenkan(int i)
      Element i of tenkan.
    • tenkanLength

      public int tenkanLength()
      Length of tenkan.
    • tenkanCopy

      public double[] tenkanCopy()
      A fresh copy of tenkan.
    • kijun

      public double kijun(int i)
      Element i of kijun.
    • kijunLength

      public int kijunLength()
      Length of kijun.
    • kijunCopy

      public double[] kijunCopy()
      A fresh copy of kijun.
    • senkouA

      public double senkouA(int i)
      Element i of senkouA.
    • senkouALength

      public int senkouALength()
      Length of senkouA.
    • senkouACopy

      public double[] senkouACopy()
      A fresh copy of senkouA.
    • senkouB

      public double senkouB(int i)
      Element i of senkouB.
    • senkouBLength

      public int senkouBLength()
      Length of senkouB.
    • senkouBCopy

      public double[] senkouBCopy()
      A fresh copy of senkouB.
    • chikou

      public double chikou(int i)
      Element i of chikou.
    • chikouLength

      public int chikouLength()
      Length of chikou.
    • chikouCopy

      public double[] chikouCopy()
      A fresh copy of chikou.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object