Stochastic
STOCH identifies overbought and oversold conditions in a market.
Method
Inputs
Parameter | Argument type | Description | Default Value |
---|---|---|---|
source_high | pd.Series | High prices series | - |
source_low | pd.Series | Low prices series | - |
source_close | pd.Series | Close prices series | - |
fastk_period | int | Fast %K period for the indicator | 5 |
slowk_period | int | Slow %K period for the indicator | 3 |
slowk_matype | int | Slow %K Moving Average type | 0 |
slowd_period | int | Slow %D period for the indicator | 3 |
slowd_matype | int | Slow %D Moving Average type | 0 |
Outputs
The outputs are returned as a tuple of objects. Make sure to unpack them as shown in the example usage.
Output | Type |
---|---|
slowk | np.ndarray |
slowd | np.ndarray |