|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dukascopy.api.indicators.IndicatorInfo
public class IndicatorInfo
Describes indicator
| Constructor Summary | |
|---|---|
IndicatorInfo()
Creates IndicatorInfo without filling any fields |
|
IndicatorInfo(String name,
String title,
String groupName,
boolean overChart,
boolean overVolumes,
boolean unstablePeriod,
boolean candlesticks,
int numberOfInputs,
int numberOfOptionalInputs,
int numberOfOutputs)
Deprecated. all "candlesticks" indicators are just "overChart" indicators with specific output type |
|
IndicatorInfo(String name,
String title,
String groupName,
boolean overChart,
boolean overVolumes,
boolean unstablePeriod,
int numberOfInputs,
int numberOfOptionalInputs,
int numberOfOutputs)
Creates IndicatorInfo and fills all fields |
|
| Method Summary | |
|---|---|
String |
getGroupName()
Returns name of the group |
String |
getName()
Returns name of the indicator. |
int |
getNumberOfInputs()
Returns number of inputs, that should be provided before calling function |
int |
getNumberOfOptionalInputs()
Returns number of optional inputs, that can be set to customize function |
int |
getNumberOfOutputs()
Returns number of indicator outputs. |
String |
getTitle()
Returns title of the indicator |
boolean |
isCandlesticks()
Deprecated. always returns false |
boolean |
isOverChart()
Returns true if indicator should be drawn over chart |
boolean |
isOverVolumes()
Returns true if indicator should be shown over volumes |
boolean |
isRecalculateAll()
Returns true if indicator should be recalculated for all chart data |
boolean |
isShowOnTicks()
Returns true if indicator should be shown on ticks (true by default) |
boolean |
isSparceIndicator()
Return true if indcator is "sparce indicator", that doesn't generates values for every candle |
boolean |
isUnstablePeriod()
Returns true if indicator has unstable period (like EMA or SAR). |
void |
setCandlesticks(boolean candlesticks)
Deprecated. if true, then makes indicator "overChart" |
void |
setGroupName(String groupName)
Sets name of the group |
void |
setName(String name)
Sets name of the indicator. |
void |
setNumberOfInputs(int numberOfInputs)
Sets number of inputs |
void |
setNumberOfOptionalInputs(int numberOfOptionalInputs)
Sets number of optional inputs |
void |
setNumberOfOutputs(int numberOfOutputs)
Sets number of outputs, that indicator will return |
void |
setOverChart(boolean overChart)
Sets flag that defines where indicator should be drawn |
void |
setOverVolumes(boolean overVolumes)
Sets flag that defines where indicator should be drawn |
void |
setRecalculateAll(boolean recalculateAll)
If set to true, then indicator will be recalculated for all chart data, instead of calculating it only for new arriving candle |
void |
setShowOnTicks(boolean showOnTicks)
Set this to false if indicator shouldn't be shown on ticks |
void |
setSparceIndicator(boolean sparceIndicator)
Set this flag to true if indicator doesn't draw values for every candle, like ZigZag indicator. |
void |
setTitle(String title)
Sets title of the indicator |
void |
setUnstablePeriod(boolean unstablePeriod)
Sets flag that defines if indicator has unstable period |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndicatorInfo()
public IndicatorInfo(String name,
String title,
String groupName,
boolean overChart,
boolean overVolumes,
boolean unstablePeriod,
boolean candlesticks,
int numberOfInputs,
int numberOfOptionalInputs,
int numberOfOutputs)
name - name of the indicator. Should be something simple like SMA for Simple Moving Average or BBANDS for Bollinger Bandstitle - title of the indicatorgroupName - name of the indicator groupoverChart - true if indicator should be drawn over candles/ticksoverVolumes - true if indicator should be drawn over volume informationunstablePeriod - true if indicator has unstable period (like EMA or SAR). This will add more candles in every call to stabilize functioncandlesticks - true if indicator is Pattern Recognition function and should be shown over barsnumberOfInputs - number of inputs that user should providenumberOfOptionalInputs - number of optional inputsnumberOfOutputs - number of outputs, that function returns
public IndicatorInfo(String name,
String title,
String groupName,
boolean overChart,
boolean overVolumes,
boolean unstablePeriod,
int numberOfInputs,
int numberOfOptionalInputs,
int numberOfOutputs)
name - name of the indicator. Should be something simple like SMA for Simple Moving Average or BBANDS for Bollinger Bandstitle - title of the indicatorgroupName - name of the indicator groupoverChart - true if indicator should be drawn over candles/ticksoverVolumes - true if indicator should be drawn over volume informationunstablePeriod - true if indicator has unstable period (like EMA or SAR). This will add more candles in every call to stabilize functionnumberOfInputs - number of inputs that user should providenumberOfOptionalInputs - number of optional inputsnumberOfOutputs - number of outputs, that function returns| Method Detail |
|---|
public String getName()
public void setName(String name)
name - name of the indicatorpublic String getTitle()
public void setTitle(String title)
title - title of the indicatorpublic String getGroupName()
public void setGroupName(String groupName)
groupName - name of the grouppublic boolean isOverChart()
public void setOverChart(boolean overChart)
overChart - true if indicator should be drawn over chartpublic boolean isOverVolumes()
public void setOverVolumes(boolean overVolumes)
overVolumes - true if indicator should be shown over volumespublic boolean isUnstablePeriod()
public void setUnstablePeriod(boolean unstablePeriod)
unstablePeriod - true if indicator has unstable periodpublic boolean isCandlesticks()
public void setCandlesticks(boolean candlesticks)
public int getNumberOfInputs()
public void setNumberOfInputs(int numberOfInputs)
numberOfInputs - number of inputspublic int getNumberOfOptionalInputs()
public void setNumberOfOptionalInputs(int numberOfOptionalInputs)
numberOfOptionalInputs - number of optional inputspublic int getNumberOfOutputs()
public void setNumberOfOutputs(int numberOfOutputs)
numberOfOutputs - number of outputspublic boolean isShowOnTicks()
public void setShowOnTicks(boolean showOnTicks)
showOnTicks - true if indicator should be shown on tickspublic boolean isRecalculateAll()
public void setRecalculateAll(boolean recalculateAll)
recalculateAll - public boolean isSparceIndicator()
public void setSparceIndicator(boolean sparceIndicator)
sparceIndicator - draw indicator on more data than is visible on the screen
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||