Method | Description | |
---|---|---|
Calculate ( SlotTypes slotType ) : void |
Calculates the components
|
|
Indicator ( ) : System |
The default constructor
|
|
SetDescription ( SlotTypes slotType ) : void |
Sets the indicator logic description
|
|
TestPossibleSlot ( SlotTypes slotType ) : bool |
Tests if this is one of the possible slots.
|
Method | Description | |
---|---|---|
BandIndicatorLogic ( int firstBar, int prvs, double adUpperBand, double adLowerBand, |
Calculates the logic of a band indicator.
|
|
BarClosesAboveIndicatorLogic ( int firstBar, int prvs, double adIndValue, |
Returns signals for the logic rule "The bar closes above the Indicator"
|
|
BarClosesBelowIndicatorLogic ( int firstBar, int prvs, double adIndValue, |
Returns signals for the logic rule "The bar closes below the Indicator"
|
|
BarOpensAboveIndicatorAfterOpeningBelowLogic ( int firstBar, int prvs, double adIndValue, |
Returns signals for the logic rule "The bar opens above the Indicator after opening below it"
|
|
BarOpensAboveIndicatorLogic ( int firstBar, int prvs, double adIndValue, |
Returns signals for the logic rule "The bar opens above the Indicator"
|
|
BarOpensBelowIndicatorAfterOpeningAboveLogic ( int firstBar, int prvs, double adIndValue, |
Returns signals for the logic rule "The bar opens below the Indicator after opening above it"
|
|
BarOpensBelowIndicatorLogic ( int firstBar, int prvs, double adIndValue, |
Returns signals for the logic rule "The bar opens below the Indicator"
|
|
IndicatorCrossesAnotherIndicatorDownwardLogic ( int firstBar, int prvs, double adIndValue, double adAnotherIndValue, |
Returns signals for the logic rule "The Indicator crosses AnotherIndicator downward"
|
|
IndicatorCrossesAnotherIndicatorUpwardLogic ( int firstBar, int prvs, double adIndValue, double adAnotherIndValue, |
Returns signals for the logic rule "The Indicator crosses AnotherIndicator upward"
|
|
IndicatorFallsLogic ( int firstBar, int prvs, double adIndValue, |
Returns signals for the logic rule "Indicator falls"
|
|
IndicatorIsHigherThanAnotherIndicatorLogic ( int firstBar, int prvs, double adIndValue, double adAnotherIndValue, |
Returns signals for the logic rule "The Indicator is higher than the AnotherIndicator"
|
|
IndicatorIsLowerThanAnotherIndicatorLogic ( int firstBar, int prvs, double adIndValue, double adAnotherIndValue, |
Returns signals for the logic rule "The Indicator is lower than the AnotherIndicator"
|
|
IndicatorRisesLogic ( int firstBar, int prvs, double adIndValue, |
Returns signals for the logic rule "Indicator rises".
|
|
MovingAverage ( int period, int shift, MAMethod maMethod, double adSource ) : double[] |
Calculates a Moving Average
|
|
NoDirectionOscillatorLogic ( int firstBar, int prvs, double adIndValue, double dLevel, |
Calculates the logic of a No Direction Oscillator.
|
|
OscillatorLogic ( int firstBar, int prvs, double adIndValue, double levelLong, double levelShort, |
Calculates the logic of an Oscillator.
|
|
PrepareUsePrevBarValueCheckBox ( SlotTypes slotType ) : bool |
Sets the check box "Use previous bar value"
|
|
Price ( BasePrice price ) : double[] |
Calculates the base price.
|
|
Sigma ( ) : double |
Maximum error for comparing indicator values
|
protected BandIndicatorLogic ( int firstBar, int prvs, double adUpperBand, double adLowerBand, |
||
firstBar | int | The first bar number. |
prvs | int | To use the previous bar or not. |
adUpperBand | double | The Upper band values. |
adLowerBand | double | The Lower band values. |
indCompLong | Indicator component for Long position. | |
indCompShort | Indicator component for Short position. | |
indLogic | BandIndLogic | The chosen logic. |
return | bool |
protected BarClosesAboveIndicatorLogic ( int firstBar, int prvs, double adIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
protected BarClosesBelowIndicatorLogic ( int firstBar, int prvs, double adIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
protected BarOpensAboveIndicatorAfterOpeningBelowLogic ( int firstBar, int prvs, double adIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
protected BarOpensAboveIndicatorLogic ( int firstBar, int prvs, double adIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
protected BarOpensBelowIndicatorAfterOpeningAboveLogic ( int firstBar, int prvs, double adIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
protected BarOpensBelowIndicatorLogic ( int firstBar, int prvs, double adIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
public Calculate ( SlotTypes slotType ) : void | ||
slotType | SlotTypes | |
return | void |
protected IndicatorCrossesAnotherIndicatorDownwardLogic ( int firstBar, int prvs, double adIndValue, double adAnotherIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
adAnotherIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
protected IndicatorCrossesAnotherIndicatorUpwardLogic ( int firstBar, int prvs, double adIndValue, double adAnotherIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
adAnotherIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
protected IndicatorFallsLogic ( int firstBar, int prvs, double adIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
protected IndicatorIsHigherThanAnotherIndicatorLogic ( int firstBar, int prvs, double adIndValue, double adAnotherIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
adAnotherIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
protected IndicatorIsLowerThanAnotherIndicatorLogic ( int firstBar, int prvs, double adIndValue, double adAnotherIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
adAnotherIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
protected IndicatorRisesLogic ( int firstBar, int prvs, double adIndValue, |
||
firstBar | int | |
prvs | int | |
adIndValue | double | |
indCompLong | ||
indCompShort | ||
return | void |
protected static MovingAverage ( int period, int shift, MAMethod maMethod, double adSource ) : double[] | ||
period | int | Period |
shift | int | Shift |
maMethod | MAMethod | Method of calculation |
adSource | double | |
return | double[] |
protected NoDirectionOscillatorLogic ( int firstBar, int prvs, double adIndValue, double dLevel, |
||
firstBar | int | The first bar number. |
prvs | int | To use the previous bar or not. |
adIndValue | double | The indicator values. |
dLevel | double | The Level value. |
indComp | Indicator component where to save the results. | |
indLogic | IndicatorLogic | The chosen logic. |
return | bool |
protected OscillatorLogic ( int firstBar, int prvs, double adIndValue, double levelLong, double levelShort, |
||
firstBar | int | The first bar number. |
prvs | int | To use the previous bar or not. |
adIndValue | double | The indicator values. |
levelLong | double | The Level value for a Long position. |
levelShort | double | The Level value for a Short position. |
indCompLong | Indicator component for Long position. | |
indCompShort | Indicator component for Short position. | |
indLogic | IndicatorLogic | The chosen logic. |
return | bool |
protected PrepareUsePrevBarValueCheckBox ( SlotTypes slotType ) : bool | ||
slotType | SlotTypes | |
return | bool |
protected static Price ( BasePrice price ) : double[] | ||
price | BasePrice | The base price type. |
return | double[] |
public SetDescription ( SlotTypes slotType ) : void | ||
slotType | SlotTypes | |
return | void |
public TestPossibleSlot ( SlotTypes slotType ) : bool | ||
slotType | SlotTypes | The slot we test. |
return | bool |