stoch
STOCH
Type:
stoch
• Category:indicators
Description
Stochastic Oscillator
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
high | string | List of highest prices | no | |
low | string | List of lowest prices | no | |
close | string | List of closing prices | no | |
fastk_period | number | no | 5 | |
slowk_period | number | no | 3 | |
slowk_matype | number | no | 0 | |
slowd_period | number | no | 3 | |
slowd_matype | number | no | 0 |
Help
STOCH: Stochastic Oscillator
Description
The Stochastic Oscillator (STOCH) is a popular technical indicator used in financial markets to gauge the momentum of a security's price. It compares the closing price of a security to its price range over a given period of time.
What does this worker do?
This worker calculates the Stochastic Oscillator values based on the provided high, low, and close prices, as well as the specified parameters. It returns the calculated values, which can be used to analyze the market trends and make informed trading decisions.
How to interpret the results
The Stochastic Oscillator values are usually interpreted as follows:
- When the %K line (fast line) crosses above the %D line (slow line), it's a buy signal.
- When the %K line crosses below the %D line, it's a sell signal.
- If the %K line and %D line are above 80, it's considered overbought, and a sell signal may be generated.
- If the %K line and %D line are below 20, it's considered oversold, and a buy signal may be generated.
Parameters
The following parameters are required to calculate the Stochastic Oscillator values:
Parameters Schema (JSON)
{
"high": {
"type": "string",
"description": "List of highest prices"
},
"low": {
"type": "string",
"description": "List of lowest prices"
},
"close": {
"type": "string",
"description": "List of closing prices"
},
"fastk_period": {
"type": "number",
"default": 5
},
"slowk_period": {
"type": "number",
"default": 3
},
"slowk_matype": {
"type": "number",
"default": 0
},
"slowd_period": {
"type": "number",
"default": 3
},
"slowd_matype": {
"type": "number",
"default": 0
}
}
Detailed Parameters List
- high: string - List of highest prices.
- low: string - List of lowest prices.
- close: string - List of closing prices.
- fastk_period: number (default: 5) - The period for calculating the %K line.
- slowk_period: number (default: 3) - The period for calculating the slow %K line.
- slowk_matype: number (default: 0) - The moving average type for the slow %K line.
- slowd_period: number (default: 3) - The period for calculating the %D line.
- slowd_matype: number (default: 0) - The moving average type for the %D line.