Syntax
STOCHASTIC(close; high; low; period)
Arguments
Stochastic is usually used with OHLC charts.
The first three arguments are arrays: 'close' contains the close values, 'high' contains the high values, and 'low' contains the low values.
The 'period' parameter defines the period for the function and must be a constant greater than or equal to 1.
Result
The result is an array.
The first 'period' elements of the result are marked as invalid.
Description
The Stochastic Oscillator compares where a security's price closed relative to its price range over a given time period. The formula of the function is:
result[n] = (close[n] - LL) / (HH - LL)
LL is the current lowest low value for the given time period.
HH is the current highest high value for the given time period.
Related Examples
Windows Forms: Data Manipulation\Functions\Other Financial Functions