Stochastic OscillatorThe Stochastic Oscillator compares where a security's price closed relative to its price range over a given time period. The Stochastic Oscillator is displayed as two lines. The main line is called "%K." The second line, called "%D," is a moving average of %K. The %K line is usually displayed as a solid line and the %D line is usually displayed as a dotted line. There are several ways to interpret a Stochastic Oscillator. Three popular methods include:
Look for divergences. For example, where prices are making a series of new highs and the Stochastic Oscillator is failing to surpass its previous highs. Syntax:Public Function StochasticOscillator(ByVal HLOCV()() As Double, ByVal Lag As Long, ByVal Slowing As Long) As Double Parameters:
Example:
Dim TA4Net As New TA4Net.CTAFunctions("YOUR-REGISTRATION-CODE") Dim Result() As Double Dim HLOCV(,) As Double
' loading values to array HLOCV = GetHLOCVValues() ' calculating Technical Analysis function Result = TA4Net.StochasticOscillator(HLOCV, 14, 10)
|
|
TA4.NET® Franz AG
2004© |
| Browser Based Help. Published by chm2web software. |