|Visual Basic (Declaration)|
Public Overloads Shared Function ExtremeValueKSignal( _ ByVal sc As SeriesCollection, _ ByVal extremeLow As Double, _ ByVal extremeHigh As Double, _ ByVal noOfPeriods As Integer _ ) As SeriesCollection
|Visual Basic (Usage)||Copy Code|
public static SeriesCollection ExtremeValueKSignal( SeriesCollection sc, double extremeLow, double extremeHigh, int noOfPeriods )
- A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.
- This is the level at which the Stochastic is believed to indicate an oversold level. The Stochastic always lies between 0 and 100, and a suggested extreme low value to take is 20.
- This is the level at which the Stochastic is believed to indicate an over brought level. The Stochastic always lies between 0 and 100, and a suggested extreme high value is 80.
- An integer which represents the number of periods used over which the closing price is compared.
Return Value-1, 0, 1 - this method returns either -1, 0, 1 to indicate that either a sell, no action or buy signal was generated.
Buy when the the Stochastic %K falls below a specific level (e.g. 20) and then rises above that level. Sell when the Oscillator rises above a specific level (e.g. 80) and then falls below that level. This approach is the preferred method of the Stochastics original creator George Lane.