@Deprecated public class SentimentIndexBarIndicator extends java.lang.Object implements IIndicator, IDrawingIndicator, IMinMax
Modifier and Type | Class and Description |
---|---|
static class |
SentimentIndexBarIndicator.DataSource
Deprecated.
|
static class |
SentimentIndexBarIndicator.SentimentMode
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static int |
MAX_BARS_DEFAULT
Deprecated.
|
Constructor and Description |
---|
SentimentIndexBarIndicator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IndicatorResult |
calculate(int startIndex,
int endIndex)
Deprecated.
|
java.awt.Point |
drawOutput(java.awt.Graphics g,
int outputIdx,
java.lang.Object values2,
java.awt.Color color,
java.awt.Stroke stroke,
IIndicatorDrawingSupport support,
java.util.List<java.awt.Shape> shapes,
java.util.Map<java.awt.Color,java.util.List<java.awt.Point>> handles)
Deprecated.
|
IndicatorInfo |
getIndicatorInfo()
Deprecated.
|
InputParameterInfo |
getInputParameterInfo(int index)
Deprecated.
|
int |
getLookback()
Deprecated.
|
int |
getLookforward()
Deprecated.
|
double[] |
getMinMax(int outputIdx,
java.lang.Object values2,
int firstVisibleValueIndex,
int lastVisibleValueIndex)
Deprecated.
|
OptInputParameterInfo |
getOptInputParameterInfo(int index)
Deprecated.
|
OutputParameterInfo |
getOutputParameterInfo(int index)
Deprecated.
|
void |
onStart(IIndicatorContext context)
Deprecated.
|
void |
setInputParameter(int index,
java.lang.Object array)
Deprecated.
|
void |
setOptInputParameter(int index,
java.lang.Object value)
Deprecated.
|
void |
setOutputParameter(int index,
java.lang.Object array)
Deprecated.
|
public static final int MAX_BARS_DEFAULT
@Deprecated public void onStart(IIndicatorContext context)
IIndicator
onStart
in interface IIndicator
context
- allows access to system functionality@Deprecated public IndicatorResult calculate(int startIndex, int endIndex)
IIndicator
calculate
in interface IIndicator
startIndex
- index of the first element in input parameters that needs corresponding indicator value. That doesn't mean that values
before startIndex will not be read, they will be if lookback is more than 0. That also doesn't mean that value for startIndex will be
calculated, it will be not if startIndex < lookback. IndicatorResult.getFirstValueIndex()
returns index of the first element that
has corresponding calculated value in output array(s)endIndex
- index of the last element in input parameters that needs corresponding indicator value@Deprecated public IndicatorInfo getIndicatorInfo()
IIndicator
getIndicatorInfo
in interface IIndicator
@Deprecated public InputParameterInfo getInputParameterInfo(int index)
IIndicator
getInputParameterInfo
in interface IIndicator
index
- index of the input@Deprecated public OptInputParameterInfo getOptInputParameterInfo(int index)
IIndicator
getOptInputParameterInfo
in interface IIndicator
index
- index of the optional input@Deprecated public OutputParameterInfo getOutputParameterInfo(int index)
IIndicator
getOutputParameterInfo
in interface IIndicator
index
- index of the output@Deprecated public void setInputParameter(int index, java.lang.Object array)
IIndicator
setInputParameter
in interface IIndicator
index
- index of the parameterarray
- array of the doubles, ints or prices represented as double[][]@Deprecated public void setOptInputParameter(int index, java.lang.Object value)
IIndicator
setOptInputParameter
in interface IIndicator
index
- index of the parametervalue
- int or double value@Deprecated public void setOutputParameter(int index, java.lang.Object array)
IIndicator
IIndicator.calculate(int, int)
callsetOutputParameter
in interface IIndicator
index
- index of the parameterarray
- array of doubles or ints enough to hold values from startIndex to endIndex@Deprecated public int getLookback()
IIndicator
getLookback
in interface IIndicator
@Deprecated public int getLookforward()
IIndicator
getLookforward
in interface IIndicator
@Deprecated public java.awt.Point drawOutput(java.awt.Graphics g, int outputIdx, java.lang.Object values2, java.awt.Color color, java.awt.Stroke stroke, IIndicatorDrawingSupport support, java.util.List<java.awt.Shape> shapes, java.util.Map<java.awt.Color,java.util.List<java.awt.Point>> handles)
IDrawingIndicator
drawOutput
in interface IDrawingIndicator
g
- graphical contextoutputIdx
- index of the output parametervalues2
- array of values (int[], double[] or Object[] depending of the type of the output). Array may be empty or null if data is not yet available.color
- color selected when the indicator was addedstroke
- stroke selected when the indicator was addedsupport
- provides information about candle positions, indexes, etcshapes
- graphical shapes can be added to this list. This makes it possible to show correct popup when user right-clicks one of the shapes in this list on charthandles
- coordinate points with their corresponding colors can be added to this listnull
is returned.@Deprecated public double[] getMinMax(int outputIdx, java.lang.Object values2, int firstVisibleValueIndex, int lastVisibleValueIndex)
IMinMax
getMinMax
in interface IMinMax
outputIdx
- index of the output parametervalues2
- array of the values (int[], double[] or Object[] depending of the type of the output)firstVisibleValueIndex
- index of the first value that corresponds to the candle that is visible on the screen. Will be 0 even if the values array is with the length of 0lastVisibleValueIndex
- index of the last value that corresponds to the candle that is visible on the screen. Will be -1 if the values array is with the length of 0Copyright © 2024. All rights reserved.