Class Indicators.SuperTrend
java.lang.Object
com.quantfinlib.indicators.Indicators.SuperTrend
- Enclosing class:
Indicators
direction: +1 = uptrend (value is support), -1 = downtrend (value is resistance).
-
Constructor Summary
ConstructorsConstructorDescriptionSuperTrend(double[] value, int[] direction) Creates the value; array and collection arguments are copied. -
Method Summary
-
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) Elementiofvalue. -
valueLength
public int valueLength()Length ofvalue. -
valueCopy
public double[] valueCopy()A fresh copy ofvalue. -
direction
public int direction(int i) Elementiofdirection. -
directionLength
public int directionLength()Length ofdirection. -
directionCopy
public int[] directionCopy()A fresh copy ofdirection. -
equals
-
hashCode
-
toString
-