@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)
IIndicatoronStart in interface IIndicatorcontext - allows access to system functionality@Deprecated public IndicatorResult calculate(int startIndex, int endIndex)
IIndicatorcalculate in interface IIndicatorstartIndex - 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()
IIndicatorgetIndicatorInfo in interface IIndicator@Deprecated public InputParameterInfo getInputParameterInfo(int index)
IIndicatorgetInputParameterInfo in interface IIndicatorindex - index of the input@Deprecated public OptInputParameterInfo getOptInputParameterInfo(int index)
IIndicatorgetOptInputParameterInfo in interface IIndicatorindex - index of the optional input@Deprecated public OutputParameterInfo getOutputParameterInfo(int index)
IIndicatorgetOutputParameterInfo in interface IIndicatorindex - index of the output@Deprecated
public void setInputParameter(int index,
java.lang.Object array)
IIndicatorsetInputParameter in interface IIndicatorindex - index of the parameterarray - array of the doubles, ints or prices represented as double[][]@Deprecated
public void setOptInputParameter(int index,
java.lang.Object value)
IIndicatorsetOptInputParameter in interface IIndicatorindex - index of the parametervalue - int or double value@Deprecated
public void setOutputParameter(int index,
java.lang.Object array)
IIndicatorIIndicator.calculate(int, int) callsetOutputParameter in interface IIndicatorindex - index of the parameterarray - array of doubles or ints enough to hold values from startIndex to endIndex@Deprecated public int getLookback()
IIndicatorgetLookback in interface IIndicator@Deprecated public int getLookforward()
IIndicatorgetLookforward 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)
IDrawingIndicatordrawOutput in interface IDrawingIndicatorg - 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)
IMinMaxgetMinMax in interface IMinMaxoutputIdx - 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 © 2025. All rights reserved.