Class Indicators.SuperTrend

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

public static final class Indicators.SuperTrend extends Object
direction: +1 = uptrend (value is support), -1 = downtrend (value is resistance).
  • Constructor Details

    • SuperTrend

      public SuperTrend(double[] value, int[] direction)
      Creates the value; array and collection arguments are copied.
  • Method Details

    • value

      public double value(int i)
      Element i of value.
    • valueLength

      public int valueLength()
      Length of value.
    • valueCopy

      public double[] valueCopy()
      A fresh copy of value.
    • direction

      public int direction(int i)
      Element i of direction.
    • directionLength

      public int directionLength()
      Length of direction.
    • directionCopy

      public int[] directionCopy()
      A fresh copy of direction.
    • 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